/* ============================================================
   SIBER SMART AKSES — Design System
   Ditreskrimsus Polda NTB · Team Falcon Cyber
   ============================================================ */

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

:root {
    /* Brand */
    --navy-950: #071120;
    --navy-900: #0c1e38;
    --navy-800: #123057;
    --navy-700: #1a4478;
    --blue-500: #2f7ff2;
    --blue-400: #5b9cf6;
    --cyan-400: #22d3ee;
    --gold-500: #d4a537;
    --gold-400: #e8c569;

    /* Surface / text (light) */
    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --ink: #101828;
    --ink-soft: #57607a;
    --ink-faint: #8a93ab;
    --border: #e0e4ee;
    --border-strong: #cbd2e1;

    /* Status */
    --success: #12875a;
    --success-bg: #e4f6ee;
    --warning: #b5720a;
    --warning-bg: #fdf1dc;
    --danger: #c92b2b;
    --danger-bg: #fbe9e8;
    --info: #2f7ff2;
    --info-bg: #e8f1fe;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 30, 60, .06);
    --shadow: 0 12px 30px rgba(15, 30, 60, .09);
    --shadow-lg: 0 24px 60px rgba(10, 20, 45, .16);

    --sidebar-w: 264px;
    --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Consolas", monospace;
}

html[data-theme="dark"] {
    --bg: #060b16;
    --surface: #111b2d;
    --surface-2: #0c1526;
    --ink: #edf1fb;
    --ink-soft: #a7b0c7;
    --ink-faint: #6b7690;
    --border: #1e2b45;
    --border-strong: #2a3a5a;

    --success: #34d399;
    --success-bg: rgba(52, 211, 153, .12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, .12);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, .12);
    --info: #5b9cf6;
    --info-bg: rgba(91, 156, 246, .12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 12px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-ui);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-ui); letter-spacing: -.01em; }

a { color: inherit; }

::selection { background: var(--blue-500); color: #fff; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

/* ============================================================
   APP SHELL (sidebar + main)
   ============================================================ */
.app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* ---- Sidebar ---- */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(190deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: #eaf0fb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    z-index: 40;
    transition: transform .25s ease;
    border-right: 1px solid rgba(255,255,255,.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }

.sidebar-brand .brand-text { line-height: 1.25; min-width: 0; }
.sidebar-brand .brand-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .03em;
    color: #fff;
}
.sidebar-brand .brand-text span {
    display: block;
    font-size: 11px;
    color: var(--gold-400);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-group-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6d80a8;
    padding: 14px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #c4cfe6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    position: relative;
    transition: background .15s ease, color .15s ease;
}

.nav-item i { width: 18px; text-align: center; font-size: 15px; color: #7f92bb; transition: color .15s ease; }

.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover i { color: var(--cyan-400); }

.nav-item.active {
    background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
    color: #fff;
    box-shadow: 0 6px 16px rgba(47,127,242,.35);
}
.nav-item.active i { color: #fff; }

.sidebar-user {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    color: var(--navy-950);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user .who { min-width: 0; flex: 1; }
.sidebar-user .who strong { display: block; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user .who span { font-size: 11px; color: #8fa1c7; text-transform: capitalize; }

.sidebar-user .logout-btn {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #c4cfe6;
    text-decoration: none;
    background: rgba(255,255,255,.06);
    transition: .15s;
    flex-shrink: 0;
}
.sidebar-user .logout-btn:hover { background: var(--danger); color: #fff; }

/* Sidebar mobile toggle */
.sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(4,10,22,.55);
    z-index: 35;
}

/* ---- Main column ---- */
.main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.hamburger {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.topbar-titles { flex: 1; min-width: 0; }
.topbar-titles .eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--blue-500);
    margin-bottom: 2px;
}
.topbar-titles h1 {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: .15s;
}
.icon-btn:hover { border-color: var(--blue-500); color: var(--blue-500); transform: translateY(-1px); }

.content {
    position: relative;
    z-index: 1;
    padding: 28px;
    max-width: 1180px;
}

/* Subtle radar/scan watermark — Falcon cyber cue.
   Painted as the content area's own ::before background (never a
   viewport-fixed overlay) so it can't create stacking-order conflicts
   with the sidebar in any renderer. */
.content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-image:
        radial-gradient(circle at 95% 0%, transparent 0 78px, var(--blue-500) 79px, var(--blue-500) 80px, transparent 81px),
        radial-gradient(circle at 95% 0%, transparent 0 128px, var(--cyan-400) 129px, var(--cyan-400) 130px, transparent 131px),
        linear-gradient(var(--border-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-strong) 1px, transparent 1px);
    background-size: auto, auto, 46px 46px, 46px 46px;
    background-repeat: no-repeat, no-repeat, repeat, repeat;
}
html[data-theme="dark"] .content::before { opacity: .07; }

.footer-note {
    padding: 18px 28px 34px;
    color: var(--ink-faint);
    font-size: 12.5px;
    max-width: 1180px;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Card ---- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.card + .card { margin-top: 20px; }

/* ---- Page intro block ---- */
.page-intro { margin-bottom: 22px; }
.page-intro p { color: var(--ink-soft); font-size: 14.5px; margin: 4px 0 0; max-width: 640px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--font-ui);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background .12s ease;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
    color: #fff;
    box-shadow: 0 10px 22px rgba(47,127,242,.28);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(47,127,242,.38); transform: translateY(-1px); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), #b9821f);
    color: #2b1c02;
    box-shadow: 0 10px 22px rgba(212,165,55,.3);
}
.btn-gold:hover { transform: translateY(-1px); }

.btn-ghost {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); }

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

.btn.loading .btn-label { visibility: hidden; }
.btn .spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    animation: spin .7s linear infinite;
}
.btn.loading { position: relative; }
.btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Back link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    margin-bottom: 14px;
}
.back-link:hover { color: var(--blue-500); }

