:root {
    --fp-font: "Plus Jakarta Sans", sans-serif;
    --fp-font-body: "Inter", sans-serif;
    --fp-primary: #111729;
    --fp-primary-hover: #1A2540;
    --fp-primary-light: #2A3A5C;
    --fp-accent: #C9A84C;
    --fp-bg: #F6F7FA;
    --fp-surface: #FFFFFF;
    --fp-border: #E2E6EF;
    --fp-muted: #8A92A6;
    --fp-danger: #DC3545;
    --fp-danger-soft: #FEF2F2;
    --fp-success: #0F7B46;
    --fp-warning: #B45309;
    --fp-info: #1D4ED8;
    --fp-gradient: linear-gradient(145deg, #1A2540 0%, #111729 55%, #0B0F1A 100%);
    --fp-shadow: 0 20px 50px rgba(17, 23, 41, 0.12);
    --fp-radius: 16px;
    --fp-radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.fp-auth {
    font-family: var(--fp-font-body);
    background: var(--fp-bg);
    color: var(--fp-primary);
    -webkit-font-smoothing: antialiased;
}

.fp-auth a {
    color: var(--fp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fp-auth a:hover {
    color: var(--fp-accent);
}

.fp-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.fp-auth-brand {
    position: relative;
    overflow: hidden;
    background: var(--fp-gradient);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fp-auth-brand::before,
.fp-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.fp-auth-brand::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, transparent 70%);
}

.fp-auth-brand::after {
    width: 320px;
    height: 320px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.fp-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.fp-auth-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.fp-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 500;
}

.fp-auth-badge i {
    color: var(--fp-accent);
}

.fp-auth-brand h1 {
    margin: 24px 0 16px;
    font-family: var(--fp-font);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fp-auth-brand p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.fp-auth-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 48px;
}

.fp-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--fp-radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.fp-auth-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.15);
    color: var(--fp-accent);
    flex-shrink: 0;
}

.fp-auth-feature strong {
    display: block;
    font-family: var(--fp-font);
    font-size: 15px;
    margin-bottom: 4px;
}

.fp-auth-feature span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
}

/* —— Login brand panel (richer left side) —— */
.fp-auth-brand-login {
    padding: 40px 44px 36px;
    justify-content: space-between;
    gap: 28px;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(201, 168, 76, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 80%, rgba(42, 58, 92, 0.9) 0%, transparent 50%),
        linear-gradient(160deg, #1A2540 0%, #111729 48%, #080C16 100%);
}

.fp-auth-brand-login::before,
.fp-auth-brand-login::after {
    display: none;
}

.fp-auth-brand-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.22) 0%, transparent 42%),
        radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: fpAuthGlowPulse 8s ease-in-out infinite;
}

.fp-auth-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.fp-auth-brand-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.fp-auth-brand-orb-a {
    width: 180px;
    height: 180px;
    top: 12%;
    right: -40px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.35) 0%, transparent 70%);
    animation: fpAuthOrbFloat 10s ease-in-out infinite;
}

.fp-auth-brand-orb-b {
    width: 140px;
    height: 140px;
    bottom: 18%;
    left: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: fpAuthOrbFloat 12s ease-in-out infinite reverse;
}

.fp-auth-brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fp-auth-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 123, 70, 0.18);
    border: 1px solid rgba(134, 239, 172, 0.28);
    color: #b7f0cd;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.fp-auth-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: fpAuthLivePulse 2s ease-out infinite;
}

.fp-auth-brand-hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    padding: 8px 0;
}

.fp-auth-brand-kicker {
    margin: 0 0 14px;
    font-family: var(--fp-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fp-accent);
}

