/* ═══════════════════════════════════════════════════════════════════════
   LGU Biometric Payroll System — Design System v2
   Clean, light, professional government-grade UI. No dark mode.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --brand-900: #0f1f3d;

  /* Accent (gold/amber for LGU government feel) */
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  /* Success / Danger / Warning */
  --success-50:  #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --danger-50:  #fff1f2;
  --danger-500: #f43f5e;
  --danger-600: #e11d48;
  --warning-50:  #fffbeb;
  --warning-500: #f59e0b;

  /* Neutrals */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Surfaces */
  --surface:       #ffffff;
  --surface-alt:   #f8fafc;
  --surface-hover: #f1f5f9;
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 15px rgba(15,23,42,.08), 0 4px 6px rgba(15,23,42,.05);
  --shadow-xl: 0 20px 25px rgba(15,23,42,.09), 0 8px 10px rgba(15,23,42,.04);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  18px;
  --radius-full: 9999px;

  /* Sidebar */
  --sidebar-w:        240px;
  --sidebar-w-collapsed: 68px;
  --topbar-h:         60px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; color: var(--gray-900); }
p { margin: 0; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── App Shell ───────────────────────────────────────────────────────────── */
.app {
  display: flex;
  min-height: 100vh;
}

.app__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  transition: margin-left 200ms ease;
}

.content {
  flex: 1;
  padding: 28px 28px 60px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: width 200ms ease;
  overflow: hidden;
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Sidebar Header */
.sidebar__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border);
  min-height: 70px;
}

.sidebar__logoIcon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(37,99,235,.30);
}

.sidebar__logoText {
  overflow: hidden;
}

.sidebar__logoTitle {
  font-size: 13px;
  font-weight: 800;
  color: var(--gray-900);
  white-space: nowrap;
  line-height: 1.2;
}

.sidebar__logoSub {
  font-size: 11px;
  color: var(--gray-400);
  white-space: nowrap;
  margin-top: 2px;
}

/* Sidebar Nav */
.sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__group {
  margin-bottom: 4px;
}

.sidebar__groupLabel {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  padding: 8px 10px 4px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--gray-600);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 140ms ease;
  position: relative;
}

.sidebar__item:hover {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
  text-decoration: none;
}

.sidebar__item--active {
  background: var(--brand-50);
  color: var(--brand-600);
  border-color: var(--brand-200);
  font-weight: 700;
}

.sidebar__item--active .sidebar__icon {
  color: var(--brand-600);
}

.sidebar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: color 140ms ease;
}

.sidebar__item:hover .sidebar__icon {
  color: var(--brand-600);
}

.sidebar__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__badge {
  flex-shrink: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--danger-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Footer */
.sidebar__footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}

.sidebar__version {
  font-size: 11px;
  color: var(--gray-400);
  padding: 6px 10px;
  text-align: center;
  white-space: nowrap;
}

/* ── Top Bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.topbar--app {
  background: var(--surface);
}

.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Breadcrumb / page title in topbar */
.topbar__pageTitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Brand logo in topbar (hidden when sidebar has it) */
.brand--compact img { width: 30px; height: 30px; }
.brand--compact .title strong { font-size: 13px; }

/* ── Profile Menu ────────────────────────────────────────────────────────── */
.profile { position: relative; }

.profile__btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile__avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: 2px solid var(--brand-200);
  box-shadow: 0 2px 8px rgba(37,99,235,.20);
}

.profile__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  display: none;
  z-index: 200;
}

.profile__menu.is-open { display: block; }

.profile__meta {
  padding: 10px 10px 12px;
}

.profile__name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
}

.profile__role {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile__divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.profile__logout {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(244,63,94,.20);
  background: rgba(244,63,94,.06);
  color: var(--danger-600);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font);
  transition: background 140ms;
}

.profile__logout:hover { background: rgba(244,63,94,.12); }

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

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

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

