/* ==============================================================================
 * UPT RUTAN KELAS I CIPINANG - MODERN LOGIN PORTAL STYLESHEET
 * Premium Cyber-Security & Glassmorphism Aesthetics
 * Version: 20261015-v1
 * ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --login-bg-deep: #050b14;
    --login-bg-slate: #0b1526;
    --login-navy: #0f213d;
    --login-card-bg: rgba(13, 25, 48, 0.78);
    --login-card-border: rgba(255, 255, 255, 0.12);
    --login-card-border-hover: rgba(56, 189, 248, 0.4);
    
    --login-gold: #f59e0b;
    --login-gold-light: #fbbf24;
    --login-gold-glow: rgba(245, 158, 11, 0.35);
    
    --login-cyan: #38bdf8;
    --login-cyan-glow: rgba(56, 189, 248, 0.35);
    
    --login-blue: #2563eb;
    --login-emerald: #10b981;
    --login-rose: #f43f5e;
    
    --login-text-primary: #f8fafc;
    --login-text-secondary: #94a3b8;
    --login-text-muted: #64748b;
}

/* Base Reset & Setup */
body.login-page-modern {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--login-bg-deep);
    color: var(--login-text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Animated Gradient Mesh & Cyber Pattern */
.login-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    opacity: 0.7;
}

/* Glowing Ambient Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    pointer-events: none;
    will-change: transform;
}

.glow-orb-1 {
    top: -10%;
    left: 15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.7) 0%, rgba(14, 165, 233, 0.2) 60%, transparent 80%);
    animation: orbFloat1 18s ease-in-out infinite alternate;
}

.glow-orb-2 {
    bottom: -15%;
    right: 10%;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.6) 0%, rgba(245, 158, 11, 0.15) 60%, transparent 80%);
    animation: orbFloat2 22s ease-in-out infinite alternate;
}

.glow-orb-3 {
    top: 45%;
    left: 45%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
    animation: orbFloat3 15s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 80px) scale(1.12); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -60px) scale(1.1); }
}

@keyframes orbFloat3 {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-30%, -40%) scale(1.15); }
}

/* Main Container */
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px;
    box-sizing: border-box;
}

.login-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* LEFT COLUMN: HERO COMMAND PANEL */
.login-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 12px;
}

.login-govt-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.login-govt-badge {
    background: linear-gradient(135deg, var(--login-gold), #d97706);
    color: #0b1526;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-govt-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--login-text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-hero-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-hero-logo {
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.45));
    transition: transform 0.3s ease;
}

.login-hero-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.login-hero-titles h2 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--login-gold-light);
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.login-hero-titles h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-hero-desc {
    color: var(--login-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

/* Live Operational Status Widget */
.login-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: rgba(15, 33, 61, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 16px;
    padding: 12px 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--login-cyan);
}

.status-dot {
    width: 9px;
    height: 9px;
    background-color: var(--login-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--login-emerald);
    animation: statusPulse 2s infinite ease-in-out;
}

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

.status-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
}

.live-time-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-shift-tag {
    background: rgba(245, 158, 11, 0.18);
    color: var(--login-gold-light);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Feature Cards Grid */
.login-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15, 33, 61, 0.8), rgba(21, 47, 85, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-gold-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin: 0 0 2px 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.feature-content p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--login-text-secondary);
}

/* RIGHT COLUMN: LOGIN CARD */
.login-card-container {
    position: relative;
    width: 100%;
}

.login-card-modern {
    background: var(--login-card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--login-card-border);
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(15, 33, 61, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-card-modern:hover {
    border-color: var(--login-card-border-hover);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.7),
        0 0 45px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Top Accent Bar */
.login-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #fbbf24 35%, #38bdf8 70%, #2563eb 100%);
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(56, 189, 248, 0.15));
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--login-gold-light);
    font-size: 1.6rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.login-card-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.login-card-header p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--login-text-secondary);
}

