:root {
  color: #f0fbff;
  background: #03070e;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
  --ink: #eef9ff;
  --muted: #a8bdd2;
  --subtle: #7f96ab;
  --canvas: #03070e;
  --paper: #0a1220;
  --paper-strong: #10223b;
  --line: #20334d;
  --line-strong: #395a83;
  --accent: #66ddff;
  --violet: #7b86ff;
  --green: #4ce1ad;
  --danger: #ff8a98;
  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
  background:
    linear-gradient(rgb(102 221 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(102 221 255 / 7%) 1px, transparent 1px),
    radial-gradient(
      circle at 16% 12%,
      rgb(102 221 255 / 18%),
      transparent 28rem
    ),
    radial-gradient(
      circle at 84% 84%,
      rgb(76 225 173 / 10%),
      transparent 29rem
    ),
    var(--canvas);
  background-size:
    4rem 4rem,
    4rem 4rem,
    auto,
    auto,
    auto;
}

main {
  display: grid;
  width: min(100%, 64rem);
  min-height: 38rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 18%, rgb(102 221 255 / 11%), transparent 24%),
    radial-gradient(circle at 14% 84%, rgb(76 225 173 / 8%), transparent 26%),
    rgb(6 10 18 / 96%);
  box-shadow:
    0 2rem 6rem rgb(0 0 0 / 52%),
    inset 0 0 0 1px rgb(255 255 255 / 3%);
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
}

.login-intro,
.login-panel {
  display: flex;
  padding: clamp(2rem, 6vw, 4rem);
  flex-direction: column;
  justify-content: center;
}

.login-intro {
  position: relative;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background:
    radial-gradient(circle at 84% 14%, rgb(102 221 255 / 15%), transparent 22%),
    linear-gradient(145deg, rgb(102 221 255 / 8%), transparent 48%),
    linear-gradient(320deg, rgb(76 225 173 / 8%), transparent 50%);
}

.login-intro::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgb(102 221 255 / 12%);
  border-radius: 50%;
  box-shadow:
    0 0 0 3rem rgb(102 221 255 / 3%),
    0 0 0 6rem rgb(76 225 173 / 3%);
  content: "";
  pointer-events: none;
}

.login-wordmark {
  display: inline-flex;
  margin-bottom: 2.1rem;
  align-items: center;
  gap: 0.9rem;
}

.login-wordmark__sigil {
  position: relative;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(102 221 255 / 42%);
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgb(102 221 255 / 20%), transparent 44%),
    linear-gradient(315deg, rgb(76 225 173 / 16%), transparent 48%), #09111d;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 3%),
    0 0 1.6rem rgb(102 221 255 / 14%);
}

.login-wordmark__sigil::before {
  position: absolute;
  inset: 0.33rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0.65rem;
  content: "";
}

.login-wordmark__sigil span {
  position: absolute;
  width: 1.28rem;
  height: 0.16rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ef8ff, #51d8ff 60%, #f0feff);
  box-shadow: 0 0 0.8rem rgb(102 221 255 / 45%);
}

.login-wordmark__sigil span:nth-child(1) {
  transform: translateY(-0.4rem);
}

.login-wordmark__sigil span:nth-child(2) {
  width: 1.9rem;
}

.login-wordmark__sigil span:nth-child(3) {
  transform: translateY(0.4rem);
  width: 0.92rem;
}

.login-wordmark__copy {
  display: grid;
}

.login-wordmark__copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.login-wordmark__copy small {
  color: #86def8;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow,
.panel-kicker,
label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 1rem;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 8ch;
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1;
}

.intro {
  max-width: 30rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.login-steps {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.login-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgb(9 14 24 / 92%), rgb(7 11 19 / 96%));
}

.login-steps span {
  display: inline-flex;
  min-width: 2.25rem;
  justify-content: center;
  color: #81eaff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.login-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.access-note {
  display: flex;
  max-width: 28rem;
  margin-top: 2.25rem;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.access-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.25rem rgb(85 214 163 / 12%);
}

.login-panel {
  background:
    radial-gradient(circle at 100% 0%, rgb(102 221 255 / 8%), transparent 18%),
    linear-gradient(145deg, rgb(13 24 42 / 84%), rgb(6 11 20 / 92%));
}

.panel-copy {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.panel-copy--reset {
  color: #d7f5ff;
}

form {
  display: grid;
  margin-top: 2rem;
  gap: 1.15rem;
}

.login-hints {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--subtle);
  font-size: 0.76rem;
  line-height: 1.45;
}

.password-fallback {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.password-fallback summary {
  width: fit-content;
  cursor: pointer;
  color: #86def8;
}

.password-fallback form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.policy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.policy-check input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

input,
button {
  min-height: 3.2rem;
  font: inherit;
}

input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--radius-sm);
  background: rgb(7 11 20 / 78%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

input:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line-strong));
}

input:focus {
  border-color: var(--accent);
  background: #09131f;
  box-shadow:
    0 0 0 4px rgb(102 221 255 / 10%),
    0 0 0 1px rgb(102 221 255 / 16%) inset;
}

button {
  display: flex;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #06121a;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #8bf3d0);
  box-shadow:
    0 0.8rem 2rem rgb(102 221 255 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 30%);
  cursor: pointer;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  background: linear-gradient(135deg, #8bf3d0, #a0ebff);
  box-shadow: 0 1rem 2.5rem rgb(102 221 255 / 24%);
  transform: translateY(-0.1rem);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

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

.error {
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: #ffd2d7;
  border: 1px solid rgb(255 138 152 / 32%);
  border-radius: var(--radius-sm);
  background: rgb(255 138 152 / 10%);
  font-size: 0.82rem;
  line-height: 1.5;
}

.status {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(76 225 173 / 32%);
  border-radius: var(--radius-sm);
  background: rgb(76 225 173 / 10%);
  color: #d1f9e6;
  font-size: 0.82rem;
  line-height: 1.5;
}

.status[data-tone="success"] {
  border-color: rgb(76 225 173 / 42%);
  background: rgb(76 225 173 / 12%);
}

.error[data-tone="error"] {
  border-color: rgb(255 138 152 / 32%);
  background: rgb(255 138 152 / 10%);
}

@media (max-width: 48rem) {
  body {
    padding: 0;
    place-items: stretch;
  }

  main {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .login-intro {
    min-height: 40vh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-wordmark {
    margin-bottom: 1.3rem;
  }

  .login-panel {
    min-height: 60vh;
  }
}

@media (max-width: 24rem) {
  .login-intro,
  .login-panel {
    padding: 1.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  .login-steps li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c3cedd;
    --subtle: #aebdd0;
    --line: #60738e;
    --line-strong: #8ca0ba;
  }

  main,
  input {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  .login-wordmark__sigil span,
  .status-dot {
    forced-color-adjust: none;
  }

  main,
  input,
  button,
  .error {
    border: 1px solid CanvasText;
  }
}

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

  button:hover {
    transform: none;
  }
}
