java / style.css
shikharyashmaurya's picture
Update style.css
5fbe157 verified
/* Basic reset and styling */
body {
font-family: Arial, sans-serif;
background-color: #f0f2f5;
display: flex;
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 100vh; /* Full viewport height */
margin: 0;
}
/* Style the login container */
.login-container {
background-color: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
width: 300px;
}
/* Form elements spacing */
.login-container h2 {
margin-bottom: 20px;
text-align: center;
}
.login-container label {
display: block;
margin-bottom: 5px;
}
.login-container input {
width: 100%;
padding: 8px;
margin-bottom: 15px;
box-sizing: border-box;
}
.login-container button {
width: 100%;
padding: 10px;
background-color: #007bff;
border: none;
color: white;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
}
.login-container button:hover {
background-color: #0056b3;
}
/* Message styling */
#message {
margin-top: 15px;
text-align: center;
color: red;
}