/* ============================================
   KRL CommuterLink Lost & Found
   Auth Pages Styles — auth.css
   Login, Register, Forgot Password
   ============================================ */

/* ── No page transitions — clean instant navigation ── */

.auth-card,
.fp-card,
.fp-stepper {
    animation: cardSlideUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) 0.15s both;
}

@keyframes cardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── AUTH LAYOUT ── */
.auth-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--krl-bg-body);
    background-image:
        radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, var(--krl-bg-body) 0%, #e0e7ff 100%);
    background-size: 20px 20px, 100% 100%;
    padding: 24px 16px;
}

/* ── BACK LINK (inside card) ── */
.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--krl-text-muted);
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.2s;
}

.auth-back-link:hover {
    color: var(--krl-primary);
}

.auth-back-link i {
    font-size: 14px;
    transition: transform 0.2s;
}

.auth-back-link:hover i {
    transform: translateX(-3px);
}


/* ── AUTH CARD ── */
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--krl-bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-top: 4px solid var(--krl-primary);
}

.auth-card-content {
    padding: 44px 40px 36px;
    text-align: center;
}

@media (max-width: 575px) {
    .auth-card-content {
        padding: 32px 20px 28px;
    }
}


/* ── LOGO (matching navbar) ── */
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--krl-bg-body);
    padding: 8px 18px 8px 10px;
    border-radius: 50px;
    margin-bottom: 28px;
    border: 1px solid var(--krl-border-light);
}

