/* ============================================
   LUPA PASSWORD — Premium Styles
   ============================================ */

/* ---- PAGE LAYOUT & COMPATIBILITY ---- */
.content-wrapper {
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* ---- HEADER SECTION ---- */
.header-section {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- LOGO ANIMATION & GLOW ---- */
.logo-animation-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    margin-bottom: 4px;
    animation: logoEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.ambient-glow {
    position: absolute;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(10px);
    pointer-events: none;
    animation: glowBreathe 4s ease-in-out infinite alternate;
}

.header-logo {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.25));
    animation: logoFloat 4s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.header-logo:hover {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 18px 30px rgba(59, 130, 246, 0.4));
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(25px) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes glowBreathe {
    0% {
        transform: scale(0.9);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.12);
        opacity: 0.95;
    }
}

.header-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.header-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-family: 'Outfit', sans-serif;
}

/* Card override untuk FP page */
.fp-card {
    padding: 40px 36px 36px;
    max-width: 460px;
    opacity: 1 !important;
    transform: none !important;
}

/* ---- STEP INDICATOR ---- */
.fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.fp-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.fp-step.active .fp-step-circle {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.45);
}

.fp-step.done .fp-step-circle {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}

.fp-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    transition: color 0.4s ease;
}

.fp-step.active .fp-step-label,
.fp-step.done .fp-step-label {
    color: #3b82f6;
}

.fp-step.done .fp-step-label {
    color: #10b981;
}

.fp-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 99px;
    transition: background 0.5s ease;
    min-width: 40px;
}

.fp-step-line.active {
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

/* ---- ICON ---- */
.fp-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.fp-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(37,99,235,0.18));
    border: 2px solid rgba(59,130,246,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #3b82f6;
    animation: fp-pulse 2.5s ease-in-out infinite;
}

.fp-icon-circle.success-icon {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.18));
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
    animation: fp-pulse-green 2.5s ease-in-out infinite;
}

@keyframes fp-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.25); }
    50% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
}

@keyframes fp-pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.25); }
    50% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

/* ---- TITLE & SUBTITLE ---- */
.fp-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
}

.fp-subtitle {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
    font-family: 'Outfit', sans-serif;
}

/* ---- FORM ---- */
.fp-form-group {
    margin-bottom: 8px;
}

.fp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.fp-label i {
    color: #3b82f6;
}

.fp-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.fp-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.fp-input-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 7px;
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
}

/* ---- SUBMIT BUTTON ---- */
.fp-submit-btn {
    margin-top: 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fp-submit-btn.loading {
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- ALERT ERROR ---- */
.fp-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 13px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

/* ---- INFO BOX (Step 2) ---- */
.fp-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
    font-family: 'Outfit', sans-serif;
}

.fp-info-box i {
    color: #0284c7;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fp-info-box div {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}

.fp-info-box strong {
    display: block;
    margin-bottom: 4px;
    color: #0284c7;
}

.fp-info-box p {
    margin: 0;
    color: #64748b;
}

/* ---- BACK LINK ---- */
.fp-back-link {
    text-align: center;
    margin-top: 20px;
}

.fp-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.fp-back-link a:hover {
    color: #3b82f6;
    background: rgba(59,130,246,0.07);
}

/* ---- OTP INPUT DIGITS ---- */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 16px;
}

.otp-digit {
    width: 48px;
    height: 54px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.otp-digit:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.otp-digit.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* Hide arrow keys/spinners inside input */
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ---- OTP RESEND TIMER ---- */
.otp-resend-container {
    text-align: center;
    margin: 12px 0 20px;
    font-size: 13px;
    color: #64748b;
    font-family: 'Outfit', sans-serif;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.otp-resend-btn:hover {
    color: #2563eb;
    background: rgba(59, 130, 246, 0.08);
    text-decoration: underline;
}

/* ---- PANEL TRANSITION ---- */
.fp-panel {
    animation: fp-fadeIn 0.4s ease;
}

@keyframes fp-fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
