/* The CSS styling for the login form */

/*
 * Styles for the body of the page.
 * The flex display property is used to center the login form on the page.
 * The height is set to 100vh to make the form appear in the center of the viewport.
 * The margin is set to 0 to remove any default margins.
 * The background color is set to a light gray.
 * The font family is set to Arial, with sans-serif as a fallback.
 */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

/*
 * Styles for the login container.
 * The width is set to 300px and padding to 20px to create a compact, modular form.
 * The background color is set to white.
 * The border radius is set to 5px to create rounded corners.
 * A box shadow is added for a subtle 3D effect.
 */
.login-container {
    width: 300px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/*
 * Styles for each form group within the login form.
 * A bottom margin is added to create space between each form group.
 */
.login-form .form-group {
    margin-bottom: 15px;
}

/*
 * Styles for the last form group within the login form.
 * The flex display property is used to place the login button and the forgot password link side by side.
 * The justify-content property is set to space-between to create equal space between the button and the link.
 * The align-items property is set to center to vertically align the button and the link.
 */
.login-form .form-group:last-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*
 * Styles for the labels within the login form.
 * The display property is set to block to make the labels appear above the input fields.
 * A bottom margin is added to create space between the label and the input field.
 */
.login-form label {
    display: block;
    margin-bottom: 5px;
}

/*
 * Styles for the text and password input fields within the login form.
 * The width is set to 100% to make the input fields take up the full width of the form.
 * Padding is added for better readability.
 * A light gray border and rounded corners are added for aesthetics.
 */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/*
 * Styles for the login button.
 * Padding is added for better readability.
 * The background color is set to a blue color, and the text color is set to white.
 * The border is removed, and rounded corners are added for aesthetics.
 * The cursor is set to pointer to indicate that the button is clickable.
 * A hover effect is added to change the background color when the button is hovered over.
 */
.login-form button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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

/*
 * Styles for the forgot password link.
 * The text decoration is removed to remove the default underline.
 * The color is set to a blue color to match the login button.
 */
.forgot-password {
    text-decoration: none;
    color: #007BFF;
}

/*
 * Styles for the register link.
 * The display property is set to block to make the link appear on its own line.
 * The text is centered.
 * A top margin is added to create space between the link and the login form.
 * The color is set to a blue color to match the login button and the forgot password link.
 * The text decoration is removed to remove the default underline.
 */
.register-link {
    display: block;
    text-align: left; /* Align the text to the left */
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}