.auth-logo-icon {
    width: 30px;
    height: 30px;
    background: var(--krl-primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.auth-logo-text {
    font-family: var(--krl-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--krl-text-primary);
}

.auth-logo-text span {
    color: var(--krl-primary);
    font-weight: 600;
}

@media (max-width: 360px) {
    .auth-logo {
        padding: 6px 14px 6px 6px;
        border-radius: 20px;
        max-width: 100%;
        text-align: center;
        margin: 0 auto 28px auto;
        display: flex;
        justify-content: center;
    }
    .auth-logo-text {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }
    .auth-logo-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (min-width: 361px) and (max-width: 575px) {
    .auth-logo {
        padding: 6px 14px 6px 6px;
    }
    .auth-logo-text {
        font-size: 13px;
        white-space: normal;
        line-height: 1.2;
        text-align: left;
    }
}


/* ── HEADING ── */
.auth-title {
    font-family: var(--krl-font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--krl-text-primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--krl-text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
}


/* ── ALERTS ── */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.auth-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #047857;
}


/* ── FORM ELEMENTS ── */
.auth-form-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--krl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon-left {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 18px;
    z-index: 2;
    transition: color 0.2s;
}

.auth-input-icon-right {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s;
}

.auth-input-icon-right:hover {
    color: var(--krl-primary);
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 44px 0 44px;
    border: 1px solid var(--krl-border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--krl-font-body);
    color: var(--krl-text-primary);
    background: var(--krl-bg-card);
    outline: none;
    transition: all 0.2s;
}

.auth-input::placeholder {
    color: var(--krl-text-muted);
}

.auth-input:focus {
    border-color: var(--krl-primary);
    box-shadow: 0 0 0 3px rgba(var(--krl-primary-rgb), 0.1);
}

.auth-input.is-valid {
    border-color: #059669;
}

.auth-input.is-invalid {
    border-color: #dc2626;
}


/* ── FORGOT PASSWORD ── */
.auth-forgot {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--krl-primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.2s;
}

.auth-forgot:hover {
    text-decoration: underline;
    color: var(--krl-primary-hover);
}


/* ── SUBMIT BUTTON ── */
.auth-btn-submit {
    width: 100%;
    height: 48px;
    background: var(--krl-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--krl-font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.2s;
    box-shadow: 0 8px 16px -3px rgba(var(--krl-primary-rgb), 0.25);
}

.auth-btn-submit:hover {
    background: var(--krl-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -3px rgba(var(--krl-primary-rgb), 0.3);
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit i {
    font-size: 17px;
}

.auth-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}


/* ── SECURITY BADGE ── */
.auth-security-badge {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    color: #047857;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 14px;
}

.auth-security-badge i {
    font-size: 14px;
}


/* ── FOOTER LINKS ── */
.auth-footer-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--krl-border-light);
    font-size: 14px;
    font-weight: 500;
    color: var(--krl-text-secondary);
    text-align: center;
}

.auth-footer-links a {
    color: var(--krl-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}


/* ── CARD BOTTOM BAR ── */
.auth-card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--krl-border-light);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--krl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.auth-status-dot {
    width: 6px;
    height: 6px;
    background: var(--krl-success);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}


/* ── COPYRIGHT ── */
.auth-copyright {
    margin-top: 36px;
    font-size: 10px;
    color: var(--krl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    text-align: center;
}

/* Base Body Protection */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 360px) {
    .auth-card-footer {
        flex-direction: column;
        padding: 14px 16px;
        gap: 8px;
        text-align: center;
        justify-content: center;
    }
    .auth-copyright {
        margin-top: 24px;
        font-size: 9px;
    }
    .auth-card-content {
        padding: 24px 16px 20px;
    }
    .auth-title {
        font-size: 22px;
    }
    .auth-subtitle {
        font-size: 12px;
        margin-bottom: 24px;
    }
}
@media (min-width: 361px) and (max-width: 575px) {
    .auth-card-footer {
        padding: 14px 20px;
    }
    .auth-card-content {
        padding: 32px 20px 28px;
    }
}


/* ══════════════════════════════════════════════════════
   REGISTER PAGE
   ══════════════════════════════════════════════════════ */

.register-card {
    width: 100%;
    max-width: 680px;
    background: var(--krl-bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Header Banner */
.register-header {
    background: linear-gradient(135deg, var(--krl-primary), #c62828);
    padding: 30px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.register-header-content {
    position: relative;
    z-index: 2;
}

.register-header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px 6px 8px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-header-logo i {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.register-header-logo span {
    font-family: var(--krl-font-heading);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.register-header-logo span span {
    opacity: 0.8;
    font-weight: 500;
}

.register-header h1 {
    font-family: var(--krl-font-heading);
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.register-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    max-width: 420px;
    line-height: 1.5;
}

.register-header-glow {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

@media (max-width:575px) {
    .register-header {
        padding: 24px 20px;
    }

    .register-header h1 {
        font-size: 20px;
    }
}


/* Body */
.register-body {
    padding: 24px 36px 28px;
}

@media (max-width:575px) {
    .register-body {
        padding: 20px 16px 24px;
    }
}


/* Step System */
.reg-step {
    position: relative;
    padding-left: 32px;
    padding-bottom: 16px;
}

.reg-step.last {
    padding-bottom: 0;
}

.reg-step-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--krl-primary-rgb), 0.1);
    border: 2px solid var(--krl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--krl-primary);
    font-size: 10px;
    z-index: 2;
}

.reg-step-line {
    position: absolute;
    left: 10px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--krl-border-light);
}

.reg-step-header {
    margin-bottom: 10px;
}

.reg-step-header h3 {
    font-family: var(--krl-font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--krl-text-primary);
    margin-bottom: 1px;
}

.reg-step-header p {
    font-size: 12px;
    color: var(--krl-text-muted);
}


/* Fields */
.reg-field {
    margin-bottom: 10px;
}

.reg-field label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--krl-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.reg-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.reg-label-row label {
    margin-bottom: 0;
}

.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width:575px) {
    .reg-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* Badges */
.reg-badge {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.reg-badge.blue {
    background: rgba(var(--krl-primary-rgb), 0.08);
    color: var(--krl-primary);
}

.reg-badge.green {
    background: #ecfdf5;
    color: #059669;
}

.reg-badge.red {
    background: #fee2e2;
    color: #dc2626;
}


/* Feedback */
.reg-feedback {
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
    min-height: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reg-feedback.valid {
    color: #059669;
}

.reg-feedback.invalid {
    color: #dc2626;
}


/* Password Strength */
.reg-strength-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.reg-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--krl-border-light);
    border-radius: 3px;
    overflow: hidden;
}

.reg-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: #e2e8f0;
    transition: width 0.3s, background 0.3s;
}

.reg-strength-text {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}


/* Info Box */
.reg-info-box {
    background: var(--krl-bg-body);
    border: 1px solid var(--krl-border-light);
    border-radius: 10px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width:575px) {
    .reg-info-box {
        grid-template-columns: 1fr;
    }
}

.reg-info-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.reg-info-item>i {
    color: var(--krl-primary);
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

.reg-info-item strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--krl-text-primary);
    margin-bottom: 1px;
}

.reg-info-item span {
    font-size: 11px;
    color: var(--krl-text-muted);
    line-height: 1.4;
}


/* Terms Row */
.reg-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--krl-bg-body);
    border: 1px solid var(--krl-border-light);
    border-radius: 10px;
}

.reg-terms-checkbox {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 4px;
    accent-color: var(--krl-primary);
    cursor: not-allowed;
}

.reg-terms-checkbox:checked {
    cursor: default;
}

.reg-terms-text {
    font-size: 12px;
    color: var(--krl-text-secondary);
    line-height: 1.5;
}

.reg-terms-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--krl-primary);
    font-weight: 700;
    font-size: 12px;
    font-family: var(--krl-font-body);
    text-decoration: none;
}

