:root {
  --night: #102d32;
  --deep-petrol: #173e43;
  --petrol: #245a60;
  --aqua: #78aeb1;
  --sterile: #eef5f3;
  --paper: #fcfdfc;
  --ink: #142f33;
  --muted: #5c7072;
  --line: #c8d9d6;
  --signal: #d39a37;
  --danger: #923b36;
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", Arial, sans-serif;
  --body: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --utility: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  color: var(--ink);
  background: var(--sterile);
  font: 16px/1.5 var(--body);
}

body { min-height: 100vh; margin: 0; }

button,
input { color: inherit; font: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.access-shell {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(470px, 1.14fr);
  min-height: 100vh;
}

.trust-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  background: var(--night);
  color: white;
}

.trust-panel::before,
.trust-panel::after {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  width: min(38%, 170px);
  height: 1px;
  background: rgba(120, 174, 177, .26);
  content: "";
}

.trust-panel::before { top: 35%; }
.trust-panel::after { top: calc(35% + 12px); width: min(24%, 106px); }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup > span:last-child { display: grid; }

.brand-lockup strong {
  font: 600 1.34rem/1 var(--display);
  letter-spacing: .025em;
}

.brand-lockup small {
  margin-top: 6px;
  color: #b8d1d1;
  font: 700 .66rem/1 var(--utility);
  letter-spacing: .14em;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  background: var(--aqua);
  content: "";
}

.brand-mark::before { width: 17px; height: 3px; }
.brand-mark::after { width: 3px; height: 17px; }
.brand-mark i { width: 28px; height: 28px; border: 1px solid rgba(120, 174, 177, .45); border-radius: 50%; }

.trust-copy {
  max-width: 600px;
  margin: auto 0;
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--petrol);
  font: 700 .68rem/1 var(--utility);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.trust-panel .eyebrow { color: var(--aqua); }

.trust-copy h1 {
  max-width: 560px;
  margin: 0;
  font: 600 clamp(2.5rem, 5vw, 5rem)/.97 var(--display);
  letter-spacing: -.025em;
}

.trust-copy > p:last-child {
  max-width: 510px;
  margin: 28px 0 0;
  color: #c6d9d9;
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
}

.privacy-boundary {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  max-width: 520px;
  padding-top: 20px;
  border-top: 1px solid rgba(200, 217, 214, .27);
}

.privacy-boundary span {
  position: relative;
  height: 18px;
  margin-top: 3px;
  border-top: 2px solid var(--signal);
}

.privacy-boundary span::after {
  position: absolute;
  top: -5px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.privacy-boundary p { margin: 0; color: #c6d9d9; font-size: .76rem; }
.privacy-boundary strong { display: block; color: white; }

.access-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(24px, 6vw, 88px);
  background: var(--sterile);
}

.access-card {
  width: min(100%, 570px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--petrol);
  background: var(--paper);
  box-shadow: 0 22px 58px rgba(16, 45, 50, .12);
}

.card-header,
.form-step,
.card-footer,
.login-message { margin-right: clamp(24px, 5vw, 52px); margin-left: clamp(24px, 5vw, 52px); }

.card-header { padding-top: clamp(28px, 5vw, 48px); }

.card-header h2 {
  margin: 0;
  font: 600 clamp(1.9rem, 3vw, 2.7rem)/1 var(--display);
  letter-spacing: -.012em;
}

.access-sequence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 30px 0 0;
  padding: 0 clamp(24px, 5vw, 52px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.access-sequence li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-width: 0;
  padding: 17px 10px 17px 0;
  color: var(--muted);
}

.access-sequence li + li { padding-left: 18px; border-left: 1px solid var(--line); }

.access-sequence li::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.access-sequence li.is-current { color: var(--ink); }
.access-sequence li.is-current::after { background: var(--signal); }
.access-sequence li.is-complete { color: var(--petrol); }
.access-sequence li.is-complete::after { background: var(--aqua); }

.step-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 700 .64rem/1 var(--utility);
}

.is-current .step-index { border-color: var(--signal); background: #fff6e6; color: #724b09; }
.is-complete .step-index { border-color: var(--petrol); background: var(--petrol); color: white; }
.access-sequence strong { display: block; font-size: .78rem; }
.access-sequence small { display: block; margin-top: 3px; font-size: .62rem; line-height: 1.3; }

.login-message {
  margin-top: 22px;
  margin-bottom: 0;
  padding: 11px 13px;
  border-left: 4px solid var(--petrol);
  background: #edf6f5;
  color: var(--deep-petrol);
  font-size: .78rem;
}

.login-message[data-kind="error"] {
  border-left-color: var(--danger);
  background: #fff4f3;
  color: var(--danger);
}

.form-step { padding-top: 28px; }

.form-step h3 {
  margin: 0;
  font: 600 1.35rem/1.1 var(--display);
}

.step-intro { margin: 10px 0 24px; color: var(--muted); font-size: .82rem; }

form { display: grid; gap: 18px; }

.field-group { display: grid; }

label { margin-bottom: 7px; font-size: .75rem; font-weight: 750; }

input {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid #789597;
  border-radius: 3px;
  background: white;
}

input:hover,
input:focus { border-color: var(--petrol); }

.code-input {
  max-width: 250px;
  font: 600 1.45rem/1 var(--utility);
  letter-spacing: .28em;
}

.recovery-input {
  font-family: var(--utility);
  letter-spacing: .06em;
}

.field-hint { margin: 7px 0 0; color: var(--muted); font-size: .68rem; }

.primary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 15px;
  border: 1px solid var(--petrol);
  border-radius: 3px;
  background: var(--petrol);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.primary-action:hover { background: var(--deep-petrol); }
.primary-action:disabled { cursor: wait; opacity: .62; }
.primary-action i { font: 700 .72rem/1 var(--utility); }

.text-action,
.restart-action {
  min-height: 42px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--petrol);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.text-action { margin-top: 17px; }
.restart-action { margin-top: 24px; color: var(--muted); font-weight: 600; }
.text-action:hover,
.restart-action:hover { color: var(--night); }

.card-footer {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  margin-top: 28px;
  padding: 18px 0 clamp(28px, 5vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.card-footer span { height: 14px; margin-top: 3px; border-top: 2px solid var(--aqua); }
.card-footer p { margin: 0; font-size: .68rem; }

@media (max-width: 780px) {
  .access-shell { grid-template-columns: 1fr; }
  .trust-panel { min-height: auto; padding: 24px 22px 30px; }
  .trust-panel::before,
  .trust-panel::after { display: none; }
  .trust-copy { padding: 48px 0 36px; }
  .trust-copy h1 { font-size: clamp(2.2rem, 11vw, 3.8rem); }
  .privacy-boundary { display: none; }
  .access-panel { place-items: start center; padding: 22px 13px 46px; }
}

@media (max-width: 460px) {
  .access-sequence { padding-right: 18px; padding-left: 18px; }
  .access-sequence li { grid-template-columns: 30px 1fr; gap: 7px; }
  .access-sequence li + li { padding-left: 10px; }
  .access-sequence small { display: none; }
  .code-input { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