/* ── Grid Layouts ────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

/* ── Stat Cards (Dashboard) ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card__accent--blue   { background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); }
.stat-card__accent--green  { background: linear-gradient(90deg, var(--success-600), var(--success-500)); }
.stat-card__accent--amber  { background: linear-gradient(90deg, var(--accent-600), var(--accent-400)); }
.stat-card__accent--navy   { background: linear-gradient(90deg, var(--brand-900), var(--brand-700)); }
.stat-card__accent--red    { background: linear-gradient(90deg, var(--danger-600), var(--danger-500)); }

.stat-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--blue   { background: var(--brand-50); color: var(--brand-600); }
.stat-card__icon--green  { background: var(--success-50); color: var(--success-600); }
.stat-card__icon--amber  { background: var(--warning-50); color: var(--accent-600); }
.stat-card__icon--navy   { background: var(--brand-50); color: var(--brand-900); }

.stat-card__content { flex: 1; }
.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

/* ── Quick Links (Dashboard) ─────────────────────────────────────────────── */
.dashboard-section { margin-top: 8px; }
.dashboard-section__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.dashboard-greeting {
  margin-bottom: 24px;
}
.dashboard-greeting h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
}
.dashboard-greeting p {
  color: var(--gray-500);
  margin-top: 4px;
  font-size: 14px;
}
.dashboard-greeting__role {
  font-weight: 700;
  color: var(--brand-600);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 140ms ease;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-700);
}

.quick-link:hover {
  background: var(--brand-100);
  border-color: var(--brand-300);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.quick-link__icon {
  display: flex;
  align-items: center;
  color: var(--brand-500);
}

.quick-link--outline {
  background: var(--surface);
  border-color: var(--border);
  color: var(--gray-700);
}

.quick-link--outline .quick-link__icon { color: var(--gray-500); }
.quick-link--outline:hover {
  background: var(--surface-hover);
  border-color: var(--gray-300);
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  display: block;
  margin-bottom: 6px;
}

.field { margin-bottom: 14px; }

.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
  appearance: none;
}

.input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.input::placeholder { color: var(--gray-400); }

textarea.input { resize: vertical; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--gray-700);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition: all 140ms ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--gray-300);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-700);
  box-shadow: 0 1px 3px rgba(37,99,235,.30);
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-900);
}

.btn-danger {
  background: var(--danger-500);
  color: #fff;
  border-color: var(--danger-600);
}

.btn-danger:hover { background: var(--danger-600); }

.btn-success {
  background: var(--success-600);
  color: #fff;
  border-color: var(--success-500);
}

.btn[disabled], .btn.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.40);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Tables ──────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }

th {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-700);
  font-size: 13.5px;
}

tr:hover td { background: var(--gray-50); }

tr:last-child td { border-bottom: none; }

/* ── Badges / Pills ──────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.pill--blue   { background: var(--brand-50);   color: var(--brand-700);   border: 1px solid var(--brand-200); }
.pill--green  { background: var(--success-50); color: var(--success-600); border: 1px solid rgba(34,197,94,.20); }
.pill--amber  { background: var(--warning-50); color: var(--accent-600);  border: 1px solid rgba(245,158,11,.20); }
.pill--red    { background: var(--danger-50);  color: var(--danger-600);  border: 1px solid rgba(244,63,94,.20); }
.pill--gray   { background: var(--gray-100);   color: var(--gray-600);    border: 1px solid var(--border); }

/* ── Toast Notifications ─────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  width: min(380px, calc(100vw - 40px));
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  pointer-events: all;
  animation: toastIn 200ms ease forwards;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast .title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gray-900);
  margin: 0 0 3px;
}

.toast .message {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.toast-success { border-left: 4px solid var(--success-500); }
.toast-error   { border-left: 4px solid var(--danger-500); }
.toast-info    { border-left: 4px solid var(--brand-500); }
.toast-warning { border-left: 4px solid var(--warning-500); }

/* ── Misc Helpers ────────────────────────────────────────────────────────── */
.muted { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.font-bold { font-weight: 700; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px 18px 26px; }

.error-block {
  color: var(--danger-600);
  background: var(--danger-50);
  border: 1px solid rgba(244,63,94,.20);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  margin: 10px 0 14px;
  font-size: 13.5px;
}

/* ── ZKTeco Settings Page ────────────────────────────────────────────────── */
.zkteco { }
.zkteco__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.zkteco__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.zkteco__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gray-500);
}
.zkteco__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}
[data-status="LOGGED_IN"] .zkteco__dot { background: var(--success-500); box-shadow: 0 0 0 3px rgba(34,197,94,.20); }
[data-status="LOGGED_IN"] { background: var(--success-50); border-color: rgba(34,197,94,.25); color: var(--success-600); }
[data-status="ERROR"] .zkteco__dot { background: var(--danger-500); }
[data-status="ERROR"] { background: var(--danger-50); border-color: rgba(244,63,94,.25); color: var(--danger-600); }

