/* Private area — login page and hub only.
   The football dashboard brings its own stylesheet and is untouched by this. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..600,0..100;1,9..144,300..600,0..100&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500&display=swap');

/* The Living Atlas, Edition 02: Lamplight. Plaster by day, dusk by night, lamplight in both,
   with moss as the brand colour (the same values as inc/field.php). */
:root {
  color-scheme: light;
  --page: #e4e1d6;
  --surface: #eeebe2;
  --text: #172a33;
  --text-2: #4a585b;
  --muted: #4a585b;
  --border: #172a33;
  --line: #858c89;
  --rule: #d3a02c;
  --accent: #3d4a26;
  --on-accent: #e4e1d6;
  --focus: #225f5b;
  --danger: #9c3e28;
  --radius: 0;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #10202b; --surface: #172a36; --text: #ebe5d6; --text-2: #a7b0ad;
    --muted: #a7b0ad; --border: #ebe5d6; --line: #5d6b6c; --rule: #e6b54a;
    --accent: #a9b578; --on-accent: #10202b; --focus: #7cc0b6; --danger: #e8957a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--focus); }

/* ---- login: a small atlas plate ---------------------------------------- */

.login-page { display: grid; place-items: center; min-height: 100dvh; padding: 24px 16px; }
.login-card {
  position: relative;
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  outline: .75px solid var(--line); outline-offset: -9px;
  border-radius: 0; padding: 30px 30px 24px;
}
.login-card h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: 2.4rem; line-height: 1; letter-spacing: -.015em; margin-bottom: 18px;
  font-variation-settings: 'opsz' 72, 'SOFT' 100;
}
.login-sub { margin: 8px 0 18px; color: var(--muted); font-size: .9rem; }

.login-card label {
  display: block; margin: 14px 0 5px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.login-card input {
  width: 100%; font: inherit; font-size: 16px;   /* 16px stops iOS zooming on focus */
  padding: 11px 12px; color: var(--text);
  background: var(--page); border: 1px solid var(--border); border-radius: 2px;
}
.login-card input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.login-card button {
  width: 100%; margin-top: 22px; padding: 12px 14px;
  font-family: var(--font); font-weight: 500; font-size: 15px;
  color: var(--on-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 0; cursor: pointer;
  min-height: 46px;                               /* comfortable thumb target */
}
.login-card button:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-card button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.login-card button:disabled { opacity: .5; cursor: not-allowed; }

.alert {
  margin: 0 0 4px; padding: 9px 12px;
  border: 1px solid var(--danger); border-radius: 0;
  background: transparent;
  color: var(--danger); font-size: .88rem;
}
.login-foot { margin: 18px 0 0; font-size: 14px; text-align: center; }
.login-foot a { color: var(--muted); text-decoration: none; }
.login-foot a:hover { color: var(--text); }

/* ---- hub --------------------------------------------------------------- */

.pa-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 18px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.pa-title { font-weight: 650; }
.pa-spacer { flex: 1; }
.pa-user { color: var(--muted); font-size: .8rem; }
.pa-btn {
  font-size: .82rem; text-decoration: none; padding: 7px 13px;
  border: 1px solid var(--border); border-radius: 0; color: var(--text-2);
}
.pa-btn:hover { border-color: var(--muted); color: var(--text); }

.pa-main { max-width: 900px; margin: 0 auto; padding: 26px 18px 48px; }
.pa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.pa-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 18px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
a.pa-card:hover { border-color: var(--accent); }
.pa-card-soon { opacity: .5; }
.pa-icon { font-size: 1.5rem; line-height: 1; }
.pa-card-title { font-weight: 650; }
.pa-card-blurb { font-size: .84rem; color: var(--muted); }
.pa-foot { margin-top: 22px; font-size: .82rem; }
.pa-foot a { color: var(--muted); text-decoration: none; }

/* ---- the strip above the football dashboard ---------------------------- */

.pa-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px; font-family: var(--font); font-size: .8rem;
  background: #343c25; color: #e9e0cb;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.pa-strip a { color: #e9e0cb; text-decoration: none; padding: 5px 9px; border-radius: 6px; }
.pa-strip a:hover { background: rgba(255,255,255,.12); }
.pa-strip .pa-spacer { flex: 1; }
.pa-strip .pa-who { color: #c9c2a8; }
@media (max-width: 480px) { .pa-strip .pa-who { display: none; } }
