:root {
  color-scheme: light;
  --ink: #16332d;
  --muted: #5e716a;
  --primary: #176b5b;
  --primary-dark: #0b5144;
  --mint: #bceCDD;
  --wash: #eef7f2;
  --paper: #ffffff;
  --line: #d6e4dc;
  --danger: #a23c2e;
  --shadow: 0 26px 80px rgba(22, 51, 45, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 9%, rgba(188, 236, 221, .9), transparent 31rem),
    radial-gradient(circle at 88% 92%, rgba(255, 218, 209, .56), transparent 28rem),
    #f7faf7;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 22px;
  width: min(100% - 32px, 620px);
  margin: 0 auto;
  padding: 42px 0 26px;
}

.card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(214, 228, 220, .9);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 52px);
}

.brand-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 21px;
  background: var(--mint);
  transform: rotate(-4deg);
}

.brand-mark::before {
  content: "";
  width: 28px;
  height: 25px;
  border: 4px solid var(--primary);
  border-top: 0;
  border-radius: 3px 3px 8px 8px;
  transform: rotate(4deg);
}

.brand-mark span {
  position: absolute;
  width: 29px;
  height: 29px;
  border-left: 4px solid var(--primary);
  border-top: 4px solid var(--primary);
  transform: translateY(-9px) rotate(49deg);
  border-radius: 4px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.note, .status {
  margin-top: 24px;
  padding: 15px 17px;
  border-radius: 16px;
  background: var(--wash);
  color: var(--muted);
  line-height: 1.45;
}

.status[data-kind="success"] { background: #e2f5eb; color: #145943; }
.status[data-kind="error"] { background: #fff0ec; color: var(--danger); }

form { margin-top: 26px; display: grid; gap: 17px; }
label { display: grid; gap: 8px; font-weight: 650; }

input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #aebfb6;
  border-radius: 13px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23, 107, 91, .13); }

button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  padding: 0 20px;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

button:hover { background: var(--primary-dark); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 4px solid rgba(23, 107, 91, .22); outline-offset: 2px; }
button:disabled { opacity: .58; cursor: wait; }

.hint { margin: -8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hidden { display: none !important; }

.spinner {
  width: 23px;
  height: 23px;
  display: inline-block;
  vertical-align: -5px;
  margin-right: 9px;
  border: 3px solid rgba(23, 107, 91, .2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

footer { color: #718078; text-align: center; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .shell { width: min(100% - 20px, 620px); padding-top: 16px; }
  .card { border-radius: 25px; }
  .lead { font-size: 16px; }
}

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