/* ==========================================================================
   V2 — BIOMETRIC SPLIT SCREEN
   Panel kiri putih + dotLottie, panel kanan card form modern.
   Semua gerakan memakai transform/opacity agar tetap 60fps.
   ========================================================================== */

:root {
    --primary: #5b5bd6;
    --primary-dark: #4f46e5;
    --violet: #8b5cf6;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --ink: #0f172a;
    --muted: #667085;
    --soft-line: #edf1f7;
    --card-shadow: 0 24px 60px rgba(15, 23, 42, .09), 0 2px 8px rgba(15, 23, 42, .03);
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(ellipse at 12% 8%, rgba(99, 102, 241, .10), transparent 34%),
        radial-gradient(ellipse at 88% 92%, rgba(34, 211, 238, .09), transparent 34%),
        linear-gradient(150deg, #f7f9fd 0%, #eef2fa 52%, #f8fafc 100%);
}

body::before {
    opacity: .45;
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.65), transparent 78%);
}

.bg-orb { display: none; }

.auth-page {
    padding: 28px;
}

.auth-shell {
    max-width: 1240px;

    grid-template-columns: minmax(0, 1.06fr) minmax(450px, .94fr);

    border: 1px solid rgba(226, 232, 240, .82);
    border-radius: 34px;

    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    box-shadow:
        0 48px 110px rgba(15, 23, 42, .13),
        0 10px 32px rgba(79, 70, 229, .07);

    animation: shellEnterV2 .72s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes shellEnterV2 {
    from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.988); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* --------------------------------------------------------------------------
   PANEL KIRI — putih bersih, menyatu dengan Lottie
   -------------------------------------------------------------------------- */

.auth-visual {
    min-height: 760px;
    padding: 40px 46px 34px;

    color: var(--ink);

    background: #fff;
}

.auth-visual::before {
    background:
        radial-gradient(ellipse at 50% 46%, rgba(99, 102, 241, .105), transparent 54%),
        radial-gradient(ellipse at 82% 86%, rgba(34, 211, 238, .085), transparent 46%);

    background-image:
        radial-gradient(ellipse at 50% 46%, rgba(99, 102, 241, .105), transparent 54%),
        radial-gradient(ellipse at 82% 86%, rgba(34, 211, 238, .085), transparent 46%);

    mask-image: none;
}

.auth-visual::after { display: none; }

.visual-content {
    z-index: 2;
}

.visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    width: 152px;
    min-height: 60px;
    padding: 9px 13px;

    border: 1px solid #edf1f7;
    border-radius: 18px;

    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.secure-badge {
    margin-top: 0;
    padding: 8px 12px;

    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #e0e7ff;

    font-size: .66rem;
    letter-spacing: .09em;
}

.secure-badge .live-dot {
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .11);
}

.visual-hero {
    margin-top: 42px;
    animation: fadeUpV2 .7s cubic-bezier(.16, 1, .3, 1) .08s both;
}

.visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 13px;

    color: var(--primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.visual-eyebrow i { font-size: .8rem; }

.visual-title {
    max-width: 430px;
    margin: 0 0 14px;

    color: var(--ink);

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.05em;
}

.visual-title span {
    background: linear-gradient(92deg, #5b5bd6 0%, #8b5cf6 48%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-spacing: .12em;
}

.visual-desc {
    max-width: 410px;

    color: var(--muted);

    font-size: .9rem;
    line-height: 1.75;
}

/* Lottie stage */
.lottie-stage {
    position: relative;

    flex: 1 1 auto;
    min-height: 310px;

    margin: 8px 0 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    contain: layout paint;
    animation: lottieEnterV2 .9s cubic-bezier(.16, 1, .3, 1) .16s both;
}

.lottie-stage::before {
    content: "";
    position: absolute;
    width: min(74%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;

    background: radial-gradient(circle, rgba(99, 102, 241, .10), transparent 68%);
    filter: blur(16px);

    transform: translateZ(0);
}

.lottie-canvas {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    max-width: 425px;
    height: 360px;

    transform: translateZ(0);
}

.lottie-fallback {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #c7d2fe;
    font-size: .72rem;
    font-weight: 700;

    opacity: 1;
    transition: opacity .35s ease;
}

.lottie-fallback i {
    font-size: 4.2rem;
    color: #e0e7ff;

    animation: fallbackFloat 3s cubic-bezier(.45, 0, .55, 1) infinite;
}

.lottie-stage.is-ready .lottie-fallback {
    opacity: 0;
    pointer-events: none;
}

@keyframes fallbackFloat {
    0%, 100% { transform: translate3d(0, -5px, 0); }
    50%      { transform: translate3d(0, 6px, 0); }
}

@keyframes lottieEnterV2 {
    from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.97); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* features */
.visual-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;

    margin-top: 4px;

    animation: fadeUpV2 .7s cubic-bezier(.16, 1, .3, 1) .24s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
    padding: 10px 11px;

    color: #344054;

    border: 1px solid #eef2f7;
    border-radius: 13px;

    background: #fbfcff;

    font-size: .68rem;
    font-weight: 700;
    line-height: 1.25;
}

.feature-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    border: 0;
    border-radius: 9px;

    color: var(--primary);
    background: #eef2ff;
}

.feature-item:nth-child(2) .feature-icon {
    color: #0e7490;
    background: #ecfeff;
}

.feature-item:nth-child(3) .feature-icon {
    color: #7c3aed;
    background: #f5f3ff;
}

.visual-bottom {
    margin-top: 20px;
    padding-top: 0;

    animation: fadeUpV2 .7s cubic-bezier(.16, 1, .3, 1) .3s both;
}

.info-pill {
    color: #667085;
    background: #f8fafc;
    border: 1px solid #edf1f7;

    font-size: .65rem;
}

.info-pill i { color: var(--primary); }

@keyframes fadeUpV2 {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --------------------------------------------------------------------------
   PANEL KANAN — card form
   -------------------------------------------------------------------------- */

.auth-content {
    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(165deg, #f8faff 0%, #eef2fb 100%);
}

.login-card {
    position: relative;

    width: 100%;
    max-width: 528px;

    padding: 28px 28px 22px;

    overflow: hidden;

    border: 1px solid #eef2f7;
    border-radius: 28px;

    background: #fff;

    box-shadow: var(--card-shadow);

    transform: translateZ(0);
    animation: cardEnterV2 .78s cubic-bezier(.16, 1, .3, 1) .12s both;
}

@keyframes cardEnterV2 {
    from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.978); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.content-top {
    margin-bottom: 20px;
}

.mobile-brand {
    align-items: center;
    max-width: 128px;
    height: 45px;
}

.mobile-brand img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.online-count { font-size: .68rem; }

.device-badge {
    padding: 7px 11px;
    color: #475467;
    background: #f8fafc;
    border-color: #edf1f7;
    font-size: .66rem;
}

.auth-heading {
    margin-bottom: 6px;
    font-size: clamp(1.45rem, 2.6vw, 1.92rem);
    letter-spacing: -.04em;
}

.auth-subtitle {
    margin-bottom: 18px;
    font-size: .8rem;
    line-height: 1.6;
}

/* header actions */
.lw-panel-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
    gap: 12px;
}

.lw-head-actions {
    justify-content: flex-end;
}

.lw-hbtn {
    height: 36px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: .7rem;
}

.lw-hbtn-reset {
    color: #b42318;
    background: #fff5f5;
    border-color: #fee4e2;
}

.lw-hbtn-calib {
    background: linear-gradient(135deg, #5b5bd6, #7c3aed);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .26);
}

/* stats dipadatkan */
.lw-stat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 16px;
}

.lw-stat .ls {
    padding: 8px 9px;
    gap: 8px;
    border-radius: 11px;
    border-color: #eef2f7;
    background: #fbfcff;
}

.lw-stat .ls i {
    width: 30px;
    height: 30px;
    font-size: .92rem;
    border-radius: 9px;
}

.lw-stat .ls b { font-size: .84rem; }
.lw-stat .ls span { font-size: .61rem; line-height: 1.25; }

/* --------------------------------------------------------------------------
   STEPPER V2
   -------------------------------------------------------------------------- */

.stepper { margin-bottom: 20px; }

.step {
    gap: 7px;
    font-size: .68rem;
}

.step-number {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    font-size: .72rem;

    transform: translateZ(0);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1),
                background .3s ease, color .3s ease, box-shadow .3s ease;
}

.step.is-complete .step-number {
    color: #fff;
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 6px 14px rgba(16, 185, 129, .22);
}

.step.is-active .step-number {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--violet));
    box-shadow: 0 6px 16px rgba(99, 102, 241, .26);
}