/* ---- Forms ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }

.field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.field label i { color: var(--blue-500); width: 15px; text-align: center; font-size: 12.5px; }

input, select, textarea {
    font-family: var(--font-ui);
    padding: 11px 13px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

textarea { resize: vertical; font-family: var(--font-ui); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(47,127,242,.13);
}

input::placeholder, textarea::placeholder { color: var(--ink-faint); }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

/* ---- Alerts ---- */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
}
.alert.error   { background: var(--danger-bg); color: var(--danger); }
.alert.success { background: var(--success-bg); color: var(--success); }

/* ---- Dashboard menu ---- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.menu-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.menu-card:hover::before { transform: scaleX(1); }
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.menu-card.admin { border-left: 4px solid var(--gold-500); }

.menu-card .icon-wrap {
    width: 50px; height: 50px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.menu-card.admin .icon-wrap { background: linear-gradient(135deg, #a9750f, var(--gold-400)); }

.menu-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.menu-card p { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }

.menu-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue-500);
    text-decoration: none;
}
.menu-card .card-link:hover { gap: 11px; }
.menu-card .card-link i { transition: transform .15s; }
.menu-card .card-link:hover i { transform: translateX(2px); }

/* ---- Stat strip (dashboard summary) ---- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.stat-box .stat-num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat-box .stat-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }
.stat-box.accent-blue .stat-num { color: var(--blue-500); }
.stat-box.accent-warning .stat-num { color: var(--warning); }
.stat-box.accent-danger .stat-num { color: var(--danger); }

/* ---- Statistik Kasus (highlight teratas) ---- */
.highlight-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}
.highlight-card {
    background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    color: #fff;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.highlight-card i.hl-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    font-size: 34px;
    opacity: .18;
}
.highlight-card .hl-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.highlight-card .hl-value {
    font-size: 21px;
    font-weight: 800;
    margin-top: 8px;
    line-height: 1.25;
}
.highlight-card .hl-sub {
    font-size: 12.5px;
    color: #b7c3dd;
    margin-top: 4px;
}

