/* Login Wajah — base (layout, komponen, animasi) */
/* ============================================================
   LOGIN WAJAH — MODERN BIOMETRIC UI
   ============================================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --violet: #8b5cf6;
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;

    --dark: #0f172a;
    --dark-2: #111827;
    --text: #172033;
    --muted: #64748b;

    --surface: rgba(255,255,255,.94);
    --line: #e5e7eb;

    --shadow:
        0 30px 80px rgba(15,23,42,.14),
        0 8px 30px rgba(99,102,241,.08);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    min-height: 100dvh;

    font-family: 'Inter', sans-serif;
    color: var(--text);

    background:
        radial-gradient(circle at 10% 15%, rgba(99,102,241,.18), transparent 27%),
        radial-gradient(circle at 90% 12%, rgba(6,182,212,.14), transparent 27%),
        radial-gradient(circle at 88% 88%, rgba(139,92,246,.13), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5ff 50%, #f8fafc 100%);

    overflow-x: hidden;
}

/* Grid teknologi di background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(99,102,241,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.035) 1px, transparent 1px);

    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
}

/* decorative blur */
.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: .18;
    pointer-events: none;
}

.bg-orb.one {
    width: 320px;
    height: 320px;
    background: var(--primary);
    left: -120px;
    top: -100px;
}

.bg-orb.two {
    width: 360px;
    height: 360px;
    background: var(--cyan);
    right: -140px;
    bottom: -140px;
}


/* ============================================================
   PAGE
   ============================================================ */

.auth-page {
    position: relative;
    z-index: 2;

    min-height: 100vh;
    min-height: 100dvh;

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

    padding: 32px;
}

.auth-shell {
    width: 100%;
    max-width: 1180px;

    display: grid;
    grid-template-columns: minmax(310px, .85fr) minmax(500px, 1.15fr);

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.8);
    border-radius: 32px;

    background: rgba(255,255,255,.76);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow: var(--shadow);

    animation: shellEnter .6s cubic-bezier(.2,.8,.2,1);
}

@keyframes shellEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ============================================================
   LEFT PANEL
   ============================================================ */

.auth-visual {
    position: relative;
    overflow: hidden;

    min-height: 680px;
    padding: 42px;

    display: flex;
    flex-direction: column;

    color: white;

    background:
        radial-gradient(circle at 20% 20%, rgba(34,211,238,.23), transparent 34%),
        radial-gradient(circle at 80% 75%, rgba(139,92,246,.36), transparent 38%),
        linear-gradient(150deg, #111827 0%, #172554 52%, #312e81 100%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);

    background-size: 34px 34px;
}

.auth-visual::after {
    content: "";
    position: absolute;

    width: 360px;
    height: 360px;

    right: -180px;
    top: 150px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(255,255,255,.025),
        0 0 0 90px rgba(255,255,255,.02);
}

.visual-content {
    position: relative;
    z-index: 2;
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* logo */

.brand-logo {
    width: 155px;
    min-height: 66px;

    padding: 9px 12px;

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

    border-radius: 18px;

    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

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


/* badge */

.secure-badge {
    margin-top: 54px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: max-content;

    padding: 8px 12px;

    border: 1px solid rgba(103,232,249,.2);
    border-radius: 999px;

    color: #a5f3fc;
    background: rgba(6,182,212,.10);

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.secure-badge .live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #34d399;

    box-shadow: 0 0 0 5px rgba(52,211,153,.12);
}


/* text */

.visual-title {
    margin-top: 22px;
    margin-bottom: 14px;

    max-width: 400px;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.visual-title span {
    background: linear-gradient(90deg, #67e8f9, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

    color: rgba(255,255,255,.68);

    font-size: .94rem;
    line-height: 1.8;
}


/* feature list */

.feature-list {
    margin-top: 34px;

    display: grid;
    gap: 13px;
}

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

    color: rgba(255,255,255,.83);

    font-size: .82rem;
    font-weight: 600;
}

.feature-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    color: #67e8f9;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}


/* bottom info */

.visual-bottom {
    margin-top: auto;
    padding-top: 30px;

    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 11px;

    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;

    color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.055);

    font-size: .68rem;
    font-weight: 700;
}


/* ============================================================
   RIGHT PANEL
   ============================================================ */

.auth-content {
    position: relative;

    min-width: 0;
    padding: 42px 48px;

    background: rgba(255,255,255,.92);
}

.content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;
    margin-bottom: 30px;
}

.mobile-brand {
    display: none;
}


/* device badge */

.device-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border-radius: 999px;

    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;

    font-size: .72rem;
    font-weight: 700;
}

.device-badge i {
    color: var(--primary);
}


/* online users */

.online-count {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #64748b;

    font-size: .72rem;
    font-weight: 700;
}

.online-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--emerald);

    box-shadow: 0 0 0 5px rgba(16,185,129,.10);
}