.fp-auth-brand-login h1 {
    margin: 0 0 16px;
    font-family: var(--fp-font);
    font-size: clamp(2.15rem, 4.2vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.fp-auth-brand-lead {
    margin: 0 0 36px;
    max-width: 380px;
    font-size: 1.02rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

.fp-auth-brand-scene {
    position: relative;
    width: min(100%, 280px);
    aspect-ratio: 1;
    margin: 0 auto 0 0;
}

.fp-auth-scene-ring {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fp-auth-scene-ring-outer {
    inset: 0;
    border-color: rgba(201, 168, 76, 0.22);
    animation: fpAuthRingSpin 28s linear infinite;
    background:
        conic-gradient(from 0deg, transparent 0deg, rgba(201, 168, 76, 0.35) 40deg, transparent 90deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.fp-auth-scene-ring-inner {
    inset: 22%;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.14);
    animation: fpAuthRingSpin 40s linear infinite reverse;
}

.fp-auth-scene-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(201, 168, 76, 0.95), rgba(168, 132, 48, 0.9));
    color: #111729;
    font-size: 28px;
    box-shadow:
        0 12px 32px rgba(201, 168, 76, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: fpAuthCoreBreath 4.5s ease-in-out infinite;
}

.fp-auth-scene-node {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f5e6b8;
    font-size: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.fp-auth-scene-node-1 {
    top: 8%;
    left: 42%;
    animation: fpAuthNodeFloat 5s ease-in-out infinite;
}

.fp-auth-scene-node-2 {
    bottom: 18%;
    left: 6%;
    animation: fpAuthNodeFloat 6s ease-in-out infinite 0.4s;
}

.fp-auth-scene-node-3 {
    bottom: 22%;
    right: 4%;
    animation: fpAuthNodeFloat 5.5s ease-in-out infinite 0.8s;
}

.fp-auth-scene-beam {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.55), transparent);
    transform-origin: left center;
    opacity: 0.55;
    pointer-events: none;
}

.fp-auth-scene-beam-1 {
    top: 28%;
    left: 48%;
    width: 28%;
    transform: rotate(-72deg);
    animation: fpAuthBeamPulse 3.2s ease-in-out infinite;
}

.fp-auth-scene-beam-2 {
    top: 58%;
    left: 28%;
    width: 32%;
    transform: rotate(148deg);
    animation: fpAuthBeamPulse 3.2s ease-in-out infinite 0.6s;
}

.fp-auth-scene-beam-3 {
    top: 55%;
    left: 55%;
    width: 30%;
    transform: rotate(32deg);
    animation: fpAuthBeamPulse 3.2s ease-in-out infinite 1.1s;
}

.fp-auth-brand-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.fp-auth-brand-stat {
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.fp-auth-brand-stat strong {
    display: block;
    font-family: var(--fp-font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.fp-auth-brand-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.35;
}

@keyframes fpAuthGlowPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

@keyframes fpAuthOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, 16px); }
}

@keyframes fpAuthLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes fpAuthRingSpin {
    to { transform: rotate(360deg); }
}

@keyframes fpAuthCoreBreath {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(201, 168, 76, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 16px 40px rgba(201, 168, 76, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

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

@keyframes fpAuthBeamPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-auth-brand-glow,
    .fp-auth-brand-orb,
    .fp-auth-live-dot,
    .fp-auth-scene-ring-outer,
    .fp-auth-scene-ring-inner,
    .fp-auth-scene-core,
    .fp-auth-scene-node,
    .fp-auth-scene-beam {
        animation: none !important;
    }
}

.fp-auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.fp-auth-card {
    width: 100%;
    max-width: 440px;
}

.fp-auth-card.fp-auth-card-wide {
    max-width: 560px;
}

.fp-auth-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.fp-auth-mobile-logo img {
    height: 36px;
}

.fp-auth-card-header h2 {
    margin: 0 0 8px;
    font-family: var(--fp-font);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.fp-auth-card-header p {
    margin: 0 0 28px;
    color: var(--fp-muted);
    font-size: 15px;
    line-height: 1.6;
}

.fp-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--fp-radius-sm);
    background: var(--fp-danger-soft);
    color: #991B1B;
    border: 1px solid rgba(220, 53, 69, 0.15);
    font-size: 14px;
    margin-bottom: 20px;
}

.fp-auth-alert[hidden] {
    display: none !important;
}

.fp-auth-alert-success {
    background: #ecfdf3;
    color: #0f7b46;
    border-color: rgba(15, 123, 70, 0.15);
}

.fp-auth-verify-method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.18);
    margin-bottom: 18px;
}

.fp-auth-verify-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(37, 211, 102, 0.14);
    color: #128c7e;
    font-size: 20px;
}

.fp-auth-verify-method-icon i {
    display: block;
    line-height: 1;
}

.fp-auth-verify-method-body {
    flex: 1;
    min-width: 0;
}

