/*
  Design notes (for future reference, not shown to users):
  This is a daily-use internal ops tool, not a marketing page — so the
  design leans restrained and fast over decorative. One signature touch
  (the brass accent bar + serif wordmark) carries the "premium chauffeur"
  feel; everything else stays quiet and utilitarian so staff can move
  through forms quickly.

  Palette:
    --navy      #1B2A41  primary / headers / nav
    --navy-deep #121D2E  darkest surface
    --brass     #C9A227  single accent — signature element, used sparingly
    --paper     #F7F5F1  page background
    --ink       #2E3440  body text
    --ink-soft  #6B7280  secondary text
    --line      #E4E0D8  hairline borders
    --ok        #2F7D5C  success
    --err       #B3392C  error

  Type: system font stack (fast, no external font requests needed on
  shared hosting) — Georgia serif for the wordmark/display moments only,
  system-ui sans for everything else (forms, tables, labels).
*/

:root {
  --navy: #1B2A41;
  --navy-deep: #121D2E;
  --brass: #C9A227;
  --paper: #F7F5F1;
  --ink: #2E3440;
  --ink-soft: #6B7280;
  --line: #E4E0D8;
  --ok: #2F7D5C;
  --err: #B3392C;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

a { color: var(--navy); }

/* ---------- Login screen ---------- */

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(18, 29, 46, 0.06);
}

.login-card__accent {
  height: 4px;
  background: var(--brass);
}

.login-card__body {
  padding: 36px 32px 32px;
}

.login-card__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}

.login-card__tagline {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { background: var(--navy-deep); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.alert--error {
  background: #FBEAE7;
  color: var(--err);
  border: 1px solid #EFC5BC;
}

.alert--success {
  background: #E8F3EE;
  color: var(--ok);
  border: 1px solid #BFE0D0;
}

/* ---------- App shell (post-login) ---------- */

.topnav {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  height: 56px;
}

.topnav__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-right: 28px;
  white-space: nowrap;
}

.topnav__link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.topnav__link:hover,
.topnav__link--active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.topnav__spacer { flex: 1; }

.topnav__user {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  margin-right: 14px;
}

.topnav__logout {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.topnav__logout:hover { background: rgba(255,255,255,0.08); color: #fff; }

.page {
  padding: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 4px;
}

.page__subtitle {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 28px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