.reg-terms-link:hover {
    text-decoration: underline;
}


/* Bottom Links */
.reg-bottom-links {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--krl-text-secondary);
}

.reg-bottom-links a {
    color: var(--krl-primary);
    text-decoration: none;
    font-weight: 600;
}

.reg-bottom-links a:hover {
    text-decoration: underline;
}


/* ══════════════════════════════════════════════════════
   PRIVACY POLICY MODAL
   ══════════════════════════════════════════════════════ */
.pp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pp-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.pp-modal {
    background: #fff;
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.pp-overlay.show .pp-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.pp-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
    background: #fff;
}

.pp-header h2 {
    font-family: var(--krl-font-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--krl-primary);
    letter-spacing: -0.01em;
}

.pp-header>div>p {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.pp-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    font-size: 16px;
}

.pp-close:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Body */
.pp-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    background: #f8fafc;
}

.pp-body::-webkit-scrollbar {
    width: 6px;
}

.pp-body::-webkit-scrollbar-track {
    background: transparent;
}

.pp-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pp-intro {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 24px;
}

.pp-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* Regulation Items */
.pp-regulation {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #f1f5f9;
    transition: border-color 0.2s;
}

.pp-regulation:hover {
    border-color: rgba(var(--krl-primary-rgb), 0.3);
}

.pp-reg-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--krl-primary);
    font-size: 18px;
    transition: transform 0.2s;
}

.pp-regulation:hover .pp-reg-icon {
    transform: scale(1.08);
}

.pp-regulation h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
    transition: color 0.2s;
}

.pp-regulation:hover h5 {
    color: var(--krl-primary);
}

.pp-regulation p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
}

/* Info Note */
.pp-info-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(var(--krl-primary-rgb), 0.06);
    border-radius: 10px;
    padding: 14px;
    margin-top: 20px;
}

.pp-info-note>i {
    color: var(--krl-primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pp-info-note p {
    font-size: 11px;
    color: #475569;
    line-height: 1.6;
}

/* Footer */
.pp-footer {
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
}

.pp-btn-close {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--krl-font-body);
}

.pp-btn-close:hover {
    background: #f1f5f9;
}

.pp-btn-agree {
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    background: var(--krl-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: var(--krl-font-body);
}

.pp-btn-agree:hover:not(:disabled) {
    background: var(--krl-primary-hover);
}

.pp-btn-agree:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pp-btn-agree i {
    font-size: 16px;
}

.pp-scroll-hint {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: hintBounce 1.5s ease-in-out infinite;
}

.pp-scroll-hint.hidden {
    display: none;
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-40%);
    }
}


/* ══════════════════════════════════════════════════════
   FORGET PASSWORD / OTP / RESET PASSWORD FLOW
   ══════════════════════════════════════════════════════ */

/* ── Step Indicator (Redesigned) ── */
.fp-stepper {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.fp-stepper-track {
    display: flex;
    align-items: flex-start;
}

.fp-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.fp-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 2.5px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
    transition: all 0.4s;
    position: relative;
}

.fp-dot span,
.fp-dot i {
    position: relative;
    z-index: 2;
}

.fp-dot.active {
    border-color: var(--krl-primary);
    background: var(--krl-primary);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(var(--krl-primary-rgb), 0.15),
        0 4px 12px rgba(var(--krl-primary-rgb), 0.25);
}

