/* ══════════════════════════════════════════════════════════════════════════════
   FORGOT PASSWORD PAGE — page-specific additions only
   Requires: style.css (tokens, reset, layout)
             login.css  (login-wrap, login-logo, login-card, field, login-btn)
══════════════════════════════════════════════════════════════════════════════ */

/* ── Success state ──────────────────────────────────────────────────────────── */
.fp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0 4px;
    gap: 0;
}

.fp-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-dim, rgba(0, 212, 170, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    margin-bottom: 20px;
    /* Subtle entrance pop */
    animation: icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.1s;
}

@keyframes icon-pop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1);   }
}

.fp-success__icon svg {
    width: 26px;
    height: 26px;
}

.fp-success .login-card__title {
    margin-bottom: 10px;
}

.fp-success__sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 300px;
    font-weight: 300;
}

.fp-success__sub strong {
    color: var(--text-primary);
    font-weight: 500;
}

.fp-success__note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border-radius: var(--r-sm);
    padding: 7px 14px;
}

.fp-success__note strong {
    color: var(--text-primary);
}

/* ── Back to sign in link ────────────────────────────────────────────────────── */
.fp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-weight: 500;
    transition: color var(--t);
    text-decoration: none;
}

.fp-back-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--t);
}

.fp-back-link:hover {
    color: var(--text-secondary);
}

.fp-back-link:hover svg {
    transform: translateX(-3px);
}

/* Override the footer anchor colour — login.css sets it to --orange
   but the back link should be neutral on this page                    */
.login-card__footer .fp-back-link {
    color: var(--text-muted);
}

.login-card__footer .fp-back-link:hover {
    color: var(--text-primary);
    opacity: 1; /* cancel the login.css hover opacity */
}
