/* login.css */

/* Apply styles to the container of the form, not the entire body */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Use min-height instead of height to avoid pushing the footer */
    padding: 20px;
}

/* Style the form itself */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 320px;
    margin: auto;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%; /* Full width */
    padding: 10px; /* Same padding as the button */
    border: 1px solid #ddd; /* Same border size as the button */
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width */
    margin-bottom: 10px; /* Space below the input */
}

/* Style the submit button */
input[type="submit"] {
    width: 100%; /* Full width */
    padding: 10px; /* Match the padding of the input fields */
    border-radius: 4px; /* Match the border radius of the input fields */
    border: none; /* No border for the button (adjust if your button has a border) */
    background-color: #5C7AEA;
    color: white;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width */
}



a {
    color: #5C7AEA;
    display: block; /* Make links block level to center them */
    text-align: center;
    margin-top: 10px;
}

a:hover {
    text-decoration: underline;
}

/* Error message styles */
div.error {
    color: red;
    text-align: center;
}