/* The sign-in page, and only the sign-in page.
   Reeed's bundle carries its own styling; nothing here reaches it. Deliberately
   self-contained — the door is the one page that has to render before anything else on
   this box is known to work, so it depends on nothing. */

:root {
  --bg: #0d1013;
  --card: #15191e;
  --line: #242a31;
  --text: #e8ecef;
  --muted: #8b949e;
  --accent: #4ade80;      /* the map's "affordable" green, so the door matches the page */
  --warn: #f0883e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
        system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.hidden { display: none !important; }

/* Centred, and safe-area padded so the card never sits under the iPhone's notch or its
   home indicator. */
.auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 20px
           calc(24px + env(safe-area-inset-bottom));
}

.auth {
  width: 100%;
  max-width: 360px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 26px 30px;
}

.auth .mark { height: 52px; width: 52px; display: block; margin: 0 auto 20px; }

.auth h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.auth p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

button.primary {
  width: 100%;
  /* 48px tall: a comfortable thumb target, not the 32px minimum. */
  min-height: 48px;
  padding: 13px 18px;
  font: 600 15px/1.2 inherit;
  color: #0d1013;
  background: var(--accent);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  -webkit-appearance: none;
}
button.primary:hover { filter: brightness(1.07); }
button.primary:active { transform: translateY(1px); }
button.primary:disabled { opacity: .5; cursor: default; transform: none; }

/* min-height reserved so the card does not jump when a message appears. */
.auth .msg {
  margin-top: 16px;
  min-height: 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.auth .msg.err { color: var(--warn); }
.auth .msg.ok { color: var(--accent); }

@media (max-width: 360px) {
  .auth { padding: 28px 20px 24px; }
  .auth h1 { font-size: 21px; }
}