.fp-auth-verify-method-body strong,
.fp-auth-verify-method-body span {
    display: block;
}

.fp-auth-verify-method-body strong {
    color: var(--fp-primary);
    margin-bottom: 3px;
}

.fp-auth-verify-method-body span {
    color: var(--fp-muted);
    font-size: 13px;
    line-height: 1.5;
}

.fp-auth-resend-form {
    margin-top: 14px;
    text-align: center;
}

.fp-auth-link-button {
    border: 0;
    background: none;
    color: var(--fp-info);
    font-weight: 700;
    cursor: pointer;
}

.fp-auth-field {
    margin-bottom: 18px;
}

.fp-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-primary);
}

.fp-auth-input,
.fp-auth-select,
.fp-auth-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-surface);
    color: var(--fp-primary);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-auth-textarea {
    resize: vertical;
    min-height: 96px;
}

.fp-auth-input:focus,
.fp-auth-select:focus,
.fp-auth-textarea:focus {
    outline: none;
    border-color: var(--fp-primary-light);
    box-shadow: 0 0 0 4px rgba(17, 23, 41, 0.08);
}

.fp-auth-input-wrap {
    position: relative;
}

.fp-auth-input-wrap .fp-auth-input {
    padding-right: 48px;
}

.fp-auth-toggle-pass {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--fp-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
}

.fp-auth-toggle-pass:hover {
    color: var(--fp-primary);
}

.fp-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fp-auth-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fp-auth-captcha-img {
    display: block;
    width: 150px;
    height: 50px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: #f1f3f8;
    object-fit: cover;
    flex-shrink: 0;
}

.fp-auth-captcha-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-surface);
    color: var(--fp-muted);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fp-auth-captcha-refresh:hover {
    color: var(--fp-primary);
    border-color: var(--fp-primary-light);
}

.fp-auth-captcha-refresh:active {
    transform: rotate(-90deg);
}

.fp-auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--fp-primary);
    color: #fff;
    font-family: var(--fp-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--fp-shadow);
}

.fp-auth-submit:hover {
    background: var(--fp-primary-hover);
    transform: translateY(-1px);
}

.fp-auth-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.fp-auth-submit-spinner {
    display: inline-block;
    margin-right: 6px;
    animation: fp-auth-spin 0.8s linear infinite;
}

.fp-auth-submit.fp-btn-loading,
.fp-auth-link-button.fp-btn-loading {
    opacity: 0.82;
    cursor: wait;
    pointer-events: none;
}

.fp-btn-spinner,
.fp-auth-submit .fp-btn-spinner,
.fp-auth-link-button .fp-btn-spinner {
    display: inline-block;
    margin-right: 4px;
    animation: fp-auth-spin 0.8s linear infinite;
}

@keyframes fp-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.fp-auth-field-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.fp-auth-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-muted);
    text-decoration: none;
}

.fp-auth-forgot-link:hover {
    color: var(--fp-primary);
}

.fp-forgot-password-form .fp-auth-link-button {
    display: block;
    width: 100%;
    margin-top: 12px;
    text-align: center;
}

.fp-auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--fp-muted);
}

.fp-auth-footer a {
    font-weight: 600;
}

.fp-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 14px;
    color: var(--fp-muted);
}

.fp-auth-back:hover {
    color: var(--fp-primary);
}

/* Wizard */
.fp-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.fp-wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
}

.fp-wizard-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fp-font);
    font-size: 14px;
    font-weight: 700;
    background: var(--fp-bg);
    color: var(--fp-muted);
    border: 2px solid var(--fp-border);
    transition: all 0.25s ease;
}

.fp-wizard-step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fp-muted);
}

.fp-wizard-step-item.active .fp-wizard-step-num {
    background: var(--fp-primary);
    color: #fff;
    border-color: var(--fp-primary);
}

.fp-wizard-step-item.active .fp-wizard-step-label {
    color: var(--fp-primary);
}

.fp-wizard-step-item.completed .fp-wizard-step-num {
    background: rgba(201, 168, 76, 0.15);
    color: var(--fp-accent);
    border-color: var(--fp-accent);
}

.fp-wizard-step-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: var(--fp-border);
    margin-bottom: 22px;
}

