:root {
  --bg-base: #f8fafc;
  --primary: #4f46e5;
  --primary-dim: #4338ca;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-input: #ffffff;
  --radius-md: 12px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #f1f5f9 100%);
  color: var(--text-primary);
  min-height: 100vh;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { display: none; }
}
.login-hero {
  background: linear-gradient(145deg, #312e81 0%, #4f46e5 55%, #6366f1 100%);
  color: #fff;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.login-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.login-hero p { opacity: 0.9; max-width: 28ch; line-height: 1.5; }
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.login-card { width: 100%; max-width: 400px; }
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.muted { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  border-color: var(--primary);
}
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--primary-dim); }
button.secondary { background: #fff; color: var(--text-primary); border: 1px solid var(--border); }
.error { color: #dc2626; margin-bottom: 12px; font-size: 0.9rem; }
.shell { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--primary);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { background: #fff; color: var(--text-secondary); border: 1px solid var(--border); }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.panel h2 { font-size: 1.05rem; margin-bottom: 12px; font-family: var(--font-heading); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 500; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.mock { background: #fef3c7; color: #92400e; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.8rem;
  max-height: 280px;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
