/* ============================================================
   FORGOT PASSWORD — Gmail-Based Verification Styles
   ============================================================ */

/* Step container & transitions */
.fp-step {
    display: none;
    animation: fpFadeIn 0.5s ease forwards;
}
.fp-step.active {
    display: block;
}
@keyframes fpFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card sizing override */
.fp-card {
    max-width: 520px;
    width: 100%;
}

/* ---- Step indicator dots ---- */
.fp-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.fp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.4s ease;
}
.fp-dot.active {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
    transform: scale(1.25);
}
.fp-dot.done {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.4);
}

/* ---- Google security header ---- */
.google-security-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66,133,244,0.2), rgba(52,168,83,0.15));
    border: 2px solid rgba(66,133,244,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #60a5fa;
    margin: 0 auto 1.25rem;
    animation: fpPulseIcon 2.5s ease-in-out infinite;
}
@keyframes fpPulseIcon {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
    50%      { box-shadow: 0 0 0 14px rgba(59,130,246,0); }
}

.google-header-text {
    font-size: 0.92rem;
    color: rgba(248,250,252,0.75);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 1.25rem;
}

/* ---- Verification number display ---- */
.verify-number-display {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 1rem 0 1.5rem;
}
.verify-number-box {
    width: 72px;
    height: 80px;
    border-radius: 16px;
    background: rgba(59,130,246,0.12);
    border: 2px solid rgba(59,130,246,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #93c5fd;
    animation: fpNumberPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
    text-shadow: 0 0 20px rgba(59,130,246,0.4);
}
.verify-number-box:nth-child(2) { animation-delay: 0.12s; }
@keyframes fpNumberPop {
    from { opacity: 0; transform: scale(0.5) rotateX(40deg); }
    to   { opacity: 1; transform: scale(1) rotateX(0); }
}

/* ---- Verify number label ---- */
.fp-verify-number-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

/* ---- Gmail instructions ---- */
.fp-gmail-verify-section {
    margin-top: 0.5rem;
}

.fp-gmail-instructions {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px;
    margin: 1.25rem 0;
}

.fp-gmail-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}

.fp-gmail-step-item + .fp-gmail-step-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fp-gmail-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

/* ---- Waiting indicator ---- */
.fp-waiting-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

.fp-waiting-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.fp-waiting-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    animation: fpDotPulse 1.4s ease-in-out infinite;
}
.fp-waiting-dots span:nth-child(2) { animation-delay: 0.2s; }
.fp-waiting-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fpDotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.1); }
}

/* ---- Password strength indicator ---- */
.password-strength {
    height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    margin-top: 6px;
    overflow: hidden;
}
.password-strength-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease, background 0.4s ease;
    width: 0;
}
.password-strength-label {
    font-size: 0.72rem;
    margin-top: 4px;
    font-weight: 600;
    transition: color 0.3s;
}

/* ---- Info banners ---- */
.fp-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.fp-info-banner.security {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: rgba(255,255,255,0.8);
}
.fp-info-banner.security i { color: #60a5fa; font-size: 1.1rem; margin-top: 1px; }
.fp-info-banner.warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    color: rgba(255,255,255,0.8);
}
.fp-info-banner.warning i { color: #fbbf24; font-size: 1.1rem; margin-top: 1px; }
.fp-info-banner.success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    color: rgba(255,255,255,0.8);
}
.fp-info-banner.success i { color: #22c55e; font-size: 1.1rem; margin-top: 1px; }

/* ---- Success icon ---- */
.fp-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(16,185,129,0.15));
    border: 2px solid rgba(34,197,94,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.2rem;
    color: #4ade80;
    animation: fpCheckBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes fpCheckBounce {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ---- Misc ---- */
.fp-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1.25rem 0;
}
.fp-email-masked {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}
.fp-email-masked i { color: #60a5fa; font-size: 1.1rem; }

/* ---- Loading spinner overlay ---- */
.fp-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    z-index: 20;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}
.fp-loading.show { display: flex; }

.fp-loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: fpSpin 0.8s linear infinite;
}
@keyframes fpSpin { to { transform: rotate(360deg); } }

.fp-loading-text {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .verify-number-box {
        width: 58px;
        height: 66px;
        font-size: 1.8rem;
    }
    .fp-card { max-width: 100%; }
}