/* headings */

.auth-heading {
    margin-bottom: 7px;

    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    font-weight: 800;
    letter-spacing: -.035em;

    color: var(--dark);
}

.auth-subtitle {
    margin: 0 0 25px;

    color: var(--muted);

    font-size: .86rem;
    line-height: 1.65;
}


/* ============================================================
   STEPPER
   ============================================================ */

.stepper {
    display: flex;
    align-items: center;

    margin-bottom: 27px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #94a3b8;

    font-size: .72rem;
    font-weight: 700;
}

.step-number {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    flex: 0 0 30px;

    border-radius: 10px;

    color: #94a3b8;
    background: #f1f5f9;

    transition: .25s ease;
}

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

.step.active .step-number {
    color: white;

    background: linear-gradient(135deg, var(--primary), var(--violet));

    box-shadow: 0 7px 18px rgba(99,102,241,.25);
}

.step-line {
    height: 2px;
    flex: 1;

    margin: 0 12px;

    background: #e2e8f0;
}

.step-line.active {
    background: linear-gradient(90deg, var(--primary), var(--cyan));
}


/* ============================================================
   ALERT
   ============================================================ */

.lw-stat{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0 4px}
.lw-stat .ls{background:linear-gradient(135deg,#f0f4ff,#fff);border:1px solid #e3e9f5;border-radius:14px;padding:11px 12px;display:flex;align-items:center;gap:10px}
.lw-stat .ls i{font-size:1.2rem;color:#6366f1;background:#eef2ff;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;flex:0 0 auto}
.lw-stat .ls b{font:700 .98rem/1.1 Inter,sans-serif;color:#0f172a;display:block}
.lw-stat .ls span{font:600 .68rem/1.3 Inter,sans-serif;color:#64748b}
@media(max-width:480px){.lw-stat{gap:8px}.lw-stat .ls{padding:9px 10px}.lw-stat .ls i{width:32px;height:32px;font-size:1rem}}
.custom-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 18px;
    padding: 13px 15px;

    border-radius: 14px;

    font-size: .8rem;
    font-weight: 600;
    line-height: 1.55;
}

.alert-error {
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
}

.alert-info-custom {
    color: #075985;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
}


/* ============================================================
   FORM
   ============================================================ */

.form-label-custom {
    margin-bottom: 8px;

    color: #334155;

    font-size: .76rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 1.05rem;

    pointer-events: none;
}

.form-control-custom {
    width: 100%;

    padding: 15px 16px 15px 46px;

    border: 1.5px solid #e2e8f0;
    border-radius: 14px;

    outline: none;

    color: var(--dark);
    background: #fff;

    font-size: .94rem;
    font-weight: 600;

    transition: .2s ease;
}

.form-control-custom::placeholder {
    color: #b1bac8;
    font-weight: 500;
}

.form-control-custom:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(99,102,241,.10),
        0 8px 24px rgba(99,102,241,.06);
}


/* hint */

.form-hint {
    margin: 10px 2px 18px;

    display: flex;
    gap: 8px;

    color: #7c8da3;

    font-size: .72rem;
    line-height: 1.55;
}

.form-hint i {
    color: var(--cyan);
}


/* buttons */

.btn-modern {
    width: 100%;

    min-height: 50px;
    padding: 13px 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    border: 0;
    border-radius: 14px;

    color: white;

    background:
        linear-gradient(135deg, var(--primary) 0%, var(--violet) 55%, #7c3aed 100%);

    box-shadow: 0 10px 25px rgba(99,102,241,.25);

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

    transition: .22s ease;
}

.btn-modern:hover:not(:disabled) {
    color: white;

    transform: translateY(-2px);

    box-shadow: 0 15px 32px rgba(99,102,241,.32);
}

.btn-modern:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.btn-secondary-modern {
    margin-top: 10px;

    color: #475569;

    background: #f1f5f9;

    box-shadow: none;
}

.btn-secondary-modern:hover:not(:disabled) {
    color: var(--dark);

    background: #e8edf3;

    box-shadow: none;
    transform: none;
}


/* ============================================================
   USER IDENTITY
   ============================================================ */

.user-card {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 16px;
    padding: 12px 14px;

    border: 1px solid #e0e7ff;
    border-radius: 15px;

    background:
        linear-gradient(135deg, rgba(238,242,255,.95), rgba(245,243,255,.75));
}

.user-photo {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 13px;

    object-fit: cover;

    border: 2px solid white;

    box-shadow: 0 5px 14px rgba(15,23,42,.12);
}

.user-data {
    min-width: 0;
}

.user-data strong {
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--dark);

    font-size: .86rem;
    font-weight: 800;
}

.user-data span {
    display: block;

    margin-top: 3px;

    color: #64748b;

    font-size: .7rem;
    font-weight: 600;
}

.user-verified {
    margin-left: auto;

    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--emerald);
    background: #ecfdf5;
}


/* ============================================================
   BIOMETRIC CAMERA
   ============================================================ */

.biometric-panel {
    position: relative;

    overflow: hidden;

    width: 100%;
    aspect-ratio: 16 / 10;

    margin-bottom: 14px;

    border-radius: 21px;

    background: #020617;

    box-shadow:
        0 16px 36px rgba(15,23,42,.20),
        inset 0 0 0 1px rgba(255,255,255,.08);
}


/* video */

.biometric-panel video,
.biometric-panel canvas {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scaleX(-1);
}

.biometric-panel canvas {
    display: none;
}


/* dark overlay */

.scan-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(circle at center, transparent 20%, rgba(2,6,23,.04) 56%, rgba(2,6,23,.30) 100%);
}


/* grid overlay */

.scan-grid {
    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: .16;

    background-image:
        linear-gradient(rgba(34,211,238,.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34,211,238,.35) 1px, transparent 1px);

    background-size: 30px 30px;
}


/* top HUD */

.scan-hud {
    position: absolute;

    top: 13px;
    left: 13px;
    right: 13px;

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

    z-index: 8;

    pointer-events: none;
}

.hud-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    color: white;
    background: rgba(2,6,23,.55);

    backdrop-filter: blur(10px);

    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.hud-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow: 0 0 0 4px rgba(34,197,94,.14);

    animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
    0%,100% { opacity: 1; }
    50% { opacity: .35; }
}

