:root {
  color-scheme: light;
  --ink: #111111;
  --ink-soft: #222222;
  --paper: #f4f2ed;
  --white: #ffffff;
  --line: #ddd8cd;
  --muted: #6a675f;
  --gold: #ce9c3a;
  --gold-dark: #a87920;
  --green: #27805e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Overpass, Arial, sans-serif;
}

.centered-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .68)),
    radial-gradient(circle at 75% 20%, #755a25, #111 55%);
}

.login-card {
  width: min(100%, 460px);
  padding: 44px;
  background: var(--white);
  border-top: 6px solid var(--gold);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  text-align: left;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Teko, Impact, sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-mark, .mini-mark {
  display: inline-grid;
  place-items: center;
  background: var(--gold);
  color: var(--white);
  font-family: Teko, Impact, sans-serif;
  font-weight: 700;
}

.brand-mark { width: 48px; height: 48px; font-size: 29px; }
.mini-mark { width: 34px; height: 34px; font-size: 21px; }

.eyebrow {
  margin: 30px 0 4px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: Teko, Impact, sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
}

h1 { margin: 0 0 8px; font-size: clamp(42px, 7vw, 58px); line-height: .98; }
h2 { margin: 0 0 10px; font-size: 27px; line-height: 1; }
.muted { color: var(--muted); }

.notice {
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  background: #faf4e6;
  color: #6a4b12;
}

.button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px 18px 10px;
  border: 0;
  border-radius: 3px;
  color: var(--white);
  font-family: Teko, Impact, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary { background: var(--gold); }
.primary:hover { background: var(--gold-dark); }
.secondary { margin-top: 10px; background: var(--ink); }
.secondary:hover { background: #353535; }
.dev-note { margin: 8px 0 0; color: #8b877e; font-size: 12px; text-align: center; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 14px max(24px, calc((100vw - 1100px) / 2));
  background: var(--ink);
  border-bottom: 4px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-family: Teko, Impact, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: .75;
  text-decoration: none;
}

.brand small { display: block; color: #aaa; font: 9px Overpass, sans-serif; letter-spacing: .16em; }
.text-button { border: 0; background: none; color: #ddd; cursor: pointer; font: 600 13px Overpass, sans-serif; text-transform: uppercase; }
.text-button:hover { color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 20px; }
.top-actions a { color: #ddd; font-size: 13px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.top-actions a:hover { color: var(--gold); }
.page-shell { width: min(1100px, calc(100% - 48px)); margin: 64px auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.panel {
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ink);
  box-shadow: 0 10px 30px rgba(34, 29, 18, .06);
}

.panel p, .panel li { color: var(--muted); }
.status { display: inline-block; padding: 5px 10px; border-radius: 2px; background: #ebe7de; color: #5b574e; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status.online { background: #dcefe7; color: var(--green); }
.notice.success { border-color: var(--green); background: #e8f5ef; color: #1f684d; }
.access-form { max-width: 680px; margin-top: 32px; }
.access-form form { display: grid; gap: 16px; }
.access-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.access-form input, .access-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 16px Overpass, sans-serif; }
.button.compact { width: auto; justify-self: start; margin-top: 4px; padding-inline: 28px; }
.access-list { max-width: 800px; margin-top: 20px; }
.access-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.access-row small { display: block; color: var(--muted); }
.danger-button { border: 1px solid #bf4c42; background: transparent; color: #a02c24; padding: 7px 10px; cursor: pointer; font-weight: 700; }
.protected-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
li + li { margin-top: 8px; }

@media (max-width: 520px) {
  .login-card { padding: 32px 24px; }
  .page-shell { width: min(100% - 28px, 1100px); margin-top: 40px; }
}
