/*
====================================================
  GLOBAL STYLES
  - Global styles for background, font, and layout
====================================================
*/
body {
    background: #f7f9fc;  /* Soft light gray-blue background to reduce eye strain */
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/*
====================================================
  ADMIN LOGIN CONTAINER
  - Styles for the admin login box, including margin, shadow, background, etc.
====================================================
*/
.admin-login-container {
    max-width: 420px;  /* Slightly increased width to ensure elements don't feel too compact */
    margin: 100px auto; /* Adjusted top margin for better vertical alignment */
    padding: 40px 30px; /* Increased padding to avoid elements touching the edges */
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* Rounded corners for a modern look */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07); /* Light shadow for depth effect */
    background-color: #ffffff; /* White background for contrast */
    text-align: center;
}

/*
====================================================
  ADMIN LOGIN TITLE
  - Styling for the main heading inside the login box
====================================================
*/
.admin-login-container h1 {
    margin-bottom: 1.8rem;
    font-size: 1.9rem;
    color: #333;
    letter-spacing: 0.6px; /* Slightly spaced letters for a cleaner look */
}

/*
====================================================
  FORM STYLING
  - Styles for form layout, labels, inputs, and focus effects
====================================================
*/
.admin-login-form {
    width: 100%;
}

.admin-login-form .form-group {
    margin-bottom: 3rem; /* Increased spacing between input fields for better readability */
    text-align: left;
}

/* Labels for input fields */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

/*
====================================================
  INPUT FIELD STYLING
  - Design for username & password input fields
====================================================
*/
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input focus effect */
.form-control:focus {
    outline: none;
    border-color: #007bff; /* Blue border on focus */
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2); /* Soft glowing effect */
}

/*
====================================================
  LOGIN BUTTON STYLING
  - Primary button styling and hover effects
====================================================
*/
.btn.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 1s ease, box-shadow 1s ease;
}

/* Button hover effect */
.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Slight shadow effect on hover */
}

/*
====================================================
  FORGOT PASSWORD LINK
  - Styling for the "Forgot Password?" link
====================================================
*/

/* FORGOT PASSWORD BUTTON STYLING */
.forgot-password-link {
    display: inline-block;                /* Make it behave like a button */
    margin-top: 20px;                     /* Adjust spacing from elements above */
    padding: 0.6rem 1.2rem;               /* Padding inside the button */
    border-radius: 6px;                   /* Rounded corners for consistency */
    background-color: #6c757d;            /* Neutral gray shade (Bootstrap's secondary) */
    color: #ffffff;                       /* White text for contrast */
    text-decoration: none;                /* Remove underline */
    font-size: 1rem;                      /* Match other button text sizes */
    font-weight: 600;                     /* Slightly bold text */
    text-align: center;                   /* Center-align text */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.forgot-password-link:hover,
.forgot-password-link:focus {
    background-color: #5a6268;            /* Darker gray on hover/focus */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);   /* Subtle shadow for feedback */
    text-decoration: none;                /* Ensure no underline on hover */
}

.admin-login-container a {
    display: inline-block;
    margin-top: 3rem; /* Increased margin for better spacing */
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

/* Hover effect for the link */
.admin-login-container a:hover {
    color: #000000;
    text-decoration: underline;
}

/*
====================================================
  RESPONSIVE DESIGN
  - Adjustments for smaller screens (mobile devices)
====================================================
*/
@media (max-width: 480px) {
    .admin-login-container {
        margin: 60px auto;
        padding: 25px;
        width: 90%; /* Adjust width for smaller screens */
    }
    .admin-login-container h1 {
        font-size: 1.6rem;
    }
    .form-control {
        font-size: 0.95rem;
    }
    .btn.btn-primary {
        padding: 0.6rem 1.4rem;
    }
}

