:root {
  --gold: #d7b46a;
  --crimson: #8b1d1d;
  --coal: #121212;
  --ink: #1d2c35;
  --paper: #ffffff;
  --mist: #f2efe8;
  --sage: #65795f;
  --blue: #173654;
  --line: rgba(18, 18, 18, 0.16);
  --muted: rgba(18, 18, 18, 0.68);
  --head: Garamond, "Times New Roman", serif;
  --body: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--coal);
  background:
    linear-gradient(135deg, rgba(215, 180, 106, 0.16), rgba(23, 54, 84, 0.08)),
    var(--mist);
  letter-spacing: 0;
}

a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6vw, 82px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 24px; }
p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
}

.sidebar {
  min-height: 100vh;
  padding: 22px 18px;
  color: var(--paper);
  background: linear-gradient(180deg, var(--coal), var(--blue));
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; text-transform: uppercase; font-size: 13px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(215, 180, 106, 0.5); }

.session-card {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: grid;
  gap: 8px;
}
.session-card strong { color: var(--gold); font-size: 12px; text-transform: uppercase; }
.session-card p { color: rgba(255,255,255,0.82); font-size: 13px; }

.nav { display: grid; gap: 8px; margin-top: 22px; }
.nav a {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: var(--paper);
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  padding: 12px;
  font-weight: 850;
}
.nav a.active { background: var(--gold); border-color: var(--gold); color: var(--coal); }

.content { min-width: 0; padding: 30px; }
.topbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.hero { display: grid; gap: 12px; max-width: 980px; margin-bottom: 22px; }
.eyebrow { color: var(--crimson); font-size: 12px; text-transform: uppercase; font-weight: 900; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(18,18,18,0.07);
}
.metric { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.metric span { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.metric strong { font-family: var(--head); font-size: 42px; line-height: 1; }
.status { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 9px; border: 1px solid rgba(139,29,29,0.26); color: var(--crimson); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.table { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden; background: var(--paper); }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.table th { color: var(--coal); font-size: 12px; text-transform: uppercase; background: rgba(18,18,18,0.04); }
.table td { color: var(--muted); }
.boundary { border-left: 4px solid var(--crimson); background: rgba(139,29,29,0.08); padding: 14px; font-weight: 760; color: rgba(18,18,18,0.82); }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  background: var(--coal);
  color: var(--paper);
}
.login-visual {
  min-height: 100vh;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.2), rgba(18,18,18,0.82)),
    url("ook-banner.png") center / cover no-repeat;
}
.login-copy { max-width: 640px; display: grid; gap: 14px; }
.login p { color: rgba(255,255,255,0.82); }
.login-panel {
  display: grid;
  align-content: center;
  padding: 40px;
  background: var(--mist);
  color: var(--coal);
}
.auth-box { max-width: 520px; width: 100%; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
label { font-size: 12px; text-transform: uppercase; font-weight: 900; color: rgba(18,18,18,0.7); }
input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--coal);
}
.btn {
  min-height: 48px;
  border: 1px solid var(--coal);
  border-radius: 6px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coal);
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--coal); }
.btn.ghost { background: transparent; color: var(--coal); border-color: var(--line); }
.btn[disabled] { cursor: not-allowed; color: rgba(18,18,18,0.46); background: rgba(18,18,18,0.05); border-color: rgba(18,18,18,0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notice {
  padding: 14px;
  border-left: 4px solid var(--gold);
  background: rgba(215, 180, 106, 0.16);
  color: rgba(18,18,18,0.78);
  font-weight: 760;
  line-height: 1.45;
}
.turnstile-slot {
  min-height: 65px;
  display: flex;
  align-items: center;
}

@media (max-width: 980px) {
  .portal-shell, .login { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content, .login-panel, .login-visual { padding: 22px 14px; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}
