:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef3f9;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(39, 101, 241, 0.16), transparent 32rem),
    linear-gradient(145deg, #f7f9fc, #e8eef7);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.card {
  width: min(100%, 620px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(23, 32, 51, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(37, 52, 80, 0.14);
}

.brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: white;
  background: #2765f1;
  font-size: 31px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(39, 101, 241, 0.26);
}

.eyebrow {
  margin: 28px 0 8px;
  color: #2765f1;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 50ch;
  margin: 18px 0 34px;
  color: #5c687c;
  font-size: 17px;
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 54px;
  border-radius: 12px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #cbd5e4;
  padding: 0 16px;
  color: #172033;
  background: white;
  font-size: 19px;
  letter-spacing: 0.035em;
  outline: none;
}

input:focus {
  border-color: #2765f1;
  box-shadow: 0 0 0 4px rgba(39, 101, 241, 0.13);
}

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

button {
  border: 0;
  padding: 0 24px;
  color: white;
  background: #2765f1;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: #174fcf;
}

button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(39, 101, 241, 0.35);
  outline-offset: 3px;
}

.help,
.status,
details {
  font-size: 13px;
  line-height: 1.5;
}

.help {
  margin: 10px 0 0;
  color: #718096;
}

.status {
  min-height: 20px;
  margin: 9px 0 0;
  font-weight: 650;
}

.status[data-kind="error"] {
  color: #b12f2f;
}

.status[data-kind="pending"] {
  color: #2765f1;
}

.status[data-kind="info"] {
  color: #4f5e73;
}

details {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f1;
  color: #5c687c;
}

summary {
  color: #2d3b51;
  font-weight: 700;
  cursor: pointer;
}

details p {
  margin: 12px 0 0;
}

code {
  color: #174fcf;
}

@media (max-width: 560px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