.fp-wizard-panel {
    display: none;
}

.fp-wizard-panel.active {
    display: block;
    animation: fpWizardFade 0.3s ease;
}

@keyframes fpWizardFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fp-wizard-title {
    margin: 0 0 6px;
    font-family: var(--fp-font);
    font-size: 1.25rem;
    font-weight: 700;
}

.fp-wizard-desc {
    margin: 0 0 22px;
    color: var(--fp-muted);
    font-size: 14px;
    line-height: 1.6;
}

.fp-wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.fp-wizard-actions .fp-auth-submit,
.fp-wizard-actions .fp-auth-btn-secondary {
    flex: 1;
}

.fp-verify-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.fp-verify-channel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--fp-border);
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fp-verify-channel:hover {
    border-color: rgba(17, 23, 41, 0.2);
    transform: translateY(-2px);
}

.fp-verify-channel.is-selected {
    border-color: var(--fp-primary);
    box-shadow: inset 0 0 0 1px rgba(17, 23, 41, 0.08);
    background: rgba(17, 23, 41, 0.02);
}

.fp-verify-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(17, 23, 41, 0.06);
    color: var(--fp-primary);
}

.fp-verify-channel[data-channel="whatsapp"] .fp-verify-channel-icon {
    background: rgba(37, 211, 102, 0.12);
    color: #128c7e;
}

.fp-verify-channel strong {
    font-size: 14px;
    color: var(--fp-primary);
}

.fp-verify-channel span:last-child {
    font-size: 12px;
    color: var(--fp-muted);
    word-break: break-all;
}

.fp-verify-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.fp-verify-status.is-error {
    background: rgba(220, 53, 69, 0.08);
    color: #b42318;
}

.fp-verify-status[hidden] {
    display: none !important;
}

.fp-verify-actions {
    margin-bottom: 16px;
}

.fp-verify-actions .fp-auth-btn-secondary {
    width: 100%;
}

.fp-verify-code-block {
    padding-top: 4px;
}

.fp-verify-code-input {
    letter-spacing: 0.35em;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.fp-verify-resend {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fp-info);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.fp-verify-resend:disabled {
    color: var(--fp-muted);
    cursor: not-allowed;
}

@media (max-width: 575px) {
    .fp-verify-channels {
        grid-template-columns: 1fr;
    }
}

.fp-auth-btn-secondary {
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid var(--fp-border);
    background: var(--fp-surface);
    color: var(--fp-primary);
    font-family: var(--fp-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.fp-auth-btn-secondary:hover {
    border-color: var(--fp-primary-light);
    background: var(--fp-bg);
}

.fp-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--fp-muted);
}

.fp-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--fp-danger);
    min-height: 18px;
}

.fp-auth-input.is-invalid,
.fp-auth-select.is-invalid,
.fp-auth-textarea.is-invalid {
    border-color: var(--fp-danger);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.fp-password-rules {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.fp-password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fp-muted);
    transition: color 0.2s ease;
}

.fp-password-rules li i {
    font-size: 16px;
    color: #C4C9D4;
    transition: color 0.2s ease;
}

.fp-password-rules li.valid {
    color: #0f7b46;
}

.fp-password-rules li.valid i {
    color: #0f7b46;
}

@media (max-width: 1100px) {
    .fp-auth-brand-login {
        padding: 36px 32px;
    }

    .fp-auth-brand-scene {
        width: min(100%, 240px);
    }
}

@media (max-width: 991px) {
    .fp-auth-shell {
        grid-template-columns: 1fr;
    }

    .fp-auth-brand {
        display: none;
    }

    .fp-auth-mobile-logo {
        display: block;
    }

    .fp-auth-main {
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 48px;
    }
}

@media (max-width: 575px) {
    .fp-auth-row {
        grid-template-columns: 1fr;
    }

    .fp-auth-main {
        padding: 24px 16px 40px;
    }
}

/* Billing fields */
.fp-billing-type {
    margin-bottom: 0;
}

.fp-auth-billing {
    display: grid;
    gap: 16px;
}

.fp-auth-billing[data-billing-mode="individual"] .fp-billing-tax-number {
    grid-column: 1 / -1;
}

.fp-billing-type-label,
.fp-auth-billing .fp-auth-field > label,
.fp-auth-billing .fp-auth-field > .fp-billing-type-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-primary);
}

