/* ==========================================================================
   AICHIABILL LUXURY AUTHENTICATION DESIGN SYSTEM
   Matches Brand Guidelines, Slide Deck (docs/10) & Screen Specs (docs/09)
   ========================================================================== */

html {
    scrollbar-gutter: stable;
}

/* Main Auth Grid Layout */
.auth-body {
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: minmax(420px, 480px) 1fr;
    background: #090e17;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    margin: 0;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Left Form Side (Modern Agency Clean Bright Surface)
   -------------------------------------------------------------------------- */
.auth-form-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3.5vh, 40px) clamp(28px, 4vw, 56px);
    background: #ffffff;
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.06);
    z-index: 10;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Top bar navigation & badge */
.auth-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brand-auth {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.03em;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-auth:hover {
    transform: translateY(-1px);
    color: #0f172a;
}
.brand-logo-img {
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-auth:hover .brand-logo-img {
    transform: scale(1.05);
}
.brand-mark-auth {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.brand-mark-auth svg {
    width: 20px;
    height: 20px;
}
.brand-title {
    color: #0f172a;
}
.brand-highlight {
    color: #0d9488;
}

.auth-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
}
.pulse-green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseDot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Center Form Wrapper */
.auth-form-wrap {
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

/* Typography & Headers */
.auth-header {
    margin-bottom: 24px;
}
.auth-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.auth-pill-badge svg {
    width: 14px;
    height: 14px;
    color: #059669;
}
.auth-h1 {
    font-size: clamp(25px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: #0f172a;
    margin: 0 0 10px;
}
.gradient-text {
    background: linear-gradient(135deg, #0d9488 0%, #059669 45%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    margin: 0;
}

/* Feedback Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 20px;
    animation: alertSlideDown 0.25s ease-out;
}
@keyframes alertSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-alert.danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}
.auth-alert.danger .alert-icon {
    color: #e11d48;
}
.auth-alert.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.auth-alert.success .alert-icon {
    color: #059669;
}
.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.alert-content strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 13px;
}
.alert-content p {
    margin: 0;
    font-size: 12px;
    opacity: 0.92;
}
.alert-content a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Form Controls & Inputs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.custom-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}
.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    transition: color 0.15s ease;
}
.forgot-link:hover {
    color: #047857;
    text-decoration: underline;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.input-container:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}
.input-container:focus-within {
    border-color: #0d9488;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.input-prefix-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    margin-left: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.input-container:focus-within .input-prefix-icon {
    color: #0d9488;
}

.custom-field {
    width: 100%;
    height: 48px;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px 0 10px;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
    font-weight: 500;
}
.custom-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.password-container .custom-field {
    padding-right: 44px;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.password-toggle-btn:hover {
    color: #334155;
    background: #f1f5f9;
}
.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* High-Impact CTA Button */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    margin-top: 6px;
    background: #111827; /* Deep Obsidian Navy */
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-submit-btn:hover {
    background: #000000;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3);
    transform: translateY(-2px);
}
.auth-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.25);
}
.btn-icon-wrapper {
    display: grid;
    place-items: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.auth-submit-btn:hover .btn-icon-wrapper {
    transform: translateX(4px);
}
.btn-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

/* Footer Prompt */
.auth-footer-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: #64748b;
}
.register-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0d9488;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}
.register-link:hover {
    color: #047857;
    text-decoration: underline;
}
.register-link svg {
    width: 14px;
    height: 14px;
}

/* Bottom Credit */
.auth-bottom-credit {
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Right Showcase Side (3D Claymorphic & Pastel Fintech Showcase)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Right Showcase Side (Dark Luxury Glassmorphic Fintech Showcase)
   Matches Screen Specs (docs/09) & High-End Agency Aesthetics
   -------------------------------------------------------------------------- */
.auth-art-showcase {
    position: relative;
    background: radial-gradient(ellipse 90% 90% at 70% 20%, #0d1e2e 0%, #09131f 40%, #040810 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 3vh, 48px) clamp(28px, 4vw, 56px);
    color: #ffffff;
    min-height: 100vh;
}

/* Ambient glow orbs with deep atmospheric luminescence */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.85;
}
.orb-emerald {
    width: 520px;
    height: 520px;
    top: -140px;
    right: -80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(13, 148, 136, 0.12) 50%, rgba(13, 148, 136, 0) 70%);
    animation: orbFloat1 14s ease-in-out infinite alternate;
}
.orb-cyan {
    width: 480px;
    height: 480px;
    bottom: -120px;
    left: -70px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.24) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(6, 182, 212, 0) 70%);
    animation: orbFloat2 16s ease-in-out infinite alternate;
}
.orb-amber {
    width: 360px;
    height: 360px;
    top: 42%;
    right: 12%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);
    animation: orbFloat3 11s ease-in-out infinite alternate;
}

