@font-face {
  font-family: "Ringold Sans";
  font-display: swap;
  src: url("/fonts/Ringold_Sans.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans Variable";
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/noto-sans-latin.woff2") format("woff2");
}

:root {
  --purple: #720bbb;
  --purple-dark: #53008c;
  --purple-deep: #2d004f;
  --purple-light: #dfb7ff;
  --orange: #ff6500;
  --orange-dark: #a14000;
  --surface: #fff7fe;
  --surface-low: #fbf0fe;
  --ink: #1c1420;
  --muted: #6b5c74;
  --border: #ecdef2;
  --font-header: "Ringold Sans", "Noto Sans Variable", sans-serif;
  --font-body: "Noto Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, var(--purple-deep) 0%, var(--purple-dark) 45%, var(--purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow-x: hidden;
}

/* soft brand glows in the background */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
.glow--a { width: 480px; height: 480px; background: var(--purple-light); top: -160px; left: -140px; }
.glow--b { width: 420px; height: 420px; background: var(--orange); bottom: -180px; right: -120px; opacity: .28; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.logo {
  height: auto;
  width: 200px;
  max-width: 60%;
  margin: 0 auto 28px;
  display: block;
}

.card {
  background: var(--surface);
  border-radius: 28px;
  padding: 36px 28px 32px;
  box-shadow: 0 24px 60px rgba(45, 0, 79, .35);
  text-align: left;
}

h1 {
  font-family: var(--font-header);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--purple-dark);
  text-align: center;
}

.lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

label {
  display: block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 18px 20px;
  font-family: var(--font-header);
  font-size: 1.6rem;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--purple-dark);
  background: var(--surface-low);
  border: 2px solid var(--border);
  border-radius: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: #c9b3d6; letter-spacing: .18em; }

input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(114, 11, 187, .15);
}

input[aria-invalid="true"] {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(255, 101, 0, .15);
}

.error {
  margin: 10px 0 0;
  color: var(--orange-dark);
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
}

button {
  width: 100%;
  margin-top: 20px;
  padding: 18px 24px;
  font-family: var(--font-header);
  font-size: 1.15rem;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--orange-dark);
  transition: transform .1s ease, box-shadow .1s ease, background-color .15s ease;
}

button:hover { background: #f05e00; }

button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--orange-dark);
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

button[disabled] { opacity: .7; cursor: default; }

.foot {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
