:root {
  --brand-gold: #f2b643;
  --brand-gold-deep: #e99a2f;
  --brand-blue: #1f4e85;
  --brand-blue-soft: #69a9dd;
  --ink: #0b1220;
  --muted: #5b6576;
  --line: #dbe3ef;
  --bg: #f5f8fc;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; color: var(--ink); background: var(--bg); }

a { color: inherit; text-decoration: none; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background:
    radial-gradient(1200px 500px at 12% 0%, rgba(242, 182, 67, 0.30), transparent 60%),
    radial-gradient(900px 420px at 100% 100%, rgba(105, 169, 221, 0.22), transparent 60%),
    var(--bg);
}

.auth-brand { position: relative; padding: 48px; display: flex; align-items: center; justify-content: center; }
.brand-card { width: min(640px, 100%); border-radius: 26px; padding: 36px; background: linear-gradient(140deg, rgba(31, 78, 133, 0.97), rgba(12, 40, 72, 0.97)); color: #fff; box-shadow: 0 28px 60px rgba(15, 24, 44, 0.32); border: 1px solid rgba(255, 255, 255, 0.14); }
.brand-logo { width: 300px; max-width: 100%; display: block; margin-bottom: 20px; }
.brand-title { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; }
.brand-subtitle { margin-top: 12px; color: rgba(255, 255, 255, 0.88); font-size: 16px; line-height: 1.55; max-width: 48ch; }
.badges { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: #10223d; background: linear-gradient(180deg, #ffd577, #f2b643); border-radius: 999px; padding: 7px 12px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--card); border-radius: 18px; padding: 28px; box-shadow: 0 18px 46px rgba(14, 31, 54, 0.14); border: 1px solid var(--line); }
.login-title { margin: 0; font-size: 24px; font-weight: 800; }
.login-sub { margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
label { display: block; margin-bottom: 7px; font-size: 13px; color: #1c2b42; font-weight: 600; }
input, select { width: 100%; border: 1px solid #c8d3e4; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(31, 78, 133, 0.14); }
.btn { width: 100%; border: 0; border-radius: 10px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; color: #12243f; background: linear-gradient(180deg, #ffd577, #f2b643); }
.btn:hover { filter: brightness(0.98); }
.err { min-height: 20px; font-size: 13px; color: #b42318; margin-bottom: 8px; }

.top { background: linear-gradient(100deg, #11335d, #1f4e85); color: #fff; padding: 12px 20px; display:flex; align-items:center; justify-content:space-between; }
.top strong { color: #ffd577; }
.layout { display:flex; min-height: calc(100vh - 52px); }
.sidebar { width: 230px; background:#0f1e34; color:#d1d5db; padding:16px; display:flex; flex-direction:column; gap:8px; }
.sidebar h3 { margin-top: 0; color:#fff; font-size:12px; text-transform: uppercase; letter-spacing: .08em; }
.nav-item { padding: 9px 11px; border-radius: 7px; background:#1e3658; color:#f8fafc; font-size:14px; font-weight:700; }
.nav-item.active { background:#f2b643; color:#1a2b46; }
.main { flex:1; padding:20px; }
.panel { background:#fff; border-radius:10px; padding:16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1px solid var(--line); }

table { width:100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom:1px solid #e5e7eb; text-align:left; padding:8px; vertical-align: top; }
th { background:#f9fafb; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.logout { background:#1e3658; color:#fff; border:0; padding:8px 12px; border-radius:6px; cursor:pointer; }
.logout:hover { background:#27446d; }
.action-btn { background:#f2b643; color:#142640; border:0; border-radius:6px; padding:6px 10px; cursor:pointer; font-weight:700; }
.action-btn:hover { filter: brightness(0.97); }

.pill { display:inline-block; border-radius:999px; padding:3px 9px; font-size:12px; font-weight:700; text-transform:lowercase; }
.pill-green { background:#d1fae5; color:#065f46; }
.pill-red { background:#fee2e2; color:#991b1b; }
.pill-amber { background:#fef3c7; color:#92400e; }
.pill-gray { background:#e5e7eb; color:#374151; }
.pill-blue { background:#dbeafe; color:#1e3a8a; }

.filters { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-bottom: 14px; padding: 10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:8px; }
.filters label { margin: 0; font-size:12px; text-transform: uppercase; letter-spacing: .04em; color:#334155; min-width: 220px; }
.filters input, .filters select { margin-bottom: 0; margin-top: 6px; background:#fff; }
.clear-link { font-size:13px; color:#1f4e85; padding: 8px 6px; }

@media (max-width: 1000px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { padding: 24px; }
  .auth-panel { padding: 0 24px 24px; }
  .brand-title { font-size: 28px; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; }
}
