/* Login Wajah — responsif mobile/tablet (dimuat setelah CSS utama) */
@media (max-width: 991.98px) {
    .auth-page { padding: 16px; }

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

    .auth-visual {
        display: block;
        min-height: auto;
        padding: 16px 18px 12px;
        background: #fff;
        border-bottom: 1px solid #edf1f7;
    }

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

    .visual-content { display: block; }

    .visual-head { justify-content: space-between; }

    .brand-logo {
        width: 132px;
        min-height: 54px;
        padding: 8px 11px;
    }

    .secure-badge {
        display: inline-flex;
        margin-top: 0;
        padding: 6px 10px;
        font-size: .6rem;
    }

    .visual-hero { display: none; }

    .lottie-stage {
        flex: 0 0 auto;
        min-height: auto;
        margin: 6px 0 8px;
    }

    .lottie-canvas {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .lottie-stage::before {
        width: 220px;
        height: 220px;
    }

    .visual-features { display: none; }
    .visual-bottom { display: none; }

    .mobile-brand { display: none; }

    .auth-content {
        padding: 16px;
        background: transparent;
    }

    .login-card {
        max-width: 100%;
        border-radius: 24px;
    }

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

    .lw-panel-head { margin-bottom: 14px; }

    .lw-stat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0 0 12px;
    }

    .lw-stat .ls { padding: 7px 8px; }

    .lw-stat .ls i {
        width: 26px;
        height: 26px;
        font-size: .85rem;
    }

    .lw-stat .ls b { font-size: .78rem; }
    .lw-stat .ls span { font-size: .56rem; }

    .stepper { margin-bottom: 16px; }
    .step { font-size: .64rem; }
    .step-number {
        width: 26px;
        height: 26px;
        font-size: .66rem;
    }

    .scan-beam { --scan-y: 112px; }
    .scan-progress { bottom: 60px; }

    .login-alternative { margin-top: 14px; font-size: .68rem; }
    .security-note { font-size: .6rem; }
}