.hud-security {
    padding: 7px 10px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    color: #a5f3fc;
    background: rgba(2,6,23,.55);

    backdrop-filter: blur(10px);

    font-size: .61rem;
    font-weight: 800;
}


/* Face target */

.face-target {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 46%;
    max-width: 220px;
    aspect-ratio: 3 / 4;

    transform: translate(-50%, -50%);

    border-radius: 48%;

    pointer-events: none;

    transition: .25s ease;
}


/* target guide */

.face-guide {
    position: absolute;
    inset: 10%;

    border: 1px solid rgba(103,232,249,.28);
    border-radius: 48%;
}


/* corner brackets */

.corner {
    position: absolute;

    width: 35px;
    height: 35px;

    border-color: #67e8f9;

    filter: drop-shadow(0 0 7px rgba(34,211,238,.6));

    transition: .25s ease;
}

.corner.tl {
    top: 0;
    left: 0;

    border-top: 3px solid;
    border-left: 3px solid;

    border-radius: 12px 0 0 0;
}

.corner.tr {
    top: 0;
    right: 0;

    border-top: 3px solid;
    border-right: 3px solid;

    border-radius: 0 12px 0 0;
}

.corner.bl {
    bottom: 0;
    left: 0;

    border-bottom: 3px solid;
    border-left: 3px solid;

    border-radius: 0 0 0 12px;
}