/* ---- Statistik Kasus (panel bar list) ---- */
.stat-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}
.stat-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px 24px;
}
.stat-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.stat-panel-header .icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--info-bg);
    color: var(--blue-500);
    font-size: 15px;
    flex-shrink: 0;
}
.stat-panel-header h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
}
.stat-panel-header span {
    display: block;
    font-size: 12px;
    color: var(--ink-faint);
    font-weight: 500;
    margin-top: 1px;
}
.bar-list { display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-rank {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bar-row:first-child .bar-rank {
    background: linear-gradient(135deg, var(--gold-500), #b9821f);
    color: #2b1c02;
}
.bar-row-body { flex: 1; min-width: 0; }
.bar-row-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 5px;
}
.bar-row-top .bar-label {
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-row-top .bar-count {
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 12px;
    flex-shrink: 0;
}
.bar-track {
    height: 7px;
    border-radius: 5px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-500));
}
.bar-row:first-child .bar-fill {
    background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
}
.stat-panel-empty {
    color: var(--ink-faint);
    font-size: 13px;
    padding: 10px 0;
}

/* ---- Tables ---- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 13.5px;
}

.data-table thead th {
    background: var(--navy-900);
    color: #dbe6fb;
    text-align: left;
    padding: 13px 16px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    vertical-align: top;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td.mono, .data-table td .mono-text { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }
.data-table td.truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table td.truncate:hover { white-space: normal; overflow: visible; }

.empty-row td {
    text-align: center;
    padding: 46px 16px;
    color: var(--ink-faint);
    font-size: 14px;
}
.empty-row i { display: block; font-size: 26px; margin-bottom: 10px; color: var(--border-strong); }

/* ---- Status pill ---- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill-aktif, .pill-akan_datang, .pill-upcoming { background: var(--info-bg); color: var(--info); }
.pill-hampir, .pill-ongoing { background: var(--warning-bg); color: var(--warning); }
.pill-expired, .pill-lewat { background: var(--danger-bg); color: var(--danger); }
.pill-hari_ini, .pill-selesai { background: var(--success-bg); color: var(--success); }
.pill-admin { background: var(--warning-bg); color: var(--warning); }
.pill-user { background: var(--info-bg); color: var(--info); }
.pill-you { background: var(--success-bg); color: var(--success); }

/* ---- Filter bar ---- */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-bar .field { min-width: 200px; }

/* ---- Small icon-only form buttons in tables ---- */
.row-form { display: inline; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #123057 0%, var(--navy-950) 55%, #050a15 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.login-shell .grid-overlay {
    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: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

.login-shell .glow-ring {
    position: absolute;
    width: 640px; height: 640px;
    border: 1px dashed rgba(91,156,246,.18);
    border-radius: 50%;
    top: -220px; right: -180px;
}
.login-shell .glow-ring.small {
    width: 420px; height: 420px;
    top: -110px; right: -60px;
    border-color: rgba(34,211,238,.16);
}

.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    background: rgba(17, 27, 45, .82);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    backdrop-filter: blur(14px);
}

.login-card img { width: 84px; margin-bottom: 14px; }

.login-card h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    margin: 0;
}

.login-card .subtitle {
    font-size: 13px;
    color: #93a2c2;
    margin: 6px 0 26px;
}

.login-card .field { text-align: left; margin-bottom: 14px; }
.login-card label {
    font-size: 12px;
    font-weight: 600;
    color: #a9b6d3;
    margin-bottom: 6px;
    display: block;
}
.login-card input {
    width: 100%;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.12);
    color: #fff;
}
.login-card input:focus {
    border-color: var(--blue-400);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 4px rgba(91,156,246,.16);
}
.login-card input::placeholder { color: #5c6a8a; }

.login-card .btn-primary { margin-top: 6px; }

.login-footer {
    margin-top: 22px;
    font-size: 11px;
    color: #5c6a8a;
    letter-spacing: .02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .hamburger { display: flex; }
}

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: 1; }
    .content { padding: 18px; }
    .topbar { padding: 14px 16px; }
    .card { padding: 20px; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn { flex: 1; }
}
