/* The login wall. Same design system as the day view — Tailwind spacing/type scales, the same
   neutral palette and both themes — but deliberately NO clinic branding: this screen must look
   identical whichever address was typed. */
:root {
  --ground: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f0;
  --ink: #12201a;
  --muted: #5c6b63;
  --faint: #8a978f;
  --line: #dfe7e2;
  --accent: #00984a;
  --accent-strong: #007a3c;
  --danger: #b3352b;
  --shadow-md: 0 4px 12px rgba(18, 32, 26, .10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1512; --surface: #16201b; --surface-2: #1c2822;
    --ink: #e7efea; --muted: #9fb0a7; --faint: #74857c;
    --line: #26332c; --accent: #27b268; --accent-strong: #3ac47c; --danger: #e2695f;
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--ground); color: var(--ink);
  font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; padding: 1.5rem;
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem;
  box-shadow: var(--shadow-md); padding: 2rem; width: 100%; max-width: 22rem;
}
.card h1 { font-size: 1.25rem; line-height: 1.75rem; margin: 0 0 1.5rem; }
/* The notice card keeps its own rhythm — its lead paragraph supplies the gap. */
.card.notice h1 { margin: 0; }
.lead { margin: 0.25rem 0 1.5rem; color: var(--muted); font-size: 0.875rem; }

form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field span { font-size: 0.8125rem; color: var(--muted); }
.field input {
  font: inherit; font-size: 0.9375rem; padding: 0.5rem 0.75rem;
  border: 1px solid var(--line); border-radius: 0.5rem;
  background: var(--surface); color: var(--ink);
}
.field input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.error { margin: 0; font-size: 0.8125rem; color: var(--danger); }

button {
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
}
button:hover { background: var(--accent-strong); }

.foot span { font-size: 0.75rem; color: var(--faint); }

/* Page not found. Same card, same palette — a wrong address should look like part of the
   product, not like the server fell over. */
.card.notice { text-align: center; }
.notice-mark {
  width: 2.5rem; height: 2.5rem; fill: var(--faint);
  display: block; margin: 0 auto 0.75rem;
}
.card.notice h1 { font-size: 1.25rem; line-height: 1.75rem; margin: 0; }
.card.notice .lead { margin: 0.375rem 0 1.5rem; }
.button-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  background: var(--accent); color: #fff;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
}
.button-link:hover { background: var(--accent-strong); }
.button-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Which world and which build this screen belongs to — the banner only ever appears on the
   test environment, so live keeps its bare face. */
.environment-banner {
  background: #d97706; color: #fff; font-weight: 600; letter-spacing: .06em;
  padding: 0.375rem 1rem; border-radius: 0.5rem; text-transform: uppercase; font-size: .875rem;
}
.version { color: var(--faint); font-size: .8125rem; margin: 0; }