.corner.br {
    right: 0;
    bottom: 0;

    border-right: 3px solid;
    border-bottom: 3px solid;

    border-radius: 0 0 12px 0;
}


/* Original JS still changes lwFrame class */

#lwFrame.ok .corner {
    border-color: #34d399;

    filter: drop-shadow(0 0 8px rgba(52,211,153,.75));
}

#lwFrame.ok .face-guide {
    border-color: rgba(52,211,153,.5);
}

#lwFrame.bad .corner {
    border-color: #fbbf24;
}


/* Face tracking dots */

.tracking-dot {
    position: absolute;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #67e8f9;

    box-shadow: 0 0 7px #22d3ee;

    opacity: .65;

    animation: trackBlink 1.6s infinite alternate;
}

.tracking-dot.d1 { top:27%; left:35%; }
.tracking-dot.d2 { top:28%; right:35%; animation-delay:.2s; }
.tracking-dot.d3 { top:43%; left:49%; animation-delay:.4s; }
.tracking-dot.d4 { top:58%; left:39%; animation-delay:.6s; }
.tracking-dot.d5 { top:58%; right:39%; animation-delay:.8s; }

@keyframes trackBlink {
    from {
        opacity: .2;
        transform: scale(.7);
    }
    to {
        opacity: .9;
        transform: scale(1.4);
    }
}


/* scanning beam */

.scan-beam {
    position: absolute;

    left: 5%;
    right: 5%;

    height: 2px;

    z-index: 6;

    pointer-events: none;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(34,211,238,.4),
            #67e8f9,
            rgba(34,211,238,.4),
            transparent);

    box-shadow:
        0 0 8px #22d3ee,
        0 0 20px rgba(34,211,238,.45);

    animation: scanBeam 2.3s ease-in-out infinite;
}

.scan-beam::after {
    content: "";

    position: absolute;

    left: 10%;
    right: 10%;
    top: -18px;

    height: 36px;

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(34,211,238,.055),
            transparent);
}

@keyframes scanBeam {
    0%,100% { top: 16%; opacity: .65; }
    50% { top: 82%; opacity: 1; }
}


/* bottom status */

.scan-status {
    position: absolute;

    left: 13px;
    right: 13px;
    bottom: 13px;

    z-index: 10;

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

    min-height: 43px;
    padding: 9px 12px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 13px;

    color: white;
    background: rgba(2,6,23,.70);

    backdrop-filter: blur(14px);

    font-size: .7rem;
    font-weight: 700;
}

.status-indicator {
    position: relative;

    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background: var(--amber);
}