.fp-dot.completed {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.fp-dot.completed i {
    font-size: 18px;
    font-weight: 900;
}

.fp-dot-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
}

.fp-stepper-item.active .fp-dot-label {
    color: var(--krl-primary);
}

.fp-stepper-item.completed .fp-dot-label {
    color: #10b981;
}

/* Connector line between dots */
.fp-connector {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-top: 18px;
    /* centers on the 40px dot */
    min-width: 32px;
    position: relative;
    overflow: hidden;
}

.fp-connector.done {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.fp-connector.done::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: connectorShimmer 2s ease-in-out infinite;
}

@keyframes connectorShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ── Card styling ── */
.fp-card {
    max-width: 460px;
    position: relative;
    overflow: hidden;
}

.fp-top-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--krl-primary), #c62828, #FF6F00, var(--krl-primary));
    background-size: 200% 100%;
    animation: fpBarSlide 4s linear infinite;
}

@keyframes fpBarSlide {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ── Icon Box ── */
.fp-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(var(--krl-primary-rgb), 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(var(--krl-primary-rgb), 0.15);
}

.fp-icon-box i {
    font-size: 28px;
    color: var(--krl-primary);
}

/* ── OTP Inputs ── */
.otp-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.otp-box {
    width: 48px;
    height: 56px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--krl-font-body);
    text-align: center;
    background: #fafbfc;
    color: var(--krl-text-primary);
    outline: none;
    transition: all 0.2s;
    caret-color: var(--krl-primary);
}

.otp-box:focus {
    border-color: var(--krl-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--krl-primary-rgb), 0.1);
}

.otp-box:not(:placeholder-shown) {
    border-color: var(--krl-primary);
    background: rgba(var(--krl-primary-rgb), 0.04);
}

.otp-dash {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 700;
    margin: 0 2px;
}

/* ── OTP Timer ── */
.otp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--krl-primary);
    background: rgba(var(--krl-primary-rgb), 0.06);
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid rgba(var(--krl-primary-rgb), 0.1);
}

.otp-timer i {
    font-size: 16px;
}

.otp-timer.expired {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
}

/* ── Resend ── */
.otp-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 16px;
}

.otp-resend-btn {
    color: var(--krl-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.otp-resend-btn:hover {
    color: var(--krl-primary-hover);
}

.otp-resend-btn.disabled {
    color: #94a3b8;
    pointer-events: none;
    opacity: 0.6;
}

/* ── Simulation OTP Display ── */
.fp-sim-otp {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: center;
}

.fp-sim-label {
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fp-sim-label i {
    font-size: 13px;
}

.fp-sim-code {
    font-size: 32px;
    font-weight: 900;
    color: #b45309;
    letter-spacing: 8px;
    font-family: var(--krl-font-heading);
}

.fp-sim-otp small {
    font-size: 10px;
    color: #92400e;
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

/* ── Success Box ── */
.fp-success-box {
    text-align: center;
    padding: 12px 0;
}

.fp-success-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--krl-primary-rgb), 0.1);
    color: var(--krl-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.fp-success-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.fp-success-box h2 {
    font-family: var(--krl-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--krl-text-primary);
    margin-bottom: 8px;
}

.fp-success-box p {
    font-size: 13px;
    color: var(--krl-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Verified Banner ── */
.fp-verified-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.fp-verified-dot {
    width: 22px;
    height: 22px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.fp-verified-banner strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 2px;
}

.fp-verified-banner span {
    font-size: 12px;
    color: #047857;
    line-height: 1.4;
}

/* ── Reset Password Strength ── */
.rp-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.rp-strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.rp-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.3s;
}

.rp-strength-text {
    font-size: 11px;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
}

/* ── Requirements Checklist ── */
.rp-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.rp-req {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.rp-req i {
    font-size: 13px;
}

.rp-req.passed {
    color: #10b981;
}

/* ═══ Reset Password Success Animation ═══ */
.fp-reset-success {
    text-align: center;
    padding: 16px 0 8px;
    position: relative;
    overflow: hidden;
}

.fp-rs-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fp-rs-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    bottom: -10px;
    animation: rsParticleFloat linear infinite;
    opacity: 0.6;
}

@keyframes rsParticleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-400px) rotate(360deg);
        opacity: 0;
    }
}

.fp-rs-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.fp-rs-shield {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: rsShieldPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fp-rs-shield i {
    font-size: 36px;
    color: #fff;
}

@keyframes rsShieldPop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.fp-rs-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
    animation: rsRingExpand 1.5s ease-out infinite;
}

.fp-rs-ring-1 {
    animation-delay: 0.3s;
}

.fp-rs-ring-2 {
    animation-delay: 0.8s;
}

@keyframes rsRingExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.fp-rs-title {
    font-family: var(--krl-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--krl-text-primary);
    margin-bottom: 8px;
    animation: rsFadeUp 0.5s ease 0.4s both;
}

.fp-rs-desc {
    font-size: 13px;
    color: var(--krl-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    animation: rsFadeUp 0.5s ease 0.5s both;
}

@keyframes rsFadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fp-rs-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    animation: rsFadeUp 0.5s ease 0.6s both;
}

.fp-rs-feat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 16px;
}