/* Backward compatibility for pastel orb class names if referenced */
.orb-pastel-blue {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}
.orb-pastel-purple {
    width: 450px;
    height: 450px;
    bottom: -150px;
    left: 10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 25px) scale(1.08); }
}
@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, -20px) scale(1.05); }
}
@keyframes orbFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, -25px) scale(0.95); }
}

/* Precision Geometric Mesh Grid Overlay */
.mesh-grid,
.mesh-grid-light {
    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: 32px 32px;
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 35%, transparent 80%);
    pointer-events: none;
}

/* Showcase content container */
.showcase-content {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
}

/* Eyebrow Badge */
.showcase-badge,
.showcase-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 14px;
    background: rgba(13, 148, 136, 0.16);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2dd4bf;
    margin-bottom: 18px;
}
.showcase-badge svg,
.showcase-badge-dark svg {
    width: 14px;
    height: 14px;
    color: #2dd4bf;
}

/* Headings with high contrast & radiant emerald-cyan gradient */
.showcase-heading,
.showcase-heading-dark {
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 14px;
}
.showcase-accent,
.showcase-accent-dark {
    background: linear-gradient(135deg, #34d399 0%, #2dd4bf 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.showcase-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 24px;
    max-width: 520px;
}

/* --------------------------------------------------------------------------
   Interactive Animated Workflow: Scan Bill -> AI Split Hub -> Multi-member Routing
   -------------------------------------------------------------------------- */
.workflow-engine-card {
    position: relative;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 18px 20px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    overflow: hidden;
}

.wf-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wf-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    letter-spacing: 0.05em;
}

.wf-live-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: wfLivePulse 2s ease-in-out infinite;
}

@keyframes wfLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.wf-live-cycle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #94a3b8;
}

.wf-spin-icon {
    width: 12px;
    height: 12px;
    animation: wfSpin 8s linear infinite;
}

@keyframes wfSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stage 1: Receipt Card */
/* Stage 1: Receipt Card */
.wf-stage-receipt {
    position: relative;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: wfReceiptBreathe 4.5s ease-in-out infinite alternate;
}

@keyframes wfReceiptBreathe {
    0% {
        border-color: rgba(52, 211, 153, 0.2);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
    100% {
        border-color: rgba(52, 211, 153, 0.45);
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.2), 0 8px 20px rgba(0, 0, 0, 0.25);
    }
}

/* Continuous Two-Way Sweeping Laser Line & Curtain across receipt items */
.wf-scanner-curtain {
    position: absolute;
    left: 0;
    right: 0;
    height: 42px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.16) 100%);
    pointer-events: none;
    z-index: 4;
    opacity: 0.8;
    animation: wfCurtainContinuous 4.5s ease-in-out infinite alternate;
}

.wf-scanner-beam {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #6ee7b7 15%, #34d399 50%, #6ee7b7 85%, transparent 100%);
    box-shadow: 0 0 14px 2px rgba(52, 211, 153, 0.85), 0 0 24px 4px rgba(16, 185, 129, 0.4);
    z-index: 5;
    pointer-events: none;
    opacity: 0.9;
    animation: wfLaserScanContinuous 4.5s ease-in-out infinite alternate;
}

@keyframes wfCurtainContinuous {
    0% { top: -38px; }
    100% { top: calc(100% - 46px); }
}

@keyframes wfLaserScanContinuous {
    0% { top: 4px; }
    100% { top: calc(100% - 7px); }
}

.wf-receipt-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
}

.wf-receipt-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-receipt-title svg {
    width: 17px;
    height: 17px;
    color: #60a5fa;
}

.wf-receipt-title strong {
    display: block;
    color: #f1f5f9;
    font-size: 12.5px;
    font-weight: 700;
}

.wf-receipt-title small {
    display: block;
    color: #94a3b8;
    font-size: 10.5px;
}

.wf-receipt-total {
    text-align: right;
}

.wf-amount-val {
    display: block;
    color: #f8fafc;
    font: 700 14px/1 "DM Sans", sans-serif;
    font-variant-numeric: tabular-nums;
}

.wf-amount-val small {
    font-size: 11px;
    color: #94a3b8;
}

.wf-badge-scanned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 999px;
    padding: 1.5px 7px;
    margin-top: 2px;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}

.wf-badge-scanned svg {
    width: 11px;
    height: 11px;
}