.step.is-complete .step-index { display: none; }
.step .step-check { display: none; }
.step.is-complete .step-check { display: inline; }

.step.is-active { color: var(--ink); }

.step-line {
    height: 2px;
    margin: 0 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #eef2f7;
}

.step-line.active {
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    background-size: 200% 100%;
    animation: stepLineFlow 2.4s linear infinite;
}

@keyframes stepLineFlow {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   FORM + CACHE + LOADING
   -------------------------------------------------------------------------- */

.lw-gate {
    margin-bottom: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.lw-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.lw-gate label {
    margin-bottom: 0;
    color: #344054;
    font-size: .72rem;
}

.lw-cache-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    max-width: 100%;
    padding: 4px 7px;

    color: #027a48;
    background: #ecfdf3;
    border: 1px solid #d1fadf;
    border-radius: 999px;

    font-size: .59rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    animation: badgePop .35s cubic-bezier(.16, 1, .3, 1) both;
}

.lw-cache-badge[hidden] { display: none !important; }
.lw-cache-badge i { font-size: .7rem; }

.lw-cache-clear {
    width: 16px;
    height: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-left: 1px;
    padding: 0;

    color: #027a48;
    background: rgba(2, 122, 72, .08);
    border: 0;
    border-radius: 50%;

    font-size: .72rem;
    line-height: 1;
    cursor: pointer;
}

.lw-cache-clear:hover { background: rgba(2, 122, 72, .16); }

@keyframes badgePop {
    from { opacity: 0; transform: scale(.86) translateZ(0); }
    to   { opacity: 1; transform: scale(1) translateZ(0); }
}

.lw-gate .lw-inp input {
    padding: 13px 42px 13px 41px;

    color: var(--ink);
    background: #fbfcfe;
    border: 1.5px solid #e4e9f1;
    border-radius: 13px;

    font-size: .92rem;
    font-weight: 650;
    letter-spacing: .06em;

    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.lw-gate .lw-inp input::placeholder {
    color: #98a2b3;
    font-weight: 500;
    letter-spacing: 0;
}

.lw-gate .lw-inp input:focus {
    border-color: #8b8bef;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .11), 0 8px 20px rgba(99, 102, 241, .05);
}

.lw-gate .lw-inp i {
    left: 14px;
    color: #98a2b3;
    font-size: .96rem;
}

.lw-inp-state {
    position: absolute;
    right: 13px;

    display: grid;
    place-items: center;

    color: #12b76a;
    font-size: 1rem;

    opacity: 0;
    transform: scale(.8) translateZ(0);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.lw-gate.is-valid .lw-inp-state {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.lw-gate-hint {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 7px 1px 0;

    color: #98a2b3;
    font-size: .63rem;
    font-weight: 600;
}

.lw-gate-hint i { color: #667eea; font-size: .7rem; }

/* progress bar tipis */
.lw-progress {
    position: absolute;
    inset: 0 0 auto 0;

    height: 3px;
    overflow: hidden;

    opacity: 0;
    transition: opacity .2s ease;

    pointer-events: none;
    z-index: 5;
}

.lw-progress.is-active { opacity: 1; }

.lw-progress span {
    display: block;
    width: 42%;
    height: 100%;

    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);

    transform: translate3d(-120%, 0, 0);
    animation: progressGlide 1.05s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes progressGlide {
    0%   { transform: translate3d(-120%, 0, 0); }
    100% { transform: translate3d(340%, 0, 0); }
}

/* skeleton tipis */
.lw-skeleton {
    display: none;
    gap: 6px;
    margin-top: 10px;
}

.lw-skeleton span {
    display: block;
    height: 5px;

    border-radius: 99px;
    background: linear-gradient(90deg, #eef2f7 25%, #f9fbff 37%, #eef2f7 63%);
    background-size: 400% 100%;

    animation: skeletonShimmer 1.15s ease-in-out infinite;
    transform: translateZ(0);
}

.lw-skeleton span:nth-child(2) { width: 68%; }

@keyframes skeletonShimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0 0; }
}

.lw-gate.is-checking .lw-skeleton { display: grid; }
.lw-gate.is-checking .lw-gate-hint { opacity: .45; }
.lw-gate.is-checking .lw-inp input { background: #f8fafc; }

/* tombol Lanjut */
.lw-btn-next {
    position: relative;

    min-height: 48px;
    margin-top: 13px;
    padding: 12px 18px;

    overflow: hidden;

    border-radius: 13px;

    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 52%, #6d28d9 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .28);

    font-size: .84rem;
    font-weight: 800;

    transform: translateZ(0);
    transition: transform .16s cubic-bezier(.2, .8, .2, 1),
                box-shadow .2s ease, filter .2s ease;

    touch-action: manipulation;
}

.lw-btn-next::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(110deg, transparent 22%, rgba(255,255,255,.22) 50%, transparent 78%);

    transform: translate3d(-140%, 0, 0);
    transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.lw-btn-next:hover:not(:disabled)::after { transform: translate3d(140%, 0, 0); }

.lw-btn-next:hover:not(:disabled) {
    filter: brightness(1.04);
    box-shadow: 0 14px 30px rgba(99, 102, 241, .34);
    transform: translate3d(0, -1px, 0);
}

.lw-btn-next:active:not(:disabled) {
    transform: translate3d(0, 0, 0) scale(.985);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .26);
}

.lw-btn-next:disabled {
    cursor: progress;
    opacity: .82;
}

.lw-btn-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lw-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;

    animation: spinV2 .7s linear infinite;
}

.lw-gate.is-checking .lw-btn-spinner { display: block; }
.lw-gate.is-checking .lw-btn-label i { display: none; }

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

.lw-btn-next.is-cached-focus {
    animation: cachedFocusV2 1.1s cubic-bezier(.45, 0, .55, 1) 2;
}

@keyframes cachedFocusV2 {
    0%, 100% { box-shadow: 0 10px 24px rgba(99, 102, 241, .28); }
    50%      { box-shadow: 0 0 0 6px rgba(99, 102, 241, .14), 0 12px 28px rgba(99, 102, 241, .34); }
}

.lw-gate.is-invalid .lw-inp input {
    border-color: #fda29b;
    box-shadow: 0 0 0 4px rgba(240, 68, 56, .09);
    animation: inputShakeV2 .34s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes inputShakeV2 {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25%      { transform: translate3d(-4px, 0, 0); }
    75%      { transform: translate3d(4px, 0, 0); }
}

/* alert dinamis */
#lwLiveAlert:empty { display: none; }
#lwLiveAlert .custom-alert { animation: alertInV2 .3s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes alertInV2 {
    from { opacity: 0; transform: translate3d(0, -6px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.custom-alert {
    border-radius: 12px;
    font-size: .74rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   STEP TRANSITION — slide horizontal, tanpa refresh
   -------------------------------------------------------------------------- */

.lw-steps { position: relative; }

.lw-step { will-change: transform, opacity; }

.lw-step[hidden] { display: none !important; }

.lw-step.is-leaving {
    animation: stepOutLeft .22s cubic-bezier(.4, 0, 1, 1) both;
    pointer-events: none;
}

.lw-step.is-entering {
    animation: stepInRight .46s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes stepOutLeft {
    from { opacity: 1; transform: translate3d(0, 0, 0); }
    to   { opacity: 0; transform: translate3d(-26px, 0, 0); }
}

@keyframes stepInRight {
    from { opacity: 0; transform: translate3d(30px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --------------------------------------------------------------------------
   USER CARD + CAMERA POLISH
   -------------------------------------------------------------------------- */

.user-card {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 13px;
    border-color: #e7ecf5;
    background: linear-gradient(135deg, #f8faff, #f5f7ff);
}

.user-photo,
.user-verified {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
}

.user-verified {
    margin-left: 0;
    color: #7f56d9;
    background: #f4f3ff;
    font-size: 1.15rem;
    border: 1px solid #ebe9fe;
    object-fit: cover;
}

.user-verified img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.user-verified i { font-size: 1.15rem; }

.user-data strong { font-size: .82rem; }
.user-data span { font-size: .66rem; }

.biometric-panel {
    margin-bottom: 12px;
    border-radius: 18px;

    contain: layout paint;
    transform: translateZ(0);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18), inset 0 0 0 1px rgba(255,255,255,.08);
}

.scan-beam {
    top: 50%;

    --scan-y: 138px;

    transform: translate3d(0, calc(-1 * var(--scan-y)), 0);
    will-change: transform;
    animation: scanBeamV2 2.55s cubic-bezier(.45, 0, .55, 1) infinite;
}

@keyframes scanBeamV2 {
    0%, 100% {
        opacity: .58;
        transform: translate3d(0, calc(-1 * var(--scan-y)), 0);
    }
    50% {
        opacity: 1;
        transform: translate3d(0, var(--scan-y), 0);
    }
}

.scan-progress {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 62px;

    height: 3px;
    overflow: hidden;

    border-radius: 99px;
    background: rgba(255, 255, 255, .08);

    opacity: 0;
    transition: opacity .2s ease;

    z-index: 9;
    pointer-events: none;
}

.biometric-panel.is-verifying .scan-progress { opacity: 1; }

.scan-progress span {
    display: block;
    width: 38%;
    height: 100%;

    border-radius: 99px;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);

    transform: translate3d(-110%, 0, 0);
    animation: progressGlide 1s cubic-bezier(.45, 0, .55, 1) infinite;
}

.btn-modern {
    min-height: 48px;
    border-radius: 13px;

    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 55%, #6d28d9 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .25);

    font-size: .82rem;

    transform: translateZ(0);
    transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}

.btn-modern:hover:not(:disabled) { transform: translate3d(0, -1px, 0); }
.btn-modern:active:not(:disabled) { transform: scale(.985); }

.lw-calib-hint { margin-bottom: 2px; }

.login-alternative {
    margin-top: 18px;
    font-size: .7rem;
}

.security-note {
    margin-top: 11px;
    font-size: .62rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — MOBILE FIRST
   Desktop: split kiri-kanan. <=991px: stack vertikal (Lottie atas, form bawah).
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) and (min-width: 992px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .94fr);
    }

    .auth-visual { padding: 34px 34px 30px; }
    .visual-features { grid-template-columns: 1fr; }
    .feature-item { padding: 9px 10px; }
    .lottie-canvas { height: 300px; }
}

/* Tablet & HP: panel Lottie tetap tampil di atas, form di bawah */
@media (prefers-reduced-motion: reduce) {
    .lottie-canvas { display: none; }

    .auth-shell,
    .login-card,
    .lottie-stage {
        animation: none !important;
    }

    .scan-beam,
    .scan-progress span,
    .lw-progress span,
    .lw-skeleton span {
        animation: none !important;
    }

    .scan-beam,
    .lottie-stage::before {
        transition: none !important;
    }
}

/* ── V2 cascade lock: form & header tetap mengikuti desain baru ── */
.lw-panel-head {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.lw-panel-head-text { flex: 1 1 auto; min-width: 0; }

.lw-head-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lw-gate {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.lw-gate label {
    margin-bottom: 0;
    color: #344054;
    font-size: .72rem;
}

.lw-gate .lw-inp input {
    padding: 13px 42px 13px 41px;
    color: var(--ink);
    background: #fbfcfe;
    border: 1.5px solid #e4e9f1;
    border-radius: 13px;
    font-size: .92rem;
    font-weight: 650;
    letter-spacing: .06em;
}

.lw-gate .lw-inp input:focus {
    border-color: #8b8bef;
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, .11),
        0 8px 20px rgba(99, 102, 241, .05);
}

.lw-gate .lw-inp i {
    left: 14px;
    color: #98a2b3;
    font-size: .96rem;
}

.lw-gate-hint {
    margin: 7px 1px 0;
    font-size: .63rem;
    color: #98a2b3;
}

.lw-btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 48px;
    margin-top: 13px;
    padding: 12px 18px;

    border: 0;
    border-radius: 13px;

    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 52%, #6d28d9 100%);
    box-shadow: 0 10px 24px rgba(99, 102, 241, .28);
    color: #fff;

    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
}

.lw-btn-next:active:not(:disabled) { transform: scale(.985); }

.lw-btn-next:focus-visible {
    outline: 3px solid rgba(99, 102, 241, .32);
    outline-offset: 3px;
}

.lw-btn-next:focus:not(:focus-visible) { outline: none; }

/* Saat masuk tahap pemindaian, ringkasan statistik diringkas
   agar kamera + tombol verifikasi langsung terlihat tanpa scroll. */
.lw-stat {
    max-height: 190px;
    overflow: hidden;
    transition:
        max-height .38s cubic-bezier(.16, 1, .3, 1),
        opacity .24s ease,
        margin .38s cubic-bezier(.16, 1, .3, 1);
}

.login-card.is-scan-step .lw-stat {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .lw-panel-head { gap: 12px; }
    .lw-head-actions { justify-content: stretch; }
}

@media (max-width: 575.98px) {
    .lw-panel-head { align-items: stretch; }
    .lw-head-actions { flex-direction: row; flex-wrap: nowrap; gap: 7px; }
    .lw-hbtn { flex: 1 1 0; width: auto; min-height: 40px; justify-content: center; padding: 0 8px; font-size: .68rem; }
}

/* ==========================================================================
   RINGKASAN LOGIN — kartu modern (bulan ini & total)
   ========================================================================== */

.lw-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin: 0 0 18px;

    transition: max-height .38s cubic-bezier(.16, 1, .3, 1),
                opacity .24s ease, margin .38s cubic-bezier(.16, 1, .3, 1);
}

.lw-sum-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;
    padding: 13px 14px;

    border: 1px solid #e9edf7;
    border-radius: 16px;

    background:
        radial-gradient(120% 160% at 100% 0%, rgba(99, 102, 241, .10), transparent 58%),
        linear-gradient(150deg, #ffffff 0%, #f8f9ff 100%);

    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);

    transform: translateZ(0);
    animation: sumIn .6s cubic-bezier(.16, 1, .3, 1) both;
}

.lw-sum-card:nth-child(2) {
    animation-delay: .09s;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(6, 182, 212, .12), transparent 58%),
        linear-gradient(150deg, #ffffff 0%, #f5fdff 100%);
}

@keyframes sumIn {
    from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.975); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* kilau lembut yang menyapu kartu */
.lw-sum-card::after {
    content: "";
    position: absolute;
    inset: -40% -10%;

    background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%);

    transform: translate3d(-130%, 0, 0);
    animation: sumShine 6s cubic-bezier(.45, 0, .55, 1) infinite;

    pointer-events: none;
    z-index: 0;
}

.lw-sum-card:nth-child(2)::after { animation-delay: 1.1s; }

@keyframes sumShine {
    0%, 55%  { transform: translate3d(-130%, 0, 0); }
    85%, 100% { transform: translate3d(130%, 0, 0); }
}

/* orb dekoratif */
.lw-sum-orb {
    position: absolute;
    right: -26px;
    bottom: -30px;

    width: 92px;
    height: 92px;
    border-radius: 50%;

    background: radial-gradient(circle, rgba(99, 102, 241, .18), transparent 68%);
    filter: blur(2px);

    pointer-events: none;
    z-index: 0;
}

.lw-sum-total .lw-sum-orb {
    background: radial-gradient(circle, rgba(6, 182, 212, .2), transparent 68%);
}

.lw-sum-icon {
    position: relative;
    z-index: 1;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 8px 18px rgba(99, 102, 241, .32);

    font-size: 1.05rem;

    animation: sumIconFloat 4s cubic-bezier(.45, 0, .55, 1) infinite;
}

.lw-sum-total .lw-sum-icon {
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    box-shadow: 0 8px 18px rgba(6, 182, 212, .3);
    animation-delay: 1s;
}

@keyframes sumIconFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -3px, 0); }
}

.lw-sum-info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.lw-sum-label {
    display: block;

    color: #667085;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.lw-sum-value {
    display: flex;
    align-items: baseline;
    gap: 2px;

    margin: 1px 0 0;

    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.3rem, 3.4vw, 1.72rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.035em;

    background: linear-gradient(92deg, #4f46e5, #8b5cf6 60%, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lw-sum-total .lw-sum-value {
    background: linear-gradient(92deg, #0e7490, #06b6d4 55%, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
}

.lw-sum-value small {
    font-size: .62em;
    font-weight: 800;
    opacity: .8;
}

.lw-sum-sub {
    display: block;

    margin-top: 1px;

    color: #98a2b3;
    font-size: .6rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* sembunyikan ringkasan saat masuk tahap pemindaian */
.login-card.is-scan-step .lw-summary {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 420px) {
    .lw-summary { gap: 8px; }

    .lw-sum-card {
        padding: 10px 11px;
        gap: 9px;
        border-radius: 14px;
    }

    .lw-sum-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 11px;
        font-size: .92rem;
    }

    .lw-sum-label { font-size: .52rem; letter-spacing: .07em; }
    .lw-sum-value { font-size: clamp(1.15rem, 6vw, 1.45rem); }
    .lw-sum-sub { font-size: .54rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lw-sum-card,
    .lw-sum-icon,
    .lw-sum-card::after {
        animation: none !important;
    }
}