.fp-rs-feat i {
    font-size: 12px;
}

.fp-rs-btn {
    animation: rsFadeUp 0.5s ease 0.7s both;
    position: relative;
    overflow: hidden;
}

.fp-rs-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: btnShine 2s ease-in-out infinite 1s;
}

.fp-rs-countdown {
    font-size: 13px;
    opacity: 0.7;
    margin-left: 4px;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .fp-stepper {
        padding: 16px 12px 14px;
    }

    .fp-dot {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .fp-connector {
        margin-top: 15px;
    }

    .fp-dot-label {
        font-size: 9px;
        max-width: 64px;
    }

    .fp-card .auth-card-content {
        padding: 28px 20px;
    }

    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .fp-sim-code {
        font-size: 24px;
        letter-spacing: 6px;
    }
}


/* ══════════════════════════════════════════════════════
   SUCCESS POPUP OVERLAY (Spectacular version)
   ══════════════════════════════════════════════════════ */
.reg-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.reg-success-overlay.show {
    opacity: 1;
}

/* Confetti canvas */
#confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.reg-success-modal {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px 36px;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    transform: translateY(40px) scale(0.9);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10001;
    overflow: hidden;
}

.reg-success-overlay.show .reg-success-modal {
    transform: translateY(0) scale(1);
}

/* Top gradient line */
.reg-success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--krl-primary), #FF6F00, #FFD600, #10b981, var(--krl-primary));
    background-size: 200% 100%;
    animation: rainbowSlide 3s linear infinite;
}

@keyframes rainbowSlide {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Icon area with rings */
.reg-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 28px;
    position: relative;
}

/* Expanding rings */
.reg-success-rings {
    position: absolute;
    inset: -20px;
}

.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #10b981;
    opacity: 0;
}

.reg-success-overlay.show .ring {
    animation: ringExpand 1.5s ease-out forwards;
}

.ring-1 {
    animation-delay: 0.3s !important;
}

.ring-2 {
    animation-delay: 0.5s !important;
}

.ring-3 {
    animation-delay: 0.7s !important;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Glow behind icon */
.reg-success-icon::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: successGlow 2s ease-in-out infinite;
}

@keyframes successGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.reg-success-checkmark {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
}

.reg-success-circle {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

.reg-success-overlay.show .reg-success-circle {
    animation: circleStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    animation-delay: 0.3s;
}

.reg-success-check {
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.reg-success-overlay.show .reg-success-check {
    animation: checkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes circleStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Content area */
.reg-success-content {
    opacity: 0;
    transform: translateY(10px);
}

.reg-success-overlay.show .reg-success-content {
    animation: fadeSlideUp 0.5s ease forwards;
    animation-delay: 0.9s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-title {
    font-family: var(--krl-font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.success-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Feature badges */
.success-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.sf-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    background: #ecfdf5;
    padding: 5px 12px;
    border-radius: 20px;
}

.sf-item i {
    font-size: 13px;
}

/* CTA Button with shine */
.reg-success-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--krl-primary), #c62828);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--krl-font-body);
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px -4px rgba(var(--krl-primary-rgb), 0.35);
    position: relative;
    overflow: hidden;
}

.reg-success-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btnShine 2s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes btnShine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.reg-success-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -4px rgba(var(--krl-primary-rgb), 0.45);
    color: #fff;
}

.reg-success-btn i {
    font-size: 20px;
}