.wf-receipt-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wf-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11.5px;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.wf-item-row strong {
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Conduit SVG Paths */
.wf-conduit-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    line-height: 0;
}

.wf-svg-conduit {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.wf-svg-vertical {
    height: 32px;
}

.wf-svg-branches {
    height: 48px;
}

.wf-wire-base {
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
}

.wf-wire-glow {
    stroke: #34d399;
    stroke-width: 4.5;
    fill: none;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px #10b981);
    stroke-dasharray: 26 74;
    opacity: 1;
}

.wf-wire-top {
    animation: wfSnakeRun 3.8s linear infinite;
}

/* Stage 2: AI Hub Core */
.wf-hub-core {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1.5px solid rgba(96, 165, 250, 0.35);
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: wfHubBreathe 4.2s ease-in-out infinite alternate;
}

@keyframes wfHubBreathe {
    0% {
        border-color: rgba(96, 165, 250, 0.25);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }
    100% {
        border-color: rgba(52, 211, 153, 0.45);
        box-shadow: 0 0 16px rgba(52, 211, 153, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
    }
}

.wf-core-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.35);
    flex-shrink: 0;
}

.wf-core-icon svg {
    width: 17px;
    height: 17px;
}

.wf-core-text {
    flex: 1;
    min-width: 0;
}

.wf-core-text strong {
    display: block;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.wf-core-text small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    margin-top: 1px;
}

.wf-core-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.wf-core-badge svg {
    width: 10px;
    height: 10px;
}

/* Branching Beams Conduit (5 Branches) - Continuous Smooth Snake Motion */
.wf-wire-glow-branch {
    stroke-width: 4.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 26 74;
    opacity: 1;
    animation: wfSnakeRun 4.2s linear infinite;
}

