:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #142033;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 40px, 620px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 0;
}

.brand {
  margin-bottom: 30px;
  color: #173b70;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.card {
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid #e0e7f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(28, 52, 87, 0.06);
}

.eyebrow {
  margin: 0 0 18px;
  color: #3466a4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.description {
  margin: 22px 0 0;
  color: #526074;
  font-size: 17px;
  line-height: 1.6;
}

form { margin-top: 36px; }

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 650;
}

input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #aebbd0;
  border-radius: 8px;
  background: #fff;
  color: #142033;
  font: inherit;
  font-size: 16px;
}

input:focus-visible,
button:focus-visible,
.back-link:focus-visible {
  outline: 3px solid #82afe8;
  outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: #b93d46; }

.code-input {
  min-height: 64px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 0.25em;
  text-align: center;
}

.field-error {
  margin: 10px 0 0;
  color: #a52733;
  font-size: 14px;
  line-height: 1.5;
}

button {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #173b70;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

button:hover { background: #214d8a; }

.note {
  margin: 25px 0 0;
  color: #68778b;
  font-size: 13px;
  line-height: 1.55;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  color: #173b70;
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .page { padding: 32px 0; }
  .brand { margin-bottom: 24px; }
  .card { border-radius: 12px; }
  .description { font-size: 16px; }
}
