/* =========================================================
   FORGOT-PASSWORD.CSS
   Student Performance Analytics Portal
   Password Recovery Page
   ========================================================= */


/* ==================== PAGE FOUNDATION ==================== */

#forgotPasswordSection.auth-section {
    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px 20px;
}


/* ==================== PASSWORD RECOVERY CARD ==================== */

#forgotPasswordCard.auth-card {
    width: min(500px, 100%);

    padding: 34px 32px 28px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.10);

    position: relative;
}


/* ==================== LOGO / INTRO ==================== */

#forgotPasswordLogo.auth-logo {
    text-align: center;

    margin-bottom: 20px;
}


#forgotPasswordLogo h1 {
    margin: 0;

    color: #312e81;

    font-size: clamp(1.65rem, 4vw, 2rem);

    font-weight: 700;

    letter-spacing: -0.4px;
}


#forgotPasswordLogo p {
    margin: 8px 0 0;

    color: #64748b;

    font-size: 0.78rem;

    line-height: 1.6;
}


/* ==================== THEME BUTTON ==================== */

#forgotPasswordCard>.theme-btn {
    display: flex;

    margin: 0 auto 22px;

    min-height: 38px;

    padding: 8px 14px;

    align-items: center;
    justify-content: center;

    border: 1px solid #dbe2ea;

    border-radius: 9px;

    background: #f8fafc;

    color: #475569;

    font-family: inherit;

    font-size: 0.72rem;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


#forgotPasswordCard>.theme-btn:hover {
    background: #eef2ff;

    border-color: #c7d2fe;

    color: #312e81;

    transform: translateY(-1px);
}


#forgotPasswordCard>.theme-btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.18);

    outline-offset: 2px;
}


/* ==================== FORM ==================== */

#forgotPasswordForm.auth-form {
    width: 100%;
}


#forgotPasswordForm .auth-group {
    margin-bottom: 18px;
}


#forgotPasswordForm .auth-group label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 0.76rem;

    font-weight: 600;
}


#forgotPasswordForm .auth-group input {
    width: 100%;

    min-height: 46px;

    padding: 11px 13px;

    border: 1px solid #d7dee8;

    border-radius: 10px;

    background: #ffffff;

    color: #0f172a;

    font-family: inherit;

    font-size: 0.78rem;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#forgotPasswordForm .auth-group input::placeholder {
    color: #94a3b8;
}


#forgotPasswordForm .auth-group input:hover {
    border-color: #a5b4fc;
}


#forgotPasswordForm .auth-group input:focus {
    border-color: #4f46e5;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.09);
}


#forgotPasswordForm .auth-group input:invalid:not(:placeholder-shown) {
    border-color: #fca5a5;
}


#forgotPasswordForm .auth-group input:valid:not(:placeholder-shown) {
    border-color: #86efac;
}


/* ==================== INFORMATION BOX ==================== */

#forgotPasswordInfo.auth-info {
    margin: 0 0 20px;

    padding: 13px 15px;

    background: #eef2ff;

    border: 1px solid #c7d2fe;

    border-radius: 10px;
}


#forgotPasswordInfo p {
    margin: 0;

    color: #3730a3;

    font-size: 0.7rem;

    line-height: 1.7;
}


/* ==================== SUBMIT BUTTON ==================== */

#forgotPasswordSubmit.auth-btn {
    width: 100%;

    min-height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border: 0;

    border-radius: 10px;

    background: #312e81;

    color: #ffffff;

    font-family: inherit;

    font-size: 0.8rem;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(49, 46, 129, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#forgotPasswordSubmit.auth-btn:hover {
    background: #3730a3;

    transform: translateY(-2px);

    box-shadow:
        0 11px 24px rgba(49, 46, 129, 0.25);
}


#forgotPasswordSubmit.auth-btn:active {
    transform: translateY(0);
}


#forgotPasswordSubmit.auth-btn:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.20);

    outline-offset: 3px;
}


/* ==================== PAGE LINKS ==================== */

#forgotPasswordLinks.auth-links {
    margin-top: 19px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;
}


#forgotPasswordLinks a {
    color: #4f46e5;

    font-size: 0.72rem;

    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


#forgotPasswordLinks a:hover {
    color: #312e81;

    text-decoration: underline;

    transform: translateY(-1px);
}


#forgotPasswordLinks a:focus-visible {
    outline: 2px solid #4f46e5;

    outline-offset: 3px;

    border-radius: 3px;
}


/* ==================== RECOVERY TIPS ==================== */

#forgotPasswordTips.auth-tips {
    margin-top: 25px;

    padding: 18px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;
}


#forgotPasswordTips h2 {
    margin: 0 0 12px;

    color: #1e293b;

    font-size: 0.82rem;

    font-weight: 700;
}


#forgotPasswordTips ul {
    margin: 0;

    padding: 0;

    list-style: none;

    display: grid;

    gap: 8px;
}


#forgotPasswordTips li {
    color: #64748b;

    font-size: 0.69rem;

    line-height: 1.6;
}