.zkteco__details { display: flex; flex-direction: column; gap: 10px; }
.zkteco__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13.5px;
  gap: 12px;
}
.zkteco__row .muted { font-size: 12px; font-weight: 600; }
.zkteco__row strong { color: var(--gray-800); word-break: break-all; }
.zkteco__note { font-size: 12px; margin-top: 8px; }

/* ── Auth / Login Page ───────────────────────────────────────────────────── */
.body-bg {
  min-height: 100vh;
  background: var(--app-bg-image, none) center/cover no-repeat fixed;
  position: relative;
}
.body-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(11,31,54,.42);
  pointer-events: none;
}
.body-bg > * { position: relative; z-index: 1; }

.auth { padding: 38px 0; }
.auth__shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 920px) { .auth__shell { grid-template-columns: 1fr; } }

.auth__panel {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.15);
}
.auth__panel--brand {
  min-height: 540px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.auth__panel--brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,54,.65) 0%, rgba(11,31,54,.55) 50%, rgba(11,31,54,.75) 100%);
}
.auth__brand {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 30px;
  color: rgba(255,255,255,.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth__brandTop { display: flex; align-items: center; gap: 14px; }
.auth__logoWrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.auth__logo { width: 52px; height: 52px; object-fit: contain; }
.auth__systemName { font-size: 20px; font-weight: 800; letter-spacing: .2px; line-height: 1.15; }
.auth__systemTagline { font-size: 13px; opacity: .9; margin-top: 2px; }
.auth__highlights { display: grid; gap: 12px; margin-top: 18px; }
.auth__highlight {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
}
.auth__hTitle { font-weight: 800; font-size: 13px; }
.auth__hDesc { font-size: 12px; opacity: .9; margin-top: 4px; line-height: 1.4; }
.auth__brandFooter { display: flex; flex-wrap: wrap; gap: 10px; opacity: .85; margin-top: 12px; }
.auth__footerItem { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.auth__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.8); }

.auth__panel--form { background: var(--surface); }
.auth__form { padding: 32px; }
.auth__formHeader { margin-bottom: 20px; }
.auth__title { margin: 0; font-size: 22px; font-weight: 800; color: var(--gray-900); }
.auth__subtitle { margin: 6px 0 0; font-size: 13px; color: var(--gray-500); }
.auth__fields { margin-top: 14px; }
.auth__submit { width: 100%; margin-top: 6px; padding: 11px 16px; }
.auth__help {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--gray-50);
}
.auth__helpRow { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.auth__helpLabel { font-size: 12px; color: var(--gray-400); font-weight: 600; }
.auth__helpValue { font-size: 12px; color: var(--gray-700); font-weight: 700; }
.auth__formFooter {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.auth__badge {
  font-size: 12px; font-weight: 700; color: var(--brand-700);
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}
.auth__meta { font-size: 12px; color: var(--gray-400); }

/* ── Dashboard login (unauthenticated fallback) ──────────────────────────── */
.dashboard-login { text-align: center; padding: 60px 20px; }
.dashboard-login h2 { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.dashboard-login p { margin-top: 10px; color: var(--gray-500); }

/* ── Responsive: collapse sidebar on small screens ───────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: var(--sidebar-w-collapsed); }
  .sidebar__logoText,
  .sidebar__label,
  .sidebar__groupLabel,
  .sidebar__version { display: none; }
  .app__main { margin-left: var(--sidebar-w-collapsed); }
}