.fp-billing-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fp-billing-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--fp-border);
    border-radius: var(--fp-radius-sm);
    background: var(--fp-bg);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fp-billing-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fp-billing-type-option.active,
.fp-billing-type-option:has(input:checked) {
    border-color: var(--fp-primary-light);
    background: rgba(17, 23, 41, 0.04);
    box-shadow: 0 0 0 4px rgba(17, 23, 41, 0.06);
}

.fp-billing-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--fp-primary);
    flex-shrink: 0;
}

.fp-billing-type-text {
    display: grid;
    gap: 2px;
}

.fp-billing-type-text strong {
    font-size: 14px;
    color: var(--fp-primary);
}

.fp-billing-type-text small {
    font-size: 12px;
    color: var(--fp-muted);
}

.fp-billing-fields {
    margin-bottom: 4px;
}

@media (max-width: 575px) {
    .fp-billing-type-options {
        grid-template-columns: 1fr;
    }
}

/* Goodbye / logout page */
.fp-auth-card-goodbye .fp-auth-card-header {
    text-align: center;
}

.fp-auth a.fp-auth-submit,
.fp-auth a.fp-auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.fp-auth a.fp-auth-submit {
    color: #fff;
}

.fp-auth a.fp-auth-submit:hover {
    color: #fff;
}

.fp-goodbye {
    text-align: center;
}

.fp-goodbye-icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(201, 168, 76, 0.22) 0%, rgba(17, 23, 41, 0.08) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fp-accent);
    font-size: 34px;
}

.fp-goodbye-icon-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(201, 168, 76, 0.35);
    animation: fp-goodbye-pulse 3s ease-in-out infinite;
}

@keyframes fp-goodbye-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

.fp-goodbye-message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--fp-muted);
}

.fp-goodbye-message strong {
    color: var(--fp-primary);
}

.fp-goodbye-notes {
    list-style: none;
    margin: 0 0 26px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--fp-bg);
    border: 1px solid var(--fp-border);
    display: grid;
    gap: 10px;
    text-align: left;
}

.fp-goodbye-notes li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fp-muted);
}

.fp-goodbye-notes li i {
    color: var(--fp-primary);
    font-size: 16px;
}

.fp-goodbye-actions {
    display: grid;
    gap: 12px;
}

.fp-goodbye-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.fp-auth-consent-field {
    margin-top: 8px;
}

.fp-auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.fp-auth-consent input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #111729;
}

.fp-auth-consent small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}


/* Toast (shared with panel) */

.fp-panel-toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.fp-panel-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    box-shadow: 0 18px 40px rgba(17, 23, 41, 0.14);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    overflow: hidden;
    position: relative;
}

.fp-panel-toast.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fp-panel-toast.is-leaving {
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
}

.fp-panel-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fp-panel-toast-body {
    min-width: 0;
    padding-top: 2px;
}

.fp-panel-toast-title {
    display: block;
    font-family: var(--fp-font);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--fp-primary);
}

.fp-panel-toast-message {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: var(--fp-primary-light);
}

.fp-panel-toast-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--fp-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fp-panel-toast-close:hover {
    background: rgba(17, 23, 41, 0.06);
    color: var(--fp-primary);
}

.fp-panel-toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(17, 23, 41, 0.06);
    overflow: hidden;
}

.fp-panel-toast-progress > span {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    animation: fpToastProgress linear forwards;
}

.fp-panel-toast-success {
    border-color: rgba(15, 123, 70, 0.2);
}

.fp-panel-toast-success .fp-panel-toast-icon {
    background: rgba(15, 123, 70, 0.12);
    color: var(--fp-success);
}

.fp-panel-toast-success .fp-panel-toast-progress > span {
    background: var(--fp-success);
}

.fp-panel-toast-error {
    border-color: rgba(220, 53, 69, 0.22);
}

.fp-panel-toast-error .fp-panel-toast-icon {
    background: rgba(220, 53, 69, 0.12);
    color: var(--fp-danger);
}

.fp-panel-toast-error .fp-panel-toast-progress > span {
    background: var(--fp-danger);
}

.fp-panel-toast-warning {
    border-color: rgba(180, 83, 9, 0.22);
}

