/* Forgot Password page — shares login_registration.css base (Poppins, .signin, .input-box) */

.fp-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 25rem;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid rgba(183, 183, 183, 0.5);
    border-radius: 2rem;
    padding: 2rem 0 1.5rem;
    z-index: 100;
    transition: all 0.3s ease-in-out;
}

.fp-box:hover {
    box-shadow: 0 15px 20px rgba(6, 11, 25, 0.2);
}

.fp-box h2 {
    margin: 0 0 0.35rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
}

.fp-subtitle {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    padding: 0 3rem;
}

/* Message spans (below inputs) */
.fp-msg {
    display: block;
    padding: 3px 3rem 0;
    font-family: Poppins, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    min-height: 1rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.fp-msg.valid { color: #10b981; }
.fp-msg.error { color: #ef4444; }

/* Collapsible sections */
.fp-section { display: none; }
.fp-section.visible { display: block; }

/* OTP action row */
.fp-otp-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 3rem 0;
}

.fp-box .fp-otp-btn {
    width: auto;
    padding: 5px 14px;
    margin: 0;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #CC450A 0%, #a855f7 100%);
    color: #fffaf7;
    font-family: Poppins, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.fp-box .fp-otp-btn:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7e22ce 100%);
    box-shadow: 0 4px 8px rgba(6, 11, 25, 0.2);
}
.fp-box .fp-otp-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.fp-btn-hidden { display: none !important; }

.fp-otp-timer {
    margin-left: auto;
    font-size: 0.78rem;
    font-family: Poppins, sans-serif;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    min-width: 44px;
    text-align: right;
}

/* Password strength hints */
.fp-hints {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 3rem 0;
}

.fp-hint {
    font-family: Poppins, sans-serif;
    font-size: 0.72rem;
    color: #9ca3af;
    transition: color 0.2s;
}
.fp-hint::before { content: '\25CB  '; }
.fp-hint.pass { color: #10b981; }
.fp-hint.pass::before { content: '\2713  '; }

/* Update password button */
.fp-submit-btn {
    display: block;
    width: calc(100% - 6rem);
    margin: 1.25rem 3rem 0;
    padding: 0.65rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #CC450A 0%, #a855f7 100%);
    color: #fffaf7;
    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.fp-submit-btn:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7e22ce 100%);
    box-shadow: 0 4px 10px rgba(6, 11, 25, 0.25);
}
.fp-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* Password eye toggle */
.fp-pwd-eye {
    cursor: pointer;
}

/* Success state */
.fp-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem 0.5rem;
    text-align: center;
}

.fp-success-icon {
    font-size: 3rem;
    color: #10b981;
}

.fp-success-title {
    font-family: Poppins, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #242731;
}

.fp-success-body {
    font-family: Poppins, sans-serif;
    font-size: 0.82rem;
    color: #64748b;
}

.fp-redirect-msg {
    font-family: Poppins, sans-serif;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.fp-login-link {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.55rem 1.75rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #CC450A 0%, #a855f7 100%);
    color: #fffaf7;
    font-family: Poppins, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.fp-login-link:hover {
    background: linear-gradient(135deg, #5b21b6 0%, #7e22ce 100%);
    box-shadow: 0 4px 8px rgba(6, 11, 25, 0.2);
}

/* Back to login button */
.fp-back-link {
    display: block;
    width: fit-content;
    margin: 1.25rem auto 0.5rem;
    padding: 0.45rem 1.5rem;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    background-color: #ffffff;
    color: #CC450A;
    font-family: Poppins, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
}
.fp-back-link:hover {
    background-color: #fff7ed;
    border-color: #CC450A;
    box-shadow: 0 2px 8px rgba(204, 69, 10, 0.15);
}

/* Remove number input spinner from OTP field */
#fp-otp::-webkit-outer-spin-button,
#fp-otp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#fp-otp { -moz-appearance: textfield; }
