:root {
  color-scheme: light;
  --indigo: #282064;
  --indigo-mid: #5154b6;
  --purple: #8e33ff;
  --green: #00a886;
  --ink: #172033;
  --muted: #637381;
  --line: #dfe3eb;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 51, 255, .16), transparent 28rem),
    radial-gradient(circle at 88% 80%, rgba(0, 168, 134, .14), transparent 30rem),
    linear-gradient(135deg, #f8f7ff, var(--canvas));
}

button, input { font: inherit; }

.gateway-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.gateway-panel {
  width: min(1120px, 100%);
  border: 1px solid rgba(81, 84, 182, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 80px rgba(40, 32, 100, .15);
}

.gateway-panel--access {
  width: min(440px, 100%);
  padding: 48px 42px 42px;
  text-align: center;
}

.gateway-panel--selector { padding: 48px; }

.brand-mark {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 24px;
}

.brand-mark span {
  display: block;
  width: 42px;
  height: 7px;
  border-radius: 999px;
  transform: skewX(-25deg);
}

.brand-mark span:nth-child(1) { background: var(--purple); }
.brand-mark span:nth-child(2) { background: var(--green); }
.brand-mark span:nth-child(3) { background: var(--indigo-mid); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--indigo-mid);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 { margin: 0; color: var(--indigo); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.gateway-panel--access h1 { font-size: 2rem; }
.lede { margin: 14px 0 0; color: var(--muted); line-height: 1.6; }

.access-form { display: grid; gap: 14px; margin-top: 30px; }
.access-form input {
  width: 100%;
  padding: 15px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}
.access-form input:focus { outline: 3px solid rgba(81, 84, 182, .16); border-color: var(--indigo-mid); }
.access-form button, .quiet-button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 750;
}
.access-form button { padding: 15px 18px; color: #fff; background: var(--indigo-mid); }
.access-form button:hover { background: var(--indigo); }
.access-form button:disabled { cursor: wait; opacity: .65; }

.message { min-height: 1.4em; margin: 14px 0 0; font-size: .9rem; }
.message--error { color: #b42318; }

.selector-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.quiet-button { padding: 10px 16px; color: var(--indigo); background: #efeffb; }
.quiet-button:hover { background: #e2e2f6; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.choice-card {
  position: relative;
  min-height: 300px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.choice-card:hover, .choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--indigo-mid);
  box-shadow: 0 18px 44px rgba(40, 32, 100, .14);
  outline: none;
}
.choice-card--prototype { background: linear-gradient(145deg, #fff, #f1f2fb); }
.choice-card--v2 { background: linear-gradient(145deg, #f8f5ff, #eef9f6); }
.choice-number { position: absolute; top: 22px; right: 26px; color: rgba(40, 32, 100, .13); font-size: 4.2rem; font-weight: 900; }
.choice-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--indigo); background: rgba(81, 84, 182, .11); font-size: .75rem; font-weight: 750; }
.choice-card--v2 .choice-badge { color: #006b56; background: rgba(0, 168, 134, .12); }
.choice-card h2 { margin: 42px 0 12px; color: var(--indigo); font-size: 2rem; }
.choice-card p { max-width: 38ch; margin: 0; color: var(--muted); line-height: 1.65; }
.choice-action { position: absolute; left: 34px; bottom: 30px; color: var(--indigo-mid); font-weight: 800; }
.isolation-note { margin: 28px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .gateway-shell { padding: 18px; }
  .gateway-panel--access, .gateway-panel--selector { padding: 32px 24px; }
  .selector-heading { display: grid; }
  .quiet-button { justify-self: start; }
  .choice-grid { grid-template-columns: 1fr; }
}

/* Match the established Prototype login's indigo backdrop and compact card. */
body.access-active { background: linear-gradient(135deg, #5154b6, #3e3c90); }
.gateway-panel--access { width: min(400px, 100%); padding: 48px 40px; background: #fff; border: 0; border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.gateway-panel--access h1 { color: #0f0f19; font-size: 1.8rem; font-weight: 600; }
.gateway-panel--access .access-form { gap: 24px; margin-top: 24px; }
.gateway-panel--access .access-form input { padding: 16px 20px; border-radius: 8px; }
.gateway-panel--access .access-form button { padding: 16px 20px; border-radius: 8px; font-weight: 500; }
[hidden] { display: none !important; }
