:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe5ee;
  --dark: #08111e;
  --accent: #22d3ee;
  --accent-strong: #06b6d4;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #08111e, #07111d);
}

.auth-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(8, 17, 30, 0.08);
}

.auth-card {
  width: min(100%, 420px);
  padding: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent-strong);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

p {
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 120px;
  padding: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #03131b;
  background: linear-gradient(135deg, #67e8f9, var(--accent-strong));
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.error {
  margin-top: 16px;
  border-left: 3px solid #ef4444;
  padding: 10px 12px;
  color: #991b1b;
  background: #fee2e2;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  padding: 22px;
  color: #f8fafc;
  background: var(--dark);
}

.sidebar .brand {
  color: #f8fafc;
}

.nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: rgba(248, 250, 252, 0.78);
  font-weight: 700;
}

.nav a:hover,
.nav a.is-active {
  color: #03131b;
  background: var(--accent);
}

.content {
  padding: 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  padding: 22px;
}

.panel h2,
.panel h3 {
  margin: 0;
}

.metric {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  color: #075985;
  background: #cffafe;
  font-size: 12px;
  font-weight: 800;
}

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

  .sidebar {
    position: static;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
