:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  color: #e5eefb;
  background: radial-gradient(circle at 50% 20%, #172554, #07111f 55%, #020617);
}

main {
  width: min(92vw, 620px);
  padding: 38px;
  border: 1px solid #334155;
  border-radius: 18px;
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 6vw, 42px);
}

p {
  color: #b8c7db;
  line-height: 1.7;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: #dbeafe;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #475569;
  border-radius: 9px;
  color: #f8fafc;
  background: #0f172a;
  font: inherit;
}

input:focus {
  border-color: #60a5fa;
  outline: 2px solid rgba(96, 165, 250, .28);
}

button {
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: #2563eb;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.error {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid #b91c1c;
  border-radius: 9px;
  color: #fecaca;
  background: rgba(127, 29, 29, .35);
}

ul {
  margin: 24px 0 0;
  padding-left: 1.25rem;
  color: #94a3b8;
  line-height: 1.7;
}

small {
  display: block;
  margin-top: 16px;
  color: #64748b;
}

@media (max-width: 480px) {
  main {
    padding: 26px 22px;
    border-radius: 14px;
  }
}
