:root {
  --ink: #12242e;
  --mineral: #2e6574;
  --mist: #edf4f3;
  --paper: #fcfdfc;
  --saffron: #e7a83e;
  --line: #ccdcda;
  --muted: #607178;
  --danger: #934237;
  --display: "Bahnschrift SemiCondensed", "Arial Narrow", Arial, sans-serif;
  --body: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

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

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

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

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

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(330px, .82fr) minmax(430px, 1.18fr);
}

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

.trust-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(58vw, 680px);
  aspect-ratio: 1;
  right: min(-26vw, -210px);
  bottom: min(-25vw, -190px);
  border: clamp(42px, 7vw, 90px) solid rgba(237, 244, 243, .07);
  border-radius: 50%;
}

.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-lockup > span:last-child { display: grid; }
.brand-lockup strong { font: 600 1.35rem/1 var(--display); letter-spacing: .02em; }
.brand-lockup small {
  margin-top: 6px;
  color: #bcd0d1;
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--mineral);
}
.brand-mark svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-copy { max-width: 590px; margin: auto 0; padding: 80px 0; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--mineral);
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.trust-panel .eyebrow { color: #9bc4c8; }
.trust-copy h1 {
  max-width: 520px;
  margin: 0;
  font: 600 clamp(2.45rem, 5vw, 5.2rem)/.96 var(--display);
  letter-spacing: -.025em;
}
.trust-copy > p:last-child {
  max-width: 520px;
  margin: 30px 0 0;
  color: #c6d6d7;
  font-size: clamp(.94rem, 1.3vw, 1.08rem);
}

.boundary-note {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  max-width: 490px;
  padding-top: 21px;
  border-top: 1px solid rgba(204, 220, 218, .28);
}
.boundary-note span {
  position: relative;
  height: 20px;
  margin-top: 2px;
  border-top: 2px solid var(--saffron);
}
.boundary-note span::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
}
.boundary-note p { margin: 0; color: #c6d6d7; font-size: .76rem; }
.boundary-note strong { display: block; color: white; }

.login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(26px, 6vw, 96px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--mist);
  background-size: 44px 44px;
}

.login-card {
  width: min(100%, 510px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--mineral);
  background: rgba(252, 253, 252, .98);
  box-shadow: 0 20px 55px rgba(18, 36, 46, .12);
}
.login-card h2 {
  margin: 0;
  font: 600 clamp(1.8rem, 3vw, 2.6rem)/1.04 var(--display);
  letter-spacing: -.015em;
}
.form-intro { margin: 14px 0 30px; color: var(--muted); font-size: .88rem; }

form { display: grid; }
label { margin-bottom: 7px; font-size: .76rem; font-weight: 750; }
.secret-field { position: relative; }
.secret-field input {
  width: 100%;
  min-height: 50px;
  padding: 10px 58px 10px 13px;
  border: 1px solid var(--mineral);
  border-radius: 4px;
  background: white;
  font-family: var(--mono);
  letter-spacing: .055em;
}
.secret-field input:hover { border-color: var(--mineral); }
.secret-field input:focus { border-color: var(--mineral); }
.secret-field span {
  position: absolute;
  top: 50%;
  right: 13px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font: 700 .65rem var(--mono);
  transform: translateY(-50%);
}
.field-hint { margin: 8px 0 0; color: var(--muted); font-size: .7rem; }
.form-error {
  margin: 16px 0 0;
  padding: 11px 12px;
  border-left: 4px solid var(--danger);
  background: #fff6f5;
  color: var(--danger);
  font-size: .76rem;
}
.form-error[hidden] { display: none; }

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 20px;
  padding: 10px 15px;
  border: 1px solid var(--mineral);
  border-radius: 4px;
  background: var(--mineral);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
button:hover { background: #244f5b; }
button:disabled { cursor: wait; opacity: .64; }
button i { font: 400 1.35rem/1 var(--body); }

.support-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .69rem;
}

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .trust-panel { min-height: auto; padding: 24px 22px 30px; }
  .trust-copy { padding: 54px 0 40px; }
  .trust-copy h1 { max-width: 460px; font-size: clamp(2.35rem, 12vw, 4rem); }
  .trust-copy > p:last-child { margin-top: 22px; }
  .boundary-note { display: none; }
  .login-panel { place-items: start center; padding: 24px 14px 48px; }
  .login-card { padding: 30px 22px 34px; }
}

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