/* Alert Styling */
.login-alert {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.login-alert-danger {
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fecdd3;
}

.login-alert-danger i {
    color: #fb7185;
    font-size: 1.1rem;
    margin-top: 2px;
}

.login-alert-warning {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fef3c7;
}

.login-alert-warning i {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Form Groups & Inputs */
.modern-form-group {
    margin-bottom: 20px;
    position: relative;
}

.modern-form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--login-text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.caps-warning-pill {
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.2);
    color: var(--login-gold-light);
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: normal;
}

.caps-warning-pill.active {
    display: inline-flex;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-input-icon {
    position: absolute;
    left: 16px;
    color: var(--login-text-muted);
    font-size: 1rem;
    transition: color 0.2s ease;
    pointer-events: none;
}

.modern-input {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0 16px 0 46px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #ffffff;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.modern-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.modern-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--login-cyan);
    box-shadow: 0 0 0 4px var(--login-cyan-glow);
}

.modern-input:focus + .modern-input-icon,
.modern-input-wrapper:focus-within .modern-input-icon {
    color: var(--login-cyan);
}

/* Password Toggle Button */
.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--login-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-password:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Quick Fill Petugas Roles Bar */
.quick-fill-container {
    margin-bottom: 22px;
}

.quick-fill-label {
    font-size: 0.7rem;
    color: var(--login-text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-fill-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--login-text-secondary);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quick-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.quick-pill i {
    font-size: 0.7rem;
    color: var(--login-gold);
}

/* Submit Button */
.btn-login-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-login-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.btn-login-submit:hover::before {
    left: 100%;
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.3);
}

.btn-login-submit.loading {
    pointer-events: none;
    opacity: 0.85;
}

/* Card Footer */
.login-card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--login-text-muted);
}

.login-security-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--login-text-secondary);
}

.login-security-tag i {
    color: var(--login-emerald);
}

/* System Global Footer */
.login-global-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 24px;
    font-size: 0.72rem;
    color: var(--login-text-muted);
}

.login-global-footer a {
    color: var(--login-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-global-footer a:hover {
    color: var(--login-cyan);
}

/* ==============================================================================
 * RESPONSIVE BREAKPOINTS (Mobile & Tablet Optimization)
 * ============================================================================== */

@media (max-width: 991px) {
    .login-wrapper {
        padding: 24px 16px;
    }

    .login-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .login-hero {
        text-align: center;
        align-items: center;
        padding-right: 0;
    }

    .login-hero-brand {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .login-hero-logo {
        width: 64px;
        height: 64px;
    }

    .login-hero-titles h1 {
        font-size: 1.8rem;
    }

    .login-hero-desc {
        font-size: 0.88rem;
        max-width: 480px;
    }

    .login-status-bar {
        justify-content: center;
        width: 100%;
        max-width: 480px;
    }

    .login-features-list {
        display: none; /* Hide detailed cards on mobile for quick login experience */
    }

    .login-card-container {
        max-width: 480px;
        margin: 0 auto;
    }

    .login-card-modern {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 16px 12px;
    }

    .login-card-modern {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .login-card-header h3 {
        font-size: 1.3rem;
    }

    .modern-input {
        height: 46px;
        font-size: 0.88rem;
    }

    .btn-login-submit {
        height: 48px;
        font-size: 0.9rem;
    }

    .login-status-bar {
        font-size: 0.72rem;
        padding: 10px 14px;
        gap: 10px;
    }

    .live-time-display {
        font-size: 0.75rem;
    }
}

/* ==============================================================================
 * BARCODE & QR SCANNER MODERN STYLES (FITUR SCAN KTA & KAMAR)
 * ============================================================================== */

/* Segmented Control Mode Tabs */
.login-mode-tabs {
    display: flex;
    background: rgba(11, 21, 38, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
    position: relative;
    backdrop-filter: blur(12px);
}

.login-mode-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--login-text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.login-mode-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.login-mode-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.45) 0%, rgba(14, 165, 233, 0.3) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-mode-btn .badge-pulse {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    letter-spacing: 0.5px;
    animation: badgePulse 2s infinite;
}

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

/* Room Target Detected Banner */
.login-room-target-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.1) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
    position: relative;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
    animation: fadeInSlideDown 0.35s ease-out;
}

.login-room-target-banner .banner-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.login-room-target-banner .banner-content {
    flex: 1;
    min-width: 0;
}

.login-room-target-banner .banner-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fbbf24;
    display: block;
    margin-bottom: 2px;
}

.login-room-target-banner .banner-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.login-room-target-banner .banner-desc {
    font-size: 0.76rem;
    color: #e2e8f0;
    margin: 2px 0 0 0;
    line-height: 1.35;
}

.login-room-target-banner .btn-clear-target {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.login-room-target-banner .btn-clear-target:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
}

/* Scanner Main Panel */
.scanner-view-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.3s ease-out;
}