/* ==================== DIVIDER ==================== */

#forgotPasswordDivider.auth-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0 0;

    color: #94a3b8;

    font-size: 0.62rem;

    text-align: center;
}


#forgotPasswordDivider::before,
#forgotPasswordDivider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}


#forgotPasswordDivider span {
    white-space: nowrap;
}


/* ==================== FOOTER ==================== */

#forgotPasswordCard .site-footer {
    margin-top: 25px;

    border-radius: 14px;

    overflow: hidden;
}


#forgotPasswordCard .footer-container {
    padding: 20px;

    gap: 20px;
}


#forgotPasswordCard .footer-brand {
    text-align: center;
}


#forgotPasswordCard .footer-logo {
    font-size: 0.9rem;
}


#forgotPasswordCard .footer-description {
    max-width: 320px;

    margin-left: auto;
    margin-right: auto;

    font-size: 0.65rem;

    line-height: 1.6;
}


#forgotPasswordCard .footer-navigation {
    text-align: center;
}


#forgotPasswordCard .footer-navigation h3 {
    font-size: 0.72rem;
}


#forgotPasswordCard .footer-links {
    justify-content: center;

    gap: 8px 14px;
}


#forgotPasswordCard .footer-links a {
    font-size: 0.64rem;
}


#forgotPasswordCard .footer-bottom {
    padding: 14px 18px;

    gap: 8px;

    text-align: center;
}


#forgotPasswordCard .footer-copyright,
#forgotPasswordCard .footer-developer,
#forgotPasswordCard .footer-status {
    font-size: 0.6rem;
}


/* ==================== LOADING / TOAST ==================== */

#loadingOverlay.loading-overlay {
    z-index: 6000;
}


#toast.toast {
    z-index: 7000;
}


/* ==================== DARK THEME ==================== */

.dark-theme #forgotPasswordCard.auth-card {
    background: #111827;

    border-color: #334155;

    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.28);
}


.dark-theme #forgotPasswordLogo h1 {
    color: #a5b4fc;
}


.dark-theme #forgotPasswordLogo p {
    color: #94a3b8;
}


.dark-theme #forgotPasswordCard>.theme-btn {
    background: #1e293b;

    border-color: #334155;

    color: #cbd5e1;
}


.dark-theme #forgotPasswordCard>.theme-btn:hover {
    background: #312e81;

    border-color: #4338ca;

    color: #ffffff;
}


.dark-theme #forgotPasswordForm .auth-group label {
    color: #cbd5e1;
}


.dark-theme #forgotPasswordForm .auth-group input {
    background: #1e293b;

    border-color: #334155;

    color: #f8fafc;
}


.dark-theme #forgotPasswordForm .auth-group input::placeholder {
    color: #64748b;
}


.dark-theme #forgotPasswordForm .auth-group input:focus {
    background: #1e293b;

    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.12);
}


.dark-theme #forgotPasswordInfo.auth-info {
    background: rgba(79, 70, 229, 0.14);

    border-color: rgba(99, 102, 241, 0.30);
}


.dark-theme #forgotPasswordInfo p {
    color: #c7d2fe;
}


.dark-theme #forgotPasswordTips.auth-tips {
    background: #1e293b;

    border-color: #334155;
}


.dark-theme #forgotPasswordTips h2 {
    color: #f1f5f9;
}


.dark-theme #forgotPasswordTips li {
    color: #94a3b8;
}


.dark-theme #forgotPasswordDivider {
    color: #64748b;
}


.dark-theme #forgotPasswordDivider::before,
.dark-theme #forgotPasswordDivider::after {
    background: #334155;
}


/* ==================== RESPONSIVE ==================== */

@media (max-width: 600px) {

    #forgotPasswordSection.auth-section {
        padding: 30px 14px;
    }


    #forgotPasswordCard.auth-card {
        padding: 28px 20px 22px;

        border-radius: 16px;
    }


    #forgotPasswordLinks.auth-links {
        flex-direction: column;

        gap: 10px;
    }


    #forgotPasswordTips.auth-tips {
        padding: 15px;
    }

}


@media (max-width: 400px) {

    #forgotPasswordSection.auth-section {
        padding: 20px 10px;
    }


    #forgotPasswordCard.auth-card {
        padding: 24px 16px 18px;
    }


    #forgotPasswordLogo h1 {
        font-size: 1.5rem;
    }


    #forgotPasswordLogo p {
        font-size: 0.7rem;
    }


    #forgotPasswordForm .auth-group input,
    #forgotPasswordSubmit.auth-btn {
        min-height: 44px;
    }


    #forgotPasswordTips li {
        font-size: 0.65rem;
    }

}


/* ==================== REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {

    #forgotPasswordCard *,
    #forgotPasswordSubmit,
    #forgotPasswordLinks a,
    #forgotPasswordCard>.theme-btn {
        transition: none;
    }

}


/* =========================================================
   END OF FORGOT-PASSWORD.CSS
   ========================================================= */