:root {
  --navy: #0b152a;
  --ink: #10213d;
  --cream: #fff9f0;
  --red: #e94b5d;
  --green: #69ab75;
  --blue: #79c5dd;
  --yellow: #ffd36e;
  --muted: #687286;
  --line: #dfe5ea;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: radial-gradient(circle at 70% 12%, #79c5dd1f, transparent 26%), var(--cream); }
a { color: inherit; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px max(32px, calc((100% - 1240px) / 2)); color: white; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 10px; }
.brand img { width: 48px; height: 54px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; letter-spacing: -.02em; }
.brand small { color: #ffffff8f; font-size: 10px; }
.topbar-tools { display: flex; align-items: center; gap: 12px; }
.language-preview { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #ffffff33; border-radius: 10px; background: #ffffff0d; }
.language-preview span { min-width: 30px; padding: 5px 7px; border-radius: 7px; color: #ffffff6e; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.language-preview .is-current { color: var(--navy); background: var(--blue); }
.demo-label { margin: 0; padding: 9px 14px; border: 1px solid #79c5dd5c; border-radius: 999px; color: #e7faff; background: #79c5dd12; font-size: 12px; font-weight: 800; }
main { min-height: calc(100vh - 138px); display: grid; place-items: center; padding: 56px 24px; }
.login-shell { width: min(1160px, 100%); display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid #d9e0e6; border-radius: 34px; background: white; box-shadow: 0 28px 80px #10213d21; }
.story-panel { position: relative; min-height: 680px; padding: 78px; overflow: hidden; color: white; background: radial-gradient(circle at 85% 75%, #79c5dd25, transparent 30%), radial-gradient(circle at 15% 5%, #e94b5d1f, transparent 24%), var(--navy); }
.story-panel::after { content: ""; position: absolute; width: 430px; height: 430px; right: -210px; bottom: -220px; border: 1px solid #79c5dd45; border-radius: 50%; }
.eyebrow { margin: 0 0 20px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 500px; margin: 0; font-size: clamp(52px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; }
.intro { max-width: 540px; margin: 28px 0 42px; color: #ffffffb5; font-size: 18px; line-height: 1.65; }
.family-preview { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; max-width: 430px; margin-top: 14px; padding: 15px 18px; border: 1px solid #ffffff1f; border-radius: 18px; background: #ffffff0d; }
.preview-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: #69ab7530; font-size: 21px; }
.preview-icon.coral { background: #e94b5d2b; }
.family-preview > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.family-preview small { color: #ffffff82; }
.privacy-note { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 500px; margin-top: 42px; padding: 17px 19px; border-left: 3px solid var(--yellow); color: #ffffff9c; background: #ffffff0b; font-size: 13px; line-height: 1.5; }
.privacy-note strong { color: white; }
.login-card { align-self: center; padding: 62px 70px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.parent-tag, .safe-tag { padding: 7px 11px; border-radius: 9px; color: #27657d; background: #e2f4f9; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.safe-tag { color: #397046; background: #e8f4e9; }
h2 { margin: 30px 0 8px; font-size: 44px; letter-spacing: -.045em; }
.login-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.visual-field { display: grid; gap: 6px; min-height: 67px; margin-top: 14px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.visual-field small { color: var(--muted); font-size: 11px; font-weight: 800; }
.visual-field span { font-size: 15px; }
.visual-field.secret { position: relative; }
.visual-field.secret i { position: absolute; right: 15px; bottom: 17px; color: #8792a4; font-style: normal; }
.remember-row { display: flex; align-items: center; gap: 11px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.remember-row > span { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; color: white; background: var(--green); font-weight: 900; }
.remember-row p { margin: 0; }
.remember-row small { color: #9099a8; }
.demo-button { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 0 22px; border-radius: 16px; color: var(--navy); background: var(--yellow); font-weight: 900; box-shadow: 0 12px 30px #ffd36e38; }
.inactive-note { margin: 12px 0 26px !important; text-align: center; font-size: 11px; }
.back-link { display: block; width: fit-content; margin: auto; border-radius: 6px; color: #426176; font-size: 13px; font-weight: 800; text-decoration: none; }
.brand:focus-visible, .back-link:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.back-link:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
footer { min-height: 60px; display: grid; place-items: center; padding: 14px 24px; color: #ffffff80; background: #070f20; text-align: center; font-size: 11px; }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; }
  .story-panel { min-height: auto; padding: 58px; }
  .login-card { padding: 52px 58px; }
}

@media (max-width: 560px) {
  .topbar { min-height: 68px; padding: 8px 16px; }
  .brand img { width: 40px; height: 46px; }
  .brand small { display: none; }
  .topbar-tools { gap: 7px; }
  .language-preview span { min-width: 27px; padding: 4px 5px; }
  .demo-label { display: none; }
  main { min-height: 0; padding: 20px 12px 36px; }
  .login-shell { border-radius: 24px; }
  .story-panel { padding: 42px 26px 36px; }
  h1 { font-size: 47px; }
  .intro { margin: 22px 0 30px; font-size: 16px; }
  .family-preview { padding: 13px; }
  .privacy-note { margin-top: 28px; }
  .login-card { padding: 38px 20px 42px; }
  h2 { font-size: 38px; }
  .card-heading { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