.status-indicator::after {
    content: "";

    position: absolute;
    inset: -4px;

    border: 1px solid currentColor;
    border-radius: 50%;

    opacity: .3;

    animation: statusPulse 1.4s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(.7);
        opacity: .6;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

.scan-status.ok .status-indicator {
    color: #34d399;
    background: #34d399;
}

.scan-status.err .status-indicator {
    color: #fb7185;
    background: #fb7185;
}


/* AI style progress bars without AI icon */

.analysis-bars {
    position: absolute;

    right: 15px;
    top: 56px;

    z-index: 5;

    width: 62px;

    display: grid;
    gap: 4px;

    opacity: .55;

    pointer-events: none;
}

.analysis-bars span {
    display: block;

    height: 2px;

    border-radius: 99px;

    background: #67e8f9;

    animation: dataBar 1.8s ease-in-out infinite;
}

.analysis-bars span:nth-child(2) {
    width: 75%;
    animation-delay: .2s;
}

.analysis-bars span:nth-child(3) {
    width: 45%;
    animation-delay: .4s;
}

.analysis-bars span:nth-child(4) {
    width: 85%;
    animation-delay: .6s;
}

@keyframes dataBar {
    0%,100% {
        opacity: .25;
        transform: scaleX(.65);
        transform-origin: right;
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-alternative {
    margin-top: 21px;

    text-align: center;

    color: #64748b;

    font-size: .73rem;
}

.login-alternative a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.login-alternative a:hover {
    text-decoration: underline;
}

.security-note {
    margin-top: 14px;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 7px;

    text-align: center;

    color: #94a3b8;

    font-size: .66rem;
    line-height: 1.5;
}

.security-note i {
    margin-top: 1px;
    color: var(--emerald);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .auth-page {
        padding: 22px;
    }

    .auth-shell {
        max-width: 720px;
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: auto;

        padding: 28px 32px;

        border-radius: 0;

        background:
            radial-gradient(circle at 90% 30%, rgba(34,211,238,.18), transparent 30%),
            linear-gradient(135deg, #111827, #312e81);
    }

    .visual-content {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 20px;
    }

    .brand-logo {
        width: 135px;
        min-height: 56px;
    }

    .secure-badge,
    .visual-title,
    .visual-desc,
    .feature-list {
        display: none;
    }

    .visual-bottom {
        margin: 0;
        padding: 0;

        justify-content: flex-end;
    }

    .info-pill:nth-child(2) {
        display: none;
    }

    .auth-content {
        padding: 35px 38px 38px;
    }

    .biometric-panel {
        aspect-ratio: 4 / 3;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 575.98px) {

    body {
        background: #f8fafc;
    }

    body::before,
    .bg-orb {
        display: none;
    }

    .auth-page {
        display: block;

        min-height: 100dvh;

        padding: 0;
    }

    .auth-shell {
        min-height: 100dvh;

        display: block;

        border: 0;
        border-radius: 0;

        background: white;

        box-shadow: none;
    }

    .auth-visual {
        display: none;
    }

    .auth-content {
        min-height: 100dvh;

        padding:
            max(22px, env(safe-area-inset-top))
            18px
            max(24px, env(safe-area-inset-bottom));
    }

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

    .mobile-brand {
        display: flex;
        align-items: center;

        max-width: 128px;
        height: 45px;
    }

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

    .online-count {
        display: none;
    }

    .device-badge {
        margin-left: auto;

        padding: 7px 10px;

        font-size: .65rem;
    }

    .auth-heading {
        font-size: 1.55rem;
    }

    .auth-subtitle {
        font-size: .8rem;
        margin-bottom: 22px;
    }

    .stepper {
        margin-bottom: 22px;
    }

    .step-label {
        display: none;
    }

    .step-line {
        margin: 0 8px;
    }

    .biometric-panel {
        aspect-ratio: 3 / 4;

        max-height: 62vh;

        border-radius: 20px;
    }

    .face-target {
        width: 62%;
    }

    .analysis-bars {
        display: none;
    }

    .scan-hud {
        top: 11px;
        left: 11px;
        right: 11px;
    }

    .hud-security {
        display: none;
    }

    .scan-status {
        left: 11px;
        right: 11px;
        bottom: 11px;
    }

    .user-card {
        margin-bottom: 12px;
    }

    .security-note {
        padding-bottom: 6px;
    }
}



/* ── lw-panel-head responsive ── */
@media (max-width: 991.98px) {
    .lw-panel-head { gap: 12px; }
}
@media (max-width: 767.98px) {
    .lw-panel-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .lw-head-actions { width: 100%; }
    .lw-hbtn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
}
@media (max-width: 379.98px) {
    .lw-head-actions { flex-direction: row; }
    .lw-hbtn { width: auto; }
}

/* very small phone */

@media (max-width: 360px) {

    .lw-panel-head{flex-direction:column;gap:6px;}
    .lw-head-actions{width:100%;flex-direction:row;}
    .lw-hbtn{width:auto;justify-content:center;padding:0 7px;font-size:.64rem;}

    .auth-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mobile-brand {
        max-width: 110px;
    }

    .device-badge span {
        display: none;
    }
}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
