:root {
  --primary: #6f42c1;
  --primary-dark: #5f35aa;
  --accent: #9b6dff;
  --ink: #1e1b2e;
  --muted: #6f668c;
  --line: #e4dcf6;
}

* { box-sizing: border-box; }

body.kids-auth-page {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(111, 66, 193, 0.14), transparent 34%),
    radial-gradient(circle at 92% 84%, rgba(155, 109, 255, 0.16), transparent 35%),
    linear-gradient(145deg, #f7f4ff 0%, #f3eeff 60%, #ffffff 100%);
  min-height: 100vh;
}

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }

.auth-card {
  width: min(1180px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(45, 29, 84, 0.18);
}

.auth-form-pane { padding: 30px; }

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}

.auth-brand__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 22px rgba(111, 66, 193, 0.35);
}

.auth-brand__text { color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.auth-form-wrap { max-width: 560px; }

.auth-eyebrow {
  margin: 0 0 7px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  font-weight: 700;
}

.auth-form-wrap h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.45vw, 2.1rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.auth-lead { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; max-width: 50ch; }
.form-label { font-weight: 650; font-size: 0.88rem; margin-bottom: 7px; color: #2f2a43; }

.form-control, .form-select {
  min-height: 46px;
  border-color: #d8cbf4;
  border-radius: 12px;
  padding-inline: 12px;
  font-size: 0.93rem;
}

.form-control:focus, .form-select:focus {
  border-color: rgba(111, 66, 193, 0.55);
  box-shadow: 0 0 0 4px rgba(111, 66, 193, 0.15);
}

.toggle-pass { border-radius: 0 12px 12px 0; }
.auth-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.forgot-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
}

.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  min-height: 46px;
  font-weight: 700;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(111, 66, 193, 0.32);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-auth:hover {
  color: #fff;
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(111, 66, 193, 0.38);
}
.auth-footnote { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.auth-footnote a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.auth-footnote a:hover { text-decoration: underline; }

.auth-media-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  color: #efe9ff;
  background: linear-gradient(145deg, #24153f 0%, #3a2466 58%, #5f35aa 100%);
}

.auth-media-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 109, 255, 0.24), transparent 36%),
    radial-gradient(circle at 78% 86%, rgba(111, 66, 193, 0.28), transparent 40%);
  pointer-events: none;
}

.auth-media-content, .auth-media-image-wrap { position: relative; z-index: 1; }

.auth-media-content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-media-content p { margin: 10px 0 0; color: rgba(239, 233, 255, 0.88); font-size: 0.94rem; max-width: 44ch; }

.feature-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1e8ff;
  border: 1px solid rgba(208, 191, 248, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.auth-media-image-wrap {
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(208, 191, 248, 0.35);
  box-shadow: 0 16px 30px rgba(21, 11, 38, 0.4);
}

.auth-media-image {
  width: 100%;
  display: block;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991.98px) {
  .auth-shell { padding: 14px; }
  .auth-card { border-radius: 16px; }
  .auth-form-pane, .auth-media-pane { padding: 20px; }
  .auth-media-image { height: 240px; }
}