@media (max-width: 575.98px) {
    body { background: #f5f7fc; overflow-x: hidden; }
    body::before { display: none; }
    .auth-page { display: block; padding: 0; }
    .auth-shell { display: block; border: 0; border-radius: 0; background: #fff; box-shadow: none; animation: none; }
    .auth-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 14px 8px; background: #fff; border-bottom: 1px solid #edf1f7; overflow: hidden; }
    .visual-content { width: 100%; }
    .visual-head { position: relative; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
    .brand-logo { width: 120px; min-height: 50px; padding: 7px 10px; }
    .secure-badge { position: static; transform: none; margin: 0; padding: 5px 9px; font-size: .58rem; white-space: nowrap; flex: 0 0 auto; }
    .visual-hero { display: none; }
    .lottie-stage { flex: 0 0 auto; min-height: auto; margin: 6px 0 6px; }
    .lottie-canvas { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1 / 1; }
    .lottie-stage::before { width: 200px; height: 200px; left: 50%; transform: translateX(-50%); }
    .lottie-fallback { gap: 8px; font-size: .64rem; }
    .lottie-fallback i { font-size: 3rem; }
    .visual-features { display: none; }
    .visual-bottom { display: none; }
    .auth-content { min-height: auto; padding: max(16px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); background: #fff; }
    .login-card { padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; animation: none; }
    .content-top { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 10px; }
    .mobile-brand { display: none; }
    .mobile-brand img { max-width: 100%; max-height: 39px; object-fit: contain; }
    .online-count { display: none; }
    .device-badge { margin-left: auto; padding: 6px 9px; font-size: .58rem; }
    .auth-heading { margin-bottom: 5px; font-size: clamp(1.25rem, 3.5vw, 1.55rem); letter-spacing: -.03em; }
    .auth-subtitle { margin: 0 0 12px; font-size: clamp(.76rem, 2.2vw, .84rem); line-height: 1.55; }
    .lw-panel-head { margin-bottom: 12px; gap: 10px; }
    .lw-head-actions { justify-content: stretch; gap: 7px; }
    .lw-hbtn { flex: 1 1 0; width: auto; min-height: 40px; padding: 0 8px; font-size: .68rem; }
    .lw-stat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
    .lw-stat .ls { padding: 7px 8px; gap: 7px; }
    .lw-stat .ls i { width: 26px; height: 26px; font-size: .8rem; border-radius: 8px; }
    .lw-stat .ls b { font-size: .76rem; }
    .lw-stat .ls span { font-size: .55rem; line-height: 1.22; }
    .stepper { margin-bottom: 14px; }
    .step { gap: 6px; font-size: .62rem; }
    .step-number { width: 24px; height: 24px; font-size: .64rem; }
    .lw-gate { margin: 0; padding: 0; }
    .lw-field-head { align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
    .lw-gate label { font-size: clamp(.7rem, 2.4vw, .76rem); color: #344054; }
    .lw-cache-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; font-size: .56rem; white-space: nowrap; }
    .lw-cache-badge i { font-size: .66rem; }
    .lw-cache-clear { width: 14px; height: 14px; font-size: .7rem; }
    .lw-inp { position: relative; }
    .lw-inp i { left: 12px; font-size: .88rem; }
    .lw-gate .lw-inp input { width: 100%; padding: 12px 40px 12px 38px; font-size: .88rem; letter-spacing: .05em; }
    .lw-inp-state { right: 11px; font-size: .9rem; }
    .lw-gate-hint { margin: 6px 1px 0; font-size: clamp(.6rem, 2vw, .64rem); line-height: 1.45; }
    .lw-skeleton { gap: 5px; margin-top: 9px; }
    .lw-skeleton span { height: 4px; }
    .lw-btn-next { min-height: 44px; margin-top: 11px; padding: 11px 16px; font-size: .82rem; }
    .lw-btn-spinner { width: 15px; height: 15px; }
    .user-card { margin-bottom: 11px; padding: 9px 10px; }
    .user-photo, .user-verified { width: 38px; height: 38px; }
    .user-verified i { font-size: 1.05rem; }
    .user-data strong { font-size: .76rem; }
    .user-data span { font-size: .62rem; }
    .biometric-panel { margin-bottom: 11px; border-radius: 17px; }
    .scan-beam { --scan-y: 100px; }
    .scan-hud { top: 11px; left: 11px; right: 11px; }
    .hud-live { padding: 6px 9px; font-size: .58rem; }
    .hud-security { display: none; }
    .scan-status { left: 11px; right: 11px; bottom: 11px; min-height: 40px; padding: 8px 10px; font-size: .66rem; }
    .scan-progress { bottom: 58px; }
    .lw-calib-hint { margin-bottom: 2px; }
    .lw-calib-hint a { font-size: .72rem; padding: 6px 10px; gap: 5px; }
    .btn-modern { min-height: 44px; padding: 11px 16px; font-size: .78rem; }
    .login-alternative { margin-top: 14px; font-size: .68rem; text-align: center; }
    .login-alternative a { font-size: .68rem; }
    .security-note { margin-top: 10px; font-size: .6rem; line-height: 1.4; }
    .security-note i { font-size: .75rem; }
    .custom-alert { font-size: .72rem; padding: 10px 11px; }
}

@media (max-width: 379.98px) {
    .lw-field-head { align-items: flex-start; }
    .secure-badge { position: absolute; right: 10px; font-size: .54rem; padding: 4px 8px; }
    .brand-logo { width: 108px; min-height: 46px; }
    .lottie-canvas { max-width: 180px; }
    .lottie-stage::before { width: 180px; height: 180px; }
    .auth-content { padding-left: 12px; padding-right: 12px; }
    .auth-heading { font-size: 1.22rem; }
    .lw-hbtn { padding: 0 11px; font-size: .64rem; }
    .lw-stat .ls { padding: 6px 7px; }
    .lw-gate .lw-inp input { padding: 11px 36px 11px 34px; }
}

