body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    height: 100%;
}

/* Center the form */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f4;
    min-height: 100vh;
}

/* Styling for the title section */
#title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 15vh;
    background-color: #0056b3;
    color: white;
    text-align: center;
    position: relative;
}

h1 {
    font-size: 3em;
}

/* Form styling */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 25vw;
    max-width: 400px;
    min-width: 250px;
}

fieldset {
    border: none;
}

legend {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

/* Form labels and inputs */
form div {
    margin-bottom: 15px;
}

#form-div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70vh;

}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

input {
    width: 90%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button container */
button {
    width: 40%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 0 auto; /* Centers the button horizontally */
    display: block; /* Ensures the button respects margin:auto */
}

button:hover {
    background-color: #0056b3;
}

.error-messages {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.error-text {
    color: red;
    font-size: 0.8em;
    font-weight: bold;
}

#remember-me {
    display: flex;
    align-items: center; /* Vertically centers the items */
    justify-content: center; /* Centers the entire "Remember Me" section */
    gap: 8px; /* Adds space between the label and the checkbox */
}

#remember-me label {
    margin: 0;
    text-align: right; /* Aligns the label text to the left of the checkbox */
}

#remember-me input {
    width: auto;
}

/* Adjust form size for smaller screens */
@media (max-width: 768px) {
    form {
        width: 50vw;
    }
}

@media (max-width: 480px) {
    form {
        width: 90vw;
    }
}

