body {
    min-height: 100vh;
    background: #F0F4FF;
    /* Default light background for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #1E1B4B;
}

/* The Gradient will ONLY apply inside the mobile-sized app container */
.auth-container {
    width: 100%;
    max-width: 480px;
    /* Mobile Width Limit */
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #4A45F1, #4B9EF3);
    /* App Background */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: white !important;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    margin-top: 5px;
}

.auth-card,
.login-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.auth-card h2,
.login-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white !important;
    text-align: center;
}

.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 20px;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid white !important;
    border-radius: 30px !important;
    padding: 15px 20px 15px 55px !important;
    font-size: 15px !important;
    color: white !important;
    outline: none !important;
    transition: all 0.3s;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

.login-btn,
.btn-gradient {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 16px !important;
    border-radius: 30px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover,
.btn-gradient:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
}

.auth-footer a {
    color: white !important;
    text-decoration: underline;
    font-weight: 700;
}

.toggle-password {
    position: absolute !important;
    right: 20px !important;
    left: auto !important;
    cursor: pointer;
    color: white !important;
}

/* Forgot Password Link */
.auth-card a,
.login-card a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Loader */
.loader-overlay {
    background: rgba(74, 69, 241, 0.8) !important;
}

.spinner {
    border-top: 4px solid white !important;
}

/* Desktop View Fix: Background outside the app will be neutral */
@media (min-width: 481px) {
    body {
        background: #F0F4FF;
    }
}

/* Forgot Password Modal styling overrides */
.congrats-modal-overlay {
    overflow-y: auto;
}

.congrats-modal {
    margin: auto !important; /* ensures proper scrolling and centering in flex container */
    box-sizing: border-box;
}

.congrats-modal .input-group i {
    color: #94a3b8 !important;
}

.congrats-modal .input-field {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    border-radius: 8px !important;
    padding: 12px 20px 12px 45px !important;
    font-size: 15px !important;
    height: 48px !important;
    box-sizing: border-box;
}

.congrats-modal .input-field::placeholder {
    color: #94a3b8 !important;
}

.congrats-modal .input-field:focus {
    background: #ffffff !important;
    border-color: #4a45f1 !important;
    box-shadow: 0 0 0 3px rgba(74, 69, 241, 0.15) !important;
}

.congrats-modal .login-btn {
    background: #1e293b !important;
    border: none !important;
    color: white !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    height: 48px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.congrats-modal .login-btn:hover {
    background: #0f172a !important;
    transform: none !important;
}

/* Update credentials button style */
.congrats-modal #submitAdminResetBtn {
    background: #22c55e !important;
}

.congrats-modal #submitAdminResetBtn:hover {
    background: #16a34a !important;
}