/* 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; }
.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); }
