:root {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #52606d;
  --rule: #d7dce3;
  --blue: #005a9c;
  --blue-dark: #004477;
  --focus: #f28e2b;
  --success: #277a4b;
  --danger: #a93232;
  --danger-soft: #fff3f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-height: 100vh; }
button, input { font: inherit; }

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(90deg, transparent 0 calc(50% - .5px), rgba(0, 90, 156, .055) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    var(--paper);
}

.access-card {
  width: min(100%, 430px);
  padding: 30px 32px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(17, 24, 39, .08);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--blue); border-radius: 7px;
  color: var(--blue); font-weight: 800; font-size: 14px;
}
.brand-rule { width: 36px; height: 2px; background: var(--blue); }
.brand-name, .brand-context { display: block; }
.brand-name { font-weight: 760; letter-spacing: -.02em; line-height: 1.05; }
.brand-context { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

.step-heading { margin: 30px 0 22px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.lede { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.auth-step { display: grid; gap: 12px; }
[hidden] { display: none !important; }
label { font-size: 13px; font-weight: 670; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid #b9c2cc; border-radius: 7px;
  background: #fff; color: var(--ink); outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(242, 142, 43, .35);
  outline-offset: 2px;
  border-color: var(--focus);
}
input::placeholder { color: #8793a1; }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.reveal {
  position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 8px;
  border: 0; border-radius: 5px; background: transparent; color: var(--blue);
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.code { text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .34em; font-size: 19px; font-weight: 700; }
.primary {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 43px; margin-top: 3px; padding: 0 16px;
  border: 1px solid var(--blue); border-radius: 7px;
  background: var(--blue); color: #fff; font-weight: 720; font-size: 13px;
  text-decoration: none; cursor: pointer;
}
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary:disabled { cursor: wait; opacity: .6; }
.text-action {
  justify-self: center; padding: 5px 7px; border: 0; background: transparent;
  color: var(--blue); font-size: 12px; font-weight: 670; cursor: pointer;
}
.identity { margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.identity strong { color: var(--ink); overflow-wrap: anywhere; }
.hint { margin: -3px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.status { margin: -6px 0 16px; padding: 10px 12px; border: 1px solid #e3b3ad; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 12px; line-height: 1.45; }
.status.success { border-color: #acd2bc; background: #f0f8f3; color: var(--success); }
.signed-in { text-align: center; }
.signed-in p { margin: 0 0 2px; font-size: 13px; }
.success-mark { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; background: #eaf5ee; color: var(--success); font-weight: 800; }
footer { margin-top: 27px; padding-top: 16px; border-top: 1px solid var(--rule); color: #768391; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 520px) {
  .access-shell { place-items: start center; padding: 20px; background: var(--paper); }
  .access-card { padding: 25px 22px 20px; border-radius: 11px; box-shadow: 0 10px 35px rgba(17, 24, 39, .06); }
  .step-heading { margin-top: 26px; }
  h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
