:root {
  color-scheme: light;
  --navy: #121643;
  --navy-soft: #1d245f;
  --yellow: #f8d448;
  --yellow-dark: #d7ad09;
  --ink: #171a2f;
  --muted: #62677d;
  --surface: #ffffff;
  --line: #dfe2ec;
  --danger: #b42318;
  --success: #157347;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 15%, rgba(248, 212, 72, .28), transparent 24rem),
    linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
}

.shell {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(22rem, 34rem);
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
  background: var(--navy);
}

.brand-panel::before,
.brand-panel::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: var(--yellow);
}

.brand-panel::before { width: 20rem; height: 20rem; top: -11rem; right: -7rem; opacity: .95; }
.brand-panel::after { width: 9rem; height: 9rem; bottom: 4rem; left: -5rem; opacity: .18; }

.brand,
.brand-copy,
.brand-footer { position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: .75rem;
  color: var(--navy);
  background: var(--yellow);
  font-size: 1.25rem;
}

.brand-copy { max-width: 42rem; margin: auto 0; }
.eyebrow { color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy h1 { max-width: 12ch; margin: .75rem 0 1.25rem; font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.045em; }
.brand-copy p { max-width: 38rem; color: #d8daea; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; }
.brand-footer { color: #afb3cc; font-size: .85rem; }

.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(14px);
}

.card { width: 100%; max-width: 28rem; }
.card h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.035em; }
.lead { margin: .85rem 0 2rem; color: var(--muted); line-height: 1.6; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .45rem; font-size: .88rem; font-weight: 750; }
.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--navy-soft); outline: 0; box-shadow: 0 0 0 4px rgba(29, 36, 95, .12); }
.field-help { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.turnstile { min-height: 4.5rem; margin: 1rem 0; }

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .75rem;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 12px 24px rgba(18, 22, 67, .12);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform .15s, background .15s;
}
.button:hover { background: #ffdf5a; transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(18, 22, 67, .4); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.links { display: flex; justify-content: center; margin-top: 1.35rem; }
.links a { color: var(--navy-soft); font-weight: 750; text-underline-offset: .2rem; }
.message { min-height: 1.5rem; margin: 1rem 0 0; color: var(--danger); font-size: .9rem; line-height: 1.5; text-align: center; }
.message.success { color: var(--success); }
.hidden { display: none !important; }
.logo { display: block; width: 10.5rem; height: auto; margin: 2rem auto 0; opacity: .72; }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 15rem; padding: 1.5rem; }
  .brand-copy { margin-top: 3rem; }
  .brand-copy h1 { max-width: 16ch; font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .brand-copy p, .brand-footer { display: none; }
  .form-panel { align-items: flex-start; padding: 2.2rem 1.25rem 3rem; }
}

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