.scanner-viewport-card {
    position: relative;
    width: 100%;
    min-height: 290px;
    max-height: 340px;
    background: #020617;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

#login_scanner_reader {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
}

#login_scanner_reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 18px;
}

/* Cyber HUD Overlay */
.scanner-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scanner-hud-reticle {
    position: relative;
    width: 220px;
    height: 220px;
    max-width: 80%;
    max-height: 80%;
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.15);
    overflow: hidden;
}

/* Reticle Cyber Corners */
.scanner-hud-reticle .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: #38bdf8;
    border-style: solid;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.scanner-hud-reticle .corner-tl {
    top: 0;
    left: 0;
    border-width: 3.5px 0 0 3.5px;
    border-top-left-radius: 12px;
}

.scanner-hud-reticle .corner-tr {
    top: 0;
    right: 0;
    border-width: 3.5px 3.5px 0 0;
    border-top-right-radius: 12px;
}

.scanner-hud-reticle .corner-bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3.5px 3.5px;
    border-bottom-left-radius: 12px;
}

.scanner-hud-reticle .corner-br {
    bottom: 0;
    right: 0;
    border-width: 0 3.5px 3.5px 0;
    border-bottom-right-radius: 12px;
}

/* Animated Sweeping Laser Beam */
.scanner-laser-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #38bdf8 30%, #ffffff 50%, #38bdf8 70%, transparent 100%);
    box-shadow: 0 0 14px #38bdf8, 0 0 24px rgba(56, 189, 248, 0.8);
    top: 0;
    animation: scannerSweep 2.2s ease-in-out infinite alternate;
}

@keyframes scannerSweep {
    0% { top: 6%; opacity: 0.8; }
    50% { opacity: 1; }
    100% { top: 92%; opacity: 0.8; }
}

/* Scanner Top HUD Tag */
.scanner-hud-tag {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 21, 38, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 6;
}

.scanner-hud-tag .hud-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: blinkDot 1.4s infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Scanner Control Toolbar */
.scanner-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.scanner-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 33, 61, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.scanner-action-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.scanner-action-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Hardware Barcode Scanner Indicator */
.scanner-hardware-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.74rem;
    color: #94a3b8;
    text-align: center;
}

.scanner-hardware-indicator .gun-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    flex-shrink: 0;
}

/* Officer Profile Reveal Card */
.officer-reveal-card {
    background: linear-gradient(145deg, rgba(13, 25, 48, 0.95) 0%, rgba(15, 33, 61, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.2);
    animation: zoomInCard 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomInCard {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.officer-avatar-wrapper {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 16px auto;
}

.officer-avatar-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #0284c7);
    border: 3px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.2rem;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

.officer-status-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid #0b1526;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.officer-reveal-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.officer-nip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.76rem;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.officer-meta-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.officer-meta-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.officer-actions-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-direct-auth {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}

.btn-direct-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
    filter: brightness(1.08);
}

.btn-password-auth {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-password-auth:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reset-officer {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.btn-reset-officer:hover {
    color: #f43f5e;
    text-decoration: underline;
}

/* Interactive Simulation Test Drawer */
.scanner-demo-pills {
    margin-top: 14px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.scanner-demo-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scanner-demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-chip {
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.demo-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

