body {
    /* Changed the background to your specified off-white color */
    background-color: #EDEBE3; 
}

.login-container {
    display: flex;
    flex-direction: column; /* Stack logo and box vertically */
    justify-content: flex-start; 
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 5rem 0 2rem 0; 
}

.logo-wrapper {
    margin-bottom: 2rem; /* Space between logo and login box */
    text-align: center;
}

.logo-wrapper img {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
}

.login-box {
    padding: 2.5rem;
    border-radius: 8px;
    background-color: #ffffff; /* White background for the box */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Soft shadow for depth */
    border: 1px solid #e0e0e0; /* Subtle border */
    width: 100%;
    max-width: 400px;
}

/* === GRADIENT ANIMATION === */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    color: #333; /* Darker text for better readability */
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff; /* White input background */
    border: 1px solid #ccc; /* Standard grey border */
    border-radius: 6px;
    color: #222; /* Dark text color */
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3a5a8a; /* A professional blue */
    box-shadow: 0 0 0 3px rgba(58, 90, 138, 0.2); /* Focus ring */
}

.login-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;

    /* === UPGRADED GRADIENT IMPLEMENTATION === */
    /* 1. Added a vibrant purple for a cooler shimmer effect */
    background: linear-gradient(-45deg, #001f3f, #4a5ff7, #8A2BE2, #4a5ff7, #001f3f);
    background-size: 400% 400%;
    /* 2. Made the animation faster and more noticeable */
    animation: gradient 10s ease infinite; 
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 95, 247, 0.4);
    /* 3. Added an interactive effect: animation speeds up on hover! */
    animation-duration: 2s; 
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: #3a5a8a; /* Match the button color for consistency */
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* === IMPROVED ERROR MESSAGE STYLES === */
.error-message {
    display: none; 
    align-items: center;
    background-color: #5d2222;
    color: #f8d7da;
    padding: 0.75rem 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    opacity: 0; 
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.error-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 480px) {
    .login-container {
        padding: 6rem 1rem 2rem 1rem;
    }

    .login-box {
        padding: 2rem;
        max-width: 100%;
    }

    .logo-wrapper img {
        max-width: 120px;
    }
}