/* =====================================================
   Forgot Password — additional styles
   (built on top of auth.css)
   ===================================================== */

/* ---- Left panel: Animated SVG Pipeline ---- */
.fp-animated-pipeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 30px;
    padding-left: 8px; /* Room for the line */
}

/* Background Line */
.fpa-line-track {
    position: absolute;
    top: 24px;
    bottom: 30px;
    left: 27px; /* 8px padding + 20px (half of 40px icon ring) - 1px width */
    width: 2px;
    background: rgba(255,255,255,0.08);
    z-index: 1;
}

/* Animated glowing line fill */
.fpa-line-fill {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--orange) 0%, var(--green) 100%);
    transform-origin: top;
    animation: fpaLineDraw 5s infinite;
}

/* Glowing traveling particle */
.fpa-particle {
    position: absolute;
    top: 0; left: -3px; 
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--orange);
    animation: fpaParticleMove 5s infinite;
}

@keyframes fpaLineDraw {
    0%, 10% { transform: scaleY(0); }
    40%, 80% { transform: scaleY(1); }
    90%, 100% { transform: scaleY(0); }
}

@keyframes fpaParticleMove {
    0%, 10% { top: 0; opacity: 0; }
    15% { opacity: 1; top: 0; }
    40%, 80% { top: 100%; opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

.fpa-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.fpa-icon-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f172a; /* dark bg to mask line */
    border: 2px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
    color: rgba(255,255,255,0.4);
}

.fpa-icon {
    width: 18px;
    height: 18px;
    fill: none;
}

.fpa-content {
    padding-top: 2px;
}

.fpa-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
    transition: all 0.3s;
}

.fpa-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    line-height: 1.4;
    transition: all 0.3s;
}

/* Animation Sequencer for Steps */
.fpa-step.s1 .fpa-icon-ring { animation: fpStepRing1 5s infinite; }
.fpa-step.s1 .fpa-title { animation: fpStepText1 5s infinite; }
.fpa-step.s1 .fpa-desc { animation: fpStepDesc1 5s infinite; }

.fpa-step.s2 .fpa-icon-ring { animation: fpStepRing2 5s infinite; }
.fpa-step.s2 .fpa-title { animation: fpStepText2 5s infinite; }
.fpa-step.s2 .fpa-desc { animation: fpStepDesc2 5s infinite; }

.fpa-step.s3 .fpa-icon-ring { animation: fpStepRing3 5s infinite; }
.fpa-step.s3 .fpa-title { animation: fpStepText3 5s infinite; }
.fpa-step.s3 .fpa-desc { animation: fpStepDesc3 5s infinite; }

