@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plexmono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plexmono-med.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f2f1ec;
  --paper-raised: #fbfaf7;
  --ink: #141c2a;
  --ink-2: #4a5568;
  --ink-3: #7a8494;
  --hair: #d9d6cc;
  --hair-strong: #c7c3b6;
  --navy: #101a28;
  --navy-2: #182437;
  --navy-hair: #2a3850;
  --green: #0c7c53;
  --green-bright: #17a56f;
  --green-dim: #0a5c3f;
  --green-pale: #e7f2ec;
  --red: #a33a3a;
  --red-pale: #f7eaea;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input { font: inherit; }

a { color: inherit; }

::selection {
  background: var(--green);
  color: #fff;
}

.site-header {
  position: relative;
  z-index: 2;
  height: 66px;
  color: #fff;
  border-bottom: 1px solid var(--navy-hair);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  height: 66px;
  margin: 0 auto;
  padding: 0 32px;
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: auto;
  height: 34px;
}

.header-label,
.kicker,
.trust-label,
.footer-note {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.header-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #8fa0b8;
}

.header-label::before {
  width: .45rem;
  height: .45rem;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 .25rem rgb(23 165 111 / 12%);
  content: "";
}

.page-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(36rem, .95fr);
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(140 160 190 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(140 160 190 / 7%) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: radial-gradient(100% 100% at 20% 30%, #000 25%, transparent 78%);
  pointer-events: none;
}

.brand-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px clamp(32px, 8vw, 116px) 88px;
  color: #e8ecf4;
}

.brand-copy { max-width: 43rem; }

.kicker {
  margin: 0 0 18px;
  color: var(--green-bright);
  font-size: 13.5px;
  letter-spacing: .2em;
}

.brand-panel h1 {
  max-width: 11ch;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.2vw, 64px);
  font-stretch: expanded;
  font-weight: 640;
  letter-spacing: -.015em;
  line-height: 1.08;
  text-wrap: balance;
}

.brand-panel h1 span { color: var(--green-bright); }

.brand-lede {
  max-width: 34rem;
  margin: 26px 0 34px;
  color: #a9b6ca;
  font-size: 19px;
  line-height: 1.6;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 36rem;
  border: 1px solid var(--navy-hair);
  background: var(--navy-2);
}

.trust-item {
  min-height: 104px;
  padding: 22px 26px;
}

.trust-item + .trust-item { border-left: 1px solid var(--navy-hair); }

.trust-number {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
}

.trust-number span { color: var(--green-bright); }
.trust-label {
  color: #8195b0;
  font-size: 10.5px;
}

.footer-note {
  position: absolute;
  bottom: 32px;
  left: clamp(32px, 8vw, 116px);
  color: #5f718c;
  letter-spacing: .12em;
}

.auth-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 56px;
  background: var(--paper);
  border-left: 1px solid var(--navy-hair);
}

.auth-card {
  width: min(100%, 36rem);
  padding: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--hair-strong);
  border-top: 3px solid var(--green);
  box-shadow: 0 1.5rem 4rem rgb(16 26 40 / 10%);
}

.panel-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 640;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.intro {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hair-strong);
  border-radius: 0;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:hover { border-color: var(--ink-3); }

input:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(12 124 83 / 14%);
}

input::placeholder { color: #9aa2ad; }

button {
  min-height: 46px;
  padding: 14px 22px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background-color .15s, border-color .15s, transform .15s;
}

button::after {
  margin-left: .55rem;
  content: "→";
}

button:hover:not(:disabled) {
  background: #0a6947;
  border-color: #0a6947;
}

button:active:not(:disabled) { transform: translateY(1px); }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: .68;
}

.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--hair-strong);
}

.secondary:hover:not(:disabled) {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
}

.secondary::after { content: ""; }

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.75rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .55rem 1.2rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
  font-size: .86rem;
}

.page-links a {
  color: var(--green-dim, #0a5c3f);
  font-weight: 600;
  text-underline-offset: .2rem;
  text-decoration-thickness: 1px;
}

.page-links a:hover { color: var(--ink); }

.status {
  min-height: 0;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--green);
  font-size: .88rem;
}

.status:empty { margin: 0; }

.status:not(:empty) {
  padding: .7rem .8rem;
  background: var(--green-pale);
  border-left: 3px solid var(--green);
}

.status.error {
  color: #7f2525;
  background: var(--red-pale);
  border-left-color: var(--red);
}

.access-note {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: 1.5rem 0 0;
  color: var(--ink-3);
  font-size: .78rem;
  line-height: 1.5;
}

.access-note::before {
  flex: 0 0 auto;
  width: .45rem;
  height: .45rem;
  margin-top: .35rem;
  background: var(--green);
  content: "";
}

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; }

  .brand-panel {
    justify-content: flex-start;
    min-height: auto;
    padding: 64px 32px 56px;
  }

  .brand-panel h1 {
    max-width: 13ch;
    font-size: clamp(38px, 9vw, 56px);
  }

  .brand-lede { margin-bottom: 0; }
  .trust-grid, .footer-note { display: none; }

  .auth-panel {
    padding: 48px 32px 64px;
    border-top: 1px solid var(--navy-hair);
    border-left: 0;
  }

  .auth-card { width: min(100%, 32rem); }
}

@media (max-width: 520px) {
  .site-header-inner { padding-inline: 18px; }

  .wordmark img { height: 29px; }
  .header-label { font-size: .6rem; letter-spacing: .12em; }
  .page-shell { min-height: calc(100dvh - 66px); }

  .brand-panel {
    padding: 48px 18px 42px;
  }

  .brand-panel h1 { font-size: clamp(38px, 11vw, 48px); }
  .brand-lede { margin: 22px 0 0; font-size: 17px; }

  .auth-panel { padding: 32px 18px 48px; }
  .auth-card { padding: 24px; }
  .actions { grid-template-columns: 1fr; }
  .page-links { flex-direction: column; }
}

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