/* Event Calendar sign-in (apollohub.eu/calendar, calendar.hohtools.eu).
   Matches the Survey calendar look: Blueprint dark, vermilion accent, lane chips. */
:root {
  --bg: #0b2340;
  --surface: #0d2848;
  --line: #2c4c75;
  --line-2: #4a6a95;
  --text: #e9f1fb;
  --muted: #b7c8dd;
  --accent: #ff6a3d;
  --accent-ink: #0b2340;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --danger: #ff8a78;
  --p-season: #f2d58a;
  --p-summon: #dcd3ee;
  --p-allied: #f4c9b8;
  --p-mini: #e3e5df;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.login-main {
  padding: max(48px, env(safe-area-inset-top)) clamp(24px, 6vw, 96px) 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--text);
  color: var(--accent);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.eyebrow {
  padding-left: 10px;
  border-left: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted);
}
.hero-copy { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 {
  margin: 0;
  max-width: 560px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}
.signin { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.discord-btn {
  height: 52px;
  border-radius: 4px;
  background: var(--discord);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms;
}
.discord-btn:hover { background: var(--discord-hover); }
.discord-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot { margin: 0; font-size: 13px; color: var(--muted); }
.error, .hint { margin: 0; font-size: 13px; }
.error {
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 138, 120, 0.12);
  border: 1px solid rgba(255, 138, 120, 0.4);
  color: var(--danger);
}
.hint { color: var(--muted); }
.error[hidden], .hint[hidden] { display: none; }
.steps {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.steps span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.login-art {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
  border-left: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 48px;
}
.cal-sheet {
  width: min(420px, 100%);
  background: #102c50;
  border: 2px solid var(--text);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
}
.cal-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.cal-sheet-range {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}
.cal-lanes {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.cal-lane {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1.5px solid #101820;
  background: var(--pc, #e3e5df);
  color: #101820;
}
.cal-lane b {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cal-lane span { font-size: 12.5px; opacity: 0.75; }
.cal-lane.p-season { --pc: var(--p-season); }
.cal-lane.p-summon { --pc: var(--p-summon); }
.cal-lane.p-allied { --pc: var(--p-allied); }
.cal-lane.p-mini { --pc: var(--p-mini); }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-main { gap: 32px; padding-top: max(32px, env(safe-area-inset-top)); }
  .hero-copy { margin-top: 24px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { flex-direction: row; gap: 12px; padding: 12px 0; }
}