/* The Line takes from 10% to 40% to travel from top to bottom */
/* Step 1 activates at 10% */
@keyframes fpStepRing1 {
    0%, 9% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
    10%, 80% { border-color: var(--orange); color: var(--orange); background: rgba(255,107,53,0.15); box-shadow: 0 0 15px rgba(255,107,53,0.3); transform: scale(1.1); }
    90%, 100% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
}
@keyframes fpStepText1 {
    0%, 9% { color: rgba(255,255,255,0.5); }
    10%, 80% { color: #fff; }
    90%, 100% { color: rgba(255,255,255,0.5); }
}
@keyframes fpStepDesc1 {
    0%, 9% { color: rgba(255,255,255,0.3); }
    10%, 80% { color: rgba(255,255,255,0.7); }
    90%, 100% { color: rgba(255,255,255,0.3); }
}

/* Step 2 activates at 25% */
@keyframes fpStepRing2 {
    0%, 24% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
    25%, 80% { border-color: #00D4AA; color: #00D4AA; background: rgba(0,212,170,0.1); box-shadow: 0 0 15px rgba(0,212,170,0.3); transform: scale(1.1); }
    90%, 100% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
}
@keyframes fpStepText2 {
    0%, 24% { color: rgba(255,255,255,0.5); }
    25%, 80% { color: #fff; }
    90%, 100% { color: rgba(255,255,255,0.5); }
}
@keyframes fpStepDesc2 {
    0%, 24% { color: rgba(255,255,255,0.3); }
    25%, 80% { color: rgba(255,255,255,0.7); }
    90%, 100% { color: rgba(255,255,255,0.3); }
}

/* Step 3 activates at 40% */
@keyframes fpStepRing3 {
    0%, 39% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
    40%, 80% { border-color: var(--green); color: var(--green); background: rgba(0,212,170,0.15); box-shadow: 0 0 15px rgba(0,212,170,0.3); transform: scale(1.1); }
    90%, 100% { border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); background: #0f172a; box-shadow: none; transform: scale(1); }
}
@keyframes fpStepText3 {
    0%, 39% { color: rgba(255,255,255,0.5); }
    40%, 80% { color: #fff; }
    90%, 100% { color: rgba(255,255,255,0.5); }
}
@keyframes fpStepDesc3 {
    0%, 39% { color: rgba(255,255,255,0.3); }
    40%, 80% { color: rgba(255,255,255,0.7); }
    90%, 100% { color: rgba(255,255,255,0.3); }
}

/* Micro-animations inside the icons while active */
.fpa-step.s1 .fpa-icon-ring { overflow: hidden; }
@keyframes envelopeBounce {
    10%, 80% { transform: translateY(-2px); }
}
.fpa-step.s1 .fpa-icon { animation: envelopeBounce 5s infinite; }

@keyframes linkSpin {
    25%, 80% { transform: rotate(15deg) scale(1.1); }
}
.fpa-step.s2 .fpa-icon { animation: linkSpin 5s infinite; transition: transform 0.3s; }

@keyframes lockSnap {
    40%, 80% { transform: translateY(-2px); }
}
.fpa-step.s3 .fpa-icon { animation: lockSnap 5s infinite; }

/* ---- Security Assurance Badge ---- */
.fp-security-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 16px;
    max-width: 340px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Subtle animated sheen over the badge */
.fp-security-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.05), rgba(255,255,255,0));
    animation: secBadgeShine 6s infinite;
}

@keyframes secBadgeShine {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

.fps-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0,212,170,0.15);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.fps-icon svg {
    width: 16px;
    height: 16px;
}

/* Make the checkmark inside the shield pulse and draw itself */
.fps-check {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: secShieldCheck 3s infinite reverse;
}

@keyframes secShieldCheck {
    0%, 40% { stroke-dashoffset: 0; }
    50%, 100% { stroke-dashoffset: 10; }
}

.fps-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fps-label {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.fps-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

.fps-desc strong {
    color: rgba(255,255,255,0.8);
    font-weight: 700;
}
/* ---- Right panel: Key icon header ---- */
.fp-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,107,53,0.12) 0%, rgba(255,107,53,0.06) 100%);
    border: 1.5px solid rgba(255,107,53,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--orange);
    margin-bottom: 20px;
}

/* ---- Success state ---- */
.fp-success-wrap {
    text-align: center;
    padding: 8px 0;
}

.fp-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4AA, #00956f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 24px;
    box-shadow: 0 8px 28px rgba(0,212,170,0.35);
    animation: popIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

.fp-success-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.fp-success-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.fp-success-sub strong {
    color: var(--navy);
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

/* Tips list */
.fp-success-tips {
    background: #F7FAFC;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.fp-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.fp-tip i {
    width: 16px;
    text-align: center;
    color: var(--orange);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.fp-tip strong { color: var(--text); font-weight: 600; }
.fp-tip a      { color: var(--orange); font-weight: 600; }
.fp-tip a:hover { text-decoration: underline; }

/* =====================================================
   RESPONSIVE overrides
   ===================================================== */
@media (max-width: 767px) {
    .fp-steps, .fp-security-note { display: none; }
}
