:root {
  color-scheme: light;
  --zk-ink: #20284f;
  --zk-midnight: #243060;
  --zk-blue: #4b72d8;
  --zk-aqua: #3ac2c0;
  --zk-gold: #f7c84b;
  --zk-coral: #ff8c78;
  --zk-cloud: #f4f7ff;
  --nq-white: #FFFFFF;
  --zk-slate: #515d78;
  --zk-border: #d9deef;
  --nq-font-heading: "Nunito Sans", "Trebuchet MS", sans-serif;
  --nq-font-body: "Atkinson Hyperlegible", Arial, sans-serif;
  --zk-radius-lg: 2rem;
  --nq-radius-pill: 999px;
  --zk-shadow-card: 0 22px 70px rgb(12 18 57 / 28%);
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 12% 18%, rgb(247 200 75 / 26%), transparent 26rem),
    radial-gradient(ellipse at 86% 82%, rgb(58 194 192 / 24%), transparent 30rem),
    linear-gradient(135deg, #1d2857 0%, #334684 52%, #173d68 100%);
  color: var(--zk-ink);
  font-family: var(--nq-font-body);
  font-size: 1rem;
  line-height: 1.55;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 78%) 1px, transparent 1.6px), radial-gradient(rgb(255 220 117 / 72%) 1px, transparent 1.6px);
  background-position: 12px 18px, 48px 56px;
  background-size: 84px 84px, 117px 117px;
  content: "";
  opacity: .38;
  pointer-events: none;
}
.login-card {
  width: min(100%, 560px);
  padding: clamp(28px, 7vw, 56px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: var(--zk-radius-lg);
  background: linear-gradient(155deg, rgb(255 255 255 / 98%), rgb(255 249 232 / 98%));
  box-shadow: var(--zk-shadow-card);
}
.login-card::before {
  position: absolute;
  top: -120px;
  right: -105px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(58 194 192 / 22%), rgb(75 114 216 / 8%) 58%, transparent 70%);
  content: "";
  pointer-events: none;
}
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; text-decoration: none; }
.brand-mark {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid rgb(255 255 255 / 94%);
  border-radius: 50%;
  background: var(--zk-midnight);
  box-shadow: 0 5px 16px rgb(43 77 165 / 24%), inset 0 0 0 2px rgb(247 200 75 / 82%);
  overflow: hidden;
}
.brand-mark img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.brand-name {
  color: var(--zk-midnight);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -.055em;
}
.brand-kids { color: var(--zk-blue); }
.brand-learn { color: #c45a45; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 38px 0 12px;
  padding: 6px 12px;
  border: 1px solid rgb(75 114 216 / 14%);
  border-radius: var(--nq-radius-pill);
  background: #edf2ff;
  color: #435eb1;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
h1 { margin: 0 0 16px; color: var(--zk-ink); font-family: var(--nq-font-heading); font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2; }
a { color: var(--zk-blue); }
.login-copy, .privacy-note { color: var(--zk-slate); line-height: 1.65; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  margin: 10px 0 4px;
  padding: 13px 22px;
  border-radius: var(--nq-radius-pill);
  background: linear-gradient(100deg, #304ca6, #5143a4);
  color: var(--nq-white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 18px rgb(48 76 166 / 23%);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.button::after { content: "→"; font-size: 1.2em; line-height: 1; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(48 76 166 / 30%); filter: saturate(1.12); }
.button:focus-visible, button:focus-visible { outline: 3px solid var(--zk-blue); outline-offset: 3px; }
.access-message { min-height: 1.6em; margin: 20px 0 0; color: var(--zk-slate); font-size: .9rem; }
.access-message[data-state="denied"] { color: #8b432d; }
.language-row { margin: 12px 0 24px; }
.language-row button { padding: 0; border: 0; background: none; color: #435eb1; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.privacy-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--zk-border); font-size: .82rem; }
@media (max-width: 420px) {
  body { padding: 16px; }
  .login-card { padding: 28px 22px; }
  .brand { gap: 10px; }
  .brand-mark { width: 64px; height: 64px; }
  .brand-name { font-size: 1.12rem; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
