[code, files] added background.png files for login background, added lots of styling for login page, also added new code for login.html for these changes.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-24 00:06:33 +01:00
parent 79c9c6aa1e
commit d712eb306a
3 changed files with 176 additions and 14 deletions

View File

@@ -1,4 +1,8 @@
/* General styling for project */
body {
margin: 0;
padding: 0;
font-family: 'Roboto';
color: black;
background-color: white;
@@ -20,7 +24,150 @@ h3 {
font-size: 1.2rem;
}
input[type=text], input[type=submit] {
font-family: 'Roboto';
/* Styling for login.html */
.loginContainer {
display: flex;
height: 100vh;
width: 100vw;
overflow: hidden;
}
.loginImage {
flex: 8;
min-width: 0;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.loginPane {
flex: 2;
min-width: 0;
display: flex;
flex-direction: column;
align-items: start;
justify-content: flex-start;
background-color: #ffffff;
padding: 40px;
padding-top: 40px;
overflow-y: auto;
}
.loginHeader, .loginForm {
width: 100%;
}
.loginLogo {
text-align: center;
}
.formGroup {
width: 100%;
margin-bottom: 20px;
}
.formGroup label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: #333;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 12px 14px;
font-family: 'Roboto';
font-size: 1rem;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="password"]:focus {
outline: none;
border-color: #4285f4;
box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}
input[type="text"]::placeholder,
input[type="password"]::placeholder {
color: #999;
}
.submitBtn {
width: 100%;
padding: 12px 14px;
font-family: 'Roboto';
font-size: 1rem;
font-weight: 500;
color: white;
background-color: #4285f4;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s, box-shadow 0.2s;
margin-top: 10px;
}
.submitBtn:hover {
background-color: #3367d6;
}
.submitBtn:active {
background-color: #2c5aa0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.submitBtn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}
/* Media Queries for project */
/* Tablet and below */
@media (max-width: 768px) {
.loginContainer {
flex-direction: column;
}
.loginImage {
display: none;
}
.loginPane {
flex: 1;
padding: 30px 20px;
}
.loginHeader {
margin-bottom: 30px;
}
}
/* Mobile devices */
@media (max-width: 480px) {
.loginPane {
padding: 20px 16px;
justify-content: flex-start;
padding-top: 60px;
}
.loginHeader h2 {
font-size: 1.5rem;
}
.loginHeader h3 {
font-size: 0.95rem;
}
.loginForm {
width: 100%;
}
input[type="text"],
input[type="password"],
.submitBtn {
font-size: 16px; /* Prevents zoom on iOS */
}
}