:root {
  --ink: #17323a;
  --muted: #687b81;
  --paper: #edf3f3;
  --card: #ffffff;
  --line: rgba(23, 50, 58, .14);
  --accent: #176f7d;
  --danger: #a33a32;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  color: var(--ink);
  background: linear-gradient(180deg, #dce9ea, #f7f9f9 50%, #e9f0f0);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.access-shell { width: min(430px, 100%); }
.access-brand { text-align: center; margin-bottom: 16px; }
.access-brand .helmet { font-size: 48px; filter: drop-shadow(0 8px 14px rgba(23, 50, 58, .16)); }
.access-brand h1 { margin: 6px 0 4px; font-size: 1.5rem; }
.access-brand p { margin: 0; color: var(--muted); font-size: .9rem; }

.access-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 50px rgba(23, 50, 58, .12);
}

.access-card label { display: block; margin-bottom: 8px; font-weight: 850; }
.access-card input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f9fbfb;
  color: var(--ink);
  font: 850 1rem/1 monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
  direction: ltr;
  text-align: center;
  outline: none;
}
.access-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23, 111, 125, .12); }
.access-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font: 900 1rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.access-card button:disabled { opacity: .6; cursor: wait; }

.access-state {
  min-height: 22px;
  margin: 12px 2px 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.access-state.error { color: var(--danger); font-weight: 800; }
.access-state.good { color: #276749; font-weight: 800; }
.access-note { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: .78rem; line-height: 1.6; }