.wf-branch-1 {
    stroke: #34d399;
    filter: drop-shadow(0 0 6px #10b981);
}

.wf-branch-2 {
    stroke: #38bdf8;
    filter: drop-shadow(0 0 6px #0284c7);
}

.wf-branch-3 {
    stroke: #fbbf24;
    filter: drop-shadow(0 0 6px #d97706);
}

.wf-branch-4 {
    stroke: #c084fc;
    filter: drop-shadow(0 0 6px #9333ea);
}

.wf-branch-5 {
    stroke: #fb7185;
    filter: drop-shadow(0 0 6px #e11d48);
}

/* Continuous Snake Run: Moves smoothly from top (0) to bottom (-100) endlessly */
@keyframes wfSnakeRun {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -100;
    }
}

/* Step 3: Destination Members Grid (5 Members) */
.wf-members-grid.wf-members-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.wf-member-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wf-dest-1 { animation: wfCardBreathe1 4.2s ease-in-out infinite alternate; }
.wf-dest-2 { animation: wfCardBreathe2 4.2s ease-in-out infinite alternate; }
.wf-dest-3 { animation: wfCardBreathe3 4.2s ease-in-out infinite alternate; }
.wf-dest-4 { animation: wfCardBreathe4 4.2s ease-in-out infinite alternate; }
.wf-dest-5 { animation: wfCardBreathe5 4.2s ease-in-out infinite alternate; }

@keyframes wfCardBreathe1 {
    0% { border-color: rgba(52, 211, 153, 0.25); box-shadow: none; }
    100% { border-color: rgba(52, 211, 153, 0.65); box-shadow: 0 0 14px rgba(52, 211, 153, 0.35); }
}

@keyframes wfCardBreathe2 {
    0% { border-color: rgba(56, 189, 248, 0.25); box-shadow: none; }
    100% { border-color: rgba(56, 189, 248, 0.65); box-shadow: 0 0 14px rgba(56, 189, 248, 0.35); }
}

@keyframes wfCardBreathe3 {
    0% { border-color: rgba(251, 191, 36, 0.25); box-shadow: none; }
    100% { border-color: rgba(251, 191, 36, 0.65); box-shadow: 0 0 14px rgba(251, 191, 36, 0.35); }
}

@keyframes wfCardBreathe4 {
    0% { border-color: rgba(192, 132, 252, 0.25); box-shadow: none; }
    100% { border-color: rgba(192, 132, 252, 0.65); box-shadow: 0 0 14px rgba(192, 132, 252, 0.35); }
}

@keyframes wfCardBreathe5 {
    0% { border-color: rgba(251, 113, 133, 0.25); box-shadow: none; }
    100% { border-color: rgba(251, 113, 133, 0.65); box-shadow: 0 0 14px rgba(251, 113, 133, 0.35); }
}

.wf-member-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    text-align: left;
}

.wf-avatar {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.av-an { background: linear-gradient(135deg, #10b981, #059669); }
.av-binh { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.av-chi { background: linear-gradient(135deg, #f59e0b, #d97706); }
.av-dung { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.av-hanh { background: linear-gradient(135deg, #f43f5e, #be123c); }

.wf-member-info {
    min-width: 0;
}

.wf-member-info strong {
    display: block;
    font-size: 11px;
    color: #f1f5f9;
    line-height: 1.2;
}

.wf-member-info small {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-member-amount {
    font: 700 12.5px/1 "DM Sans", sans-serif;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
    margin: 5px 0 4px;
}

.wf-member-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    font-weight: 700;
    color: #34d399;
}

.wf-member-status svg {
    width: 10px;
    height: 10px;
}

/* Footer summary */
.wf-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-footer-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    color: #cbd5e1;
    line-height: 1.4;
}

.wf-footer-stat svg {
    width: 14px;
    height: 14px;
    color: #10b981;
    flex-shrink: 0;
}

.wf-footer-stat strong {
    color: #6ee7b7;
}

@media (max-width: 480px) {
    .wf-members-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Mockup Bento Cards Stack (Double-Bezel Architecture & Fine Glassmorphism)
   -------------------------------------------------------------------------- */
.mockup-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mockup-card {
    position: relative;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 16px 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.mockup-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 212, 191, 0.35);
    box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(13, 148, 136, 0.15);
}

.floating-card-1,
.floating-card-2 {
    /* Stable transform to eliminate jitter and scrollbar toggle loops */
    transform: translateY(0);
}

/* Card 1: Live Expense Split Preview */
.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.card-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.status-indicator-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}
.card-time {
    font-size: 11.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-time svg {
    width: 13px;
    height: 13px;
    color: #64748b;
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.card-avatar-group {
    display: flex;
    align-items: center;
}
.avatar-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    margin-left: -7px;
    border: 2px solid #0f172a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.card-avatar-group .avatar-pill:first-child {
    margin-left: 0;
}
.avatar-pill.av-1 { background: linear-gradient(135deg, #0d9488 0%, #059669 100%); }
.avatar-pill.av-2 { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.avatar-pill.av-3 { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.avatar-pill.av-4 { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
.avatar-pill.av-more { background: #334155; font-size: 10px; color: #cbd5e1; }

.card-amount-block {
    text-align: right;
}
.card-amount-block small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}
.card-amount-block strong {
    font-size: 19px;
    font-weight: 800;
    color: #34d399;
    letter-spacing: -0.02em;
}
.currency-unit {
    font-size: 14px;
    font-weight: 700;
    color: #6ee7b7;
}

.card-desc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
}
.desc-icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.desc-icon-circle svg {
    width: 17px;
    height: 17px;
}
.desc-icon-circle.icon-teal {
    background: rgba(13, 148, 136, 0.18);
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.3);
}
.desc-icon-circle.icon-blue {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
}
.desc-icon-circle.icon-amber {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.desc-texts {
    flex: 1;
}
.desc-texts strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
}
.desc-texts small {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
}

.split-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.split-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
}
.split-progress-bar {
    display: flex;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    gap: 3px;
    background: rgba(255, 255, 255, 0.06);
}
.bar-segment {
    height: 100%;
    border-radius: 3px;
}
.seg-1 { background: #0d9488; }
.seg-2 { background: #3b82f6; }
.seg-3 { background: #8b5cf6; }
.seg-4 { background: #f59e0b; }

/* Card 2: Settlement Minimization Result (Greedy Matching) */
.card-netting-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.netting-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #38bdf8;
}
.badge-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    display: grid;
    place-items: center;
    color: #38bdf8;
}
.badge-icon-wrap svg {
    width: 14px;
    height: 14px;
}
.saving-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.28);
}
.chip-mini-icon {
    width: 12px;
    height: 12px;
    color: #38bdf8;
}

.netting-flow-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.flow-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.flow-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.flow-users {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 9px;
    border-radius: 6px;
}
.user-debtor {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.user-creditor {
    background: rgba(16, 185, 129, 0.15);
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.flow-arrow {
    display: grid;
    place-items: center;
    color: #64748b;
}
.flow-arrow svg {
    width: 13px;
    height: 13px;
}
.flow-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.flow-money {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}
.flow-status {
    font-size: 10.5px;
    font-weight: 600;
    color: #34d399;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}
.check-mini {
    width: 10px;
    height: 10px;
}

/* Card 3: Floating Feature Pill */
.mockup-card-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease;
}
.mockup-card-pill:hover {
    border-color: rgba(45, 212, 191, 0.3);
}
.pill-icon-glow {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}
.pill-icon-glow svg {
    width: 19px;
    height: 19px;
}
.pill-text-block {
    flex: 1;
}
.pill-text-block strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}
.pill-text-block span {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
}
.pill-badge-tag {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(45, 212, 191, 0.12);
    color: #2dd4bf;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid rgba(45, 212, 191, 0.25);
    white-space: nowrap;
}

/* Step cards for register / onboarding */
.step-card .card-desc-row {
    padding: 0;
    background: transparent;
    border: none;
    margin: 0;
}
.step-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: auto;
}

/* Showcase footer */
.showcase-footer,
.showcase-footer-dark {
    margin-top: 8px;
}
.trust-badge,
.trust-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
.trust-badge svg,
.trust-badge-dark svg {
    width: 16px;
    height: 16px;
    color: #34d399;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Legacy & Compatibility Styles (register, forgot-password, reset-password, verify)
   -------------------------------------------------------------------------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 24px;
}
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #0d9488 0%, #059669 100%);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.brand-mark svg {
    width: 19px;
    height: 19px;
}
.brand-name span {
    color: #0d9488;
}
.eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d9488;
    margin-bottom: 8px;
}
.accent-word {
    color: #0d9488;
}
.auth-switch {
    margin-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}
.auth-switch a {
    color: #0d9488;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-switch a:hover {
    text-decoration: underline;
    color: #047857;
}

.auth-art {
    position: relative;
    padding: clamp(42px, 6vw, 92px);
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #111827;
    background: #f0f7ff;
}
.auth-art::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.8;
    background-image: 
        radial-gradient(circle at top right, rgba(186, 230, 253, 0.6) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(237, 233, 254, 0.6) 0%, transparent 50%);
}
.auth-art::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 1;
    background-image: 
        linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, transparent 80%);
    pointer-events: none;
}
.auth-showcase {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
}
.auth-badge {
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.auth-badge svg {
    width: 14px;
    color: #6366f1;
}
.auth-showcase h2 {
    margin: 24px 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}
.auth-showcase h2 span {
    color: #6366f1;
}
.auth-lead {
    max-width: 520px;
    margin: 0;
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.65;
}
.auth-proof-list {
    margin-top: 32px;
    display: grid;
    gap: 12px;
}
.auth-proof {
    min-height: 72px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.auth-proof > span {
    color: #6366f1;
    font-size: 12px;
    font-weight: 800;
}
.auth-proof strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}
.auth-proof p {
    margin: 2px 0 0;
    color: #475569;
    font-size: 12px;
}
.auth-proof > svg {
    width: 18px;
    color: #38bdf8;
}
.auth-footnote {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}
.auth-footnote svg {
    width: 16px;
    color: #6366f1;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .auth-body {
        grid-template-columns: 1fr;
    }
    .auth-form-side {
        min-height: 100vh;
        padding: 32px 20px;
        box-shadow: none;
    }
    .auth-art,
    .auth-art-showcase {
        display: none;
    }
    .auth-form-wrap {
        max-width: 100%;
        margin: 20px 0;
    }
}

@media (max-height: 850px) {
    .auth-form-side {
        padding: 20px clamp(24px, 4vw, 44px);
    }
    .auth-top-bar {
        margin-bottom: 14px;
    }
    .auth-header {
        margin-bottom: 14px;
    }
    .auth-h1 {
        font-size: clamp(21px, 2.2vw, 26px);
        margin-bottom: 6px;
    }
    .auth-subtitle {
        margin-bottom: 12px;
        font-size: 12px;
    }
    .auth-form {
        gap: 13px;
    }
    .custom-field {
        height: 44px;
    }
    .auth-submit-btn {
        height: 46px;
        margin-top: 4px;
    }
    .auth-footer-prompt {
        margin-top: 14px;
    }
    .auth-bottom-credit {
        padding-top: 14px;
    }
    .showcase-badge {
        margin-bottom: 12px;
    }
    .showcase-heading,
    .showcase-heading-dark {
        font-size: clamp(26px, 3vw, 34px);
        margin-bottom: 8px;
    }
    .showcase-desc {
        font-size: 13px;
        margin-bottom: 14px;
        line-height: 1.5;
    }
    .mockup-cards-stack {
        gap: 12px;
        margin-bottom: 14px;
    }
    .mockup-card {
        padding: 13px 16px;
    }
    .showcase-footer {
        margin-top: 4px;
    }
}
