:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #eef4ff;
  background: #0a121f;
  font-synthesis: none;
  --muted: #aebed3;
  --line: #2a3e58;
  --accent: #b2f4df;
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  background: radial-gradient(ellipse at 52% 0%, #193047 0%, transparent 58%);
}

.layout {
  width: min(calc(100% - 2rem), 35rem);
  margin-inline: auto;
  padding-block: clamp(2.75rem, 12vh, 7rem) 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.25rem .15rem;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: .035em;
}

.brand-mark {
  width: .85rem;
  height: .85rem;
  border: .15rem solid var(--accent);
  border-radius: .22rem;
  transform: rotate(45deg);
}

.panel {
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #111e30;
  box-shadow: 0 1.5rem 4rem #03081066;
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.intro, .instructions p {
  color: var(--muted);
  line-height: 1.6;
}

.intro { margin: 1rem 0 1.65rem; }

form { display: grid; gap: .75rem; }

label { font-size: .9rem; font-weight: 650; }

input, button {
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  font: inherit;
}

input {
  width: 100%;
  padding: .8rem 1rem;
  background: #0b1524;
  color: inherit;
}

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

button {
  padding: .7rem 1rem;
  border-color: transparent;
  background: var(--accent);
  color: #0e2527;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) { filter: brightness(1.1); }
button:disabled { cursor: wait; opacity: .75; }
:is(input, button):focus-visible { outline: 2px solid #d0e4ff; outline-offset: 3px; }

.feedback { margin: 1rem 0 0; color: var(--accent); line-height: 1.5; }
.feedback:empty { margin: 0; }
.feedback.error { color: #ffb9bf; }

.secondary {
  margin-top: .75rem;
  background: transparent;
  border-color: var(--line);
  color: #eef4ff;
}

.instructions { padding: 1.5rem .2rem 0; }
.instructions h2 { margin: 0 0 .4rem; font-size: 1rem; }
.instructions p { margin: 0; }
code { color: #d7e9ff; font-size: .95em; }