.fp-panel-toast-warning .fp-panel-toast-icon {
    background: rgba(180, 83, 9, 0.12);
    color: var(--fp-warning);
}

.fp-panel-toast-warning .fp-panel-toast-progress > span {
    background: var(--fp-warning);
}

.fp-panel-toast-info {
    border-color: rgba(29, 78, 216, 0.2);
}

.fp-panel-toast-info .fp-panel-toast-icon {
    background: rgba(29, 78, 216, 0.1);
    color: var(--fp-info);
}

.fp-panel-toast-info .fp-panel-toast-progress > span {
    background: var(--fp-info);
}

@keyframes fpToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* —— Login brand panel (V2) —— */
.fp-auth-brand-login-v2 {
    padding: 52px 44px 46px;
    justify-content: flex-start;
}

.fp-auth-brand-login-v2::before,
.fp-auth-brand-login-v2::after {
    display: none;
}

.fp-auth-login-v2-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(201, 168, 76, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 85%, rgba(42, 58, 92, 0.92) 0%, transparent 52%),
        linear-gradient(160deg, #1A2540 0%, #111729 48%, #080C16 100%);
}

.fp-auth-login-v2-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 55% 35%, #000 15%, transparent 68%);
    opacity: 0.8;
}

.fp-auth-login-v2-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
    opacity: 0.9;
}

.fp-auth-login-v2-orb-1 {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -90px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.42) 0%, transparent 70%);
    animation: fpAuthOrbFloatV2 10s ease-in-out infinite;
}

.fp-auth-login-v2-orb-2 {
    width: 170px;
    height: 170px;
    bottom: -70px;
    left: -60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    animation: fpAuthOrbFloatV2 12s ease-in-out infinite reverse;
}

.fp-auth-login-v2-sheen {
    position: absolute;
    inset: -40% -30%;
    background: linear-gradient(115deg, transparent 30%, rgba(201, 168, 76, 0.22) 50%, transparent 70%);
    transform: rotate(10deg);
    animation: fpAuthSheenV2 8s ease-in-out infinite;
    opacity: 0.9;
}

.fp-auth-login-v2-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-auth-login-v2-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 4px 0;
    transform-origin: center;
    animation: fpAuthLogoFloatV2 6.5s ease-in-out infinite;
}

.fp-auth-login-v2-logo img {
    height: 54px;
    width: auto;
    display: block;
    filter: drop-shadow(0 14px 30px rgba(201, 168, 76, 0.22));
}

.fp-auth-login-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 4px;
}

.fp-auth-login-v2-badge i {
    color: var(--fp-accent);
}

.fp-auth-brand-login-v2 h1 {
    margin: 6px 0 0;
    font-family: var(--fp-font);
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.fp-auth-brand-login-v2 p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 380px;
}

.fp-auth-login-v2-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
}

.fp-auth-login-v2-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 1);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
    animation: fpAuthDotPulseV2 2.2s ease-out infinite;
}

.fp-auth-login-v2-line {
    height: 2px;
    width: 110px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.85), rgba(201, 168, 76, 0.1));
    animation: fpAuthLineSweepV2 3.6s ease-in-out infinite;
}

.fp-auth-login-v2-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.fp-auth-login-v2-stat {
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(8px);
}

.fp-auth-login-v2-stat strong {
    display: block;
    font-family: var(--fp-font);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.fp-auth-login-v2-stat span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

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

@keyframes fpAuthOrbFloatV2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, 14px); }
}

@keyframes fpAuthSheenV2 {
    0%, 100% { transform: translateX(-40%) rotate(10deg); opacity: 0.55; }
    50% { transform: translateX(40%) rotate(10deg); opacity: 0.95; }
}

@keyframes fpAuthDotPulseV2 {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes fpAuthLineSweepV2 {
    0%, 100% { transform: scaleX(0.75); opacity: 0.65; }
    50% { transform: scaleX(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fp-auth-login-v2-logo,
    .fp-auth-login-v2-orb-1,
    .fp-auth-login-v2-orb-2,
    .fp-auth-login-v2-sheen,
    .fp-auth-login-v2-dot,
    .fp-auth-login-v2-line {
        animation: none !important;
    }
}

@media (max-width: 575px) {
    .fp-panel-toast-stack {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
