/* The public site's sign-in page (2026-11-02, Alex: "more attractive, a larger Mythic Math font"). Added by
   tools/build_site.js on top of game/login.html, which stays as it is for the private site. The look follows the
   illustrated-world sign-in screens of kids' games and the home page's night sky: a big glowing logo with the
   starter creatures on one side, the form in a friendly card on the other (stacked on a phone). */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(/site/lilita-one-latin.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 500 900; font-display: swap; src: url(/site/nunito-latin-wght.woff2) format("woff2"); }
:root { --night: #1a1446; --dusk: #3b2a8a; --violet: #6a4bd8; --gold: #ffd23f; --ink: #1d2340; --soft: #5a6285; --mint: #3fbf7f; --mint-d: #23935c; --line: #e3e6f3; }
html, body { min-height: 100%; }
body {
  display: block; padding: 0; color: var(--ink); font: 600 17px/1.45 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden;
  background:
    radial-gradient(1100px 520px at 50% 115%, rgba(255, 179, 71, .5), transparent 60%),
    radial-gradient(700px 420px at 88% 8%, rgba(91, 184, 255, .32), transparent 70%),
    linear-gradient(170deg, var(--night) 0%, var(--dusk) 55%, var(--violet) 100%) fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .85; animation: twinkle 6s ease-in-out infinite alternate;
  background-image:
    radial-gradient(2px 2px at 8% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 22% 42%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 36% 12%, #ffe9a8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 26%, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 72% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 34%, #ffe9a8 50%, transparent 51%),
    radial-gradient(2px 2px at 14% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 60%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 96% 62%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 66% 48%, #ffe9a8 50%, transparent 51%);
}
@keyframes twinkle { to { opacity: .45; } }

/* the way back to the website, always visible */
.backsite { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin: 16px; padding: 9px 18px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .35); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; backdrop-filter: blur(4px); }
.backsite:hover, .backsite:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }

.login-wrap { position: relative; z-index: 1; width: min(1100px, 100% - 32px); margin: 0 auto; min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 8px 0 48px; }
.login-hero { color: #fff; text-align: center; }
.login-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: .92; font-family: "Lilita One", Nunito, sans-serif; font-weight: 400; letter-spacing: .5px; }
.login-logo span:first-child { font-size: clamp(64px, 9vw, 116px); color: var(--gold); -webkit-text-stroke: 10px #2a2070; paint-order: stroke fill; text-shadow: 0 8px 0 rgba(0, 0, 0, .22), 0 0 46px rgba(255, 210, 63, .45); }
.login-logo span:last-child { font-size: clamp(40px, 5.6vw, 72px); color: #fff; -webkit-text-stroke: 8px #2a2070; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(0, 0, 0, .22); margin-top: 2px; }
.login-tag { margin: 16px auto 0; max-width: 26em; font-size: 19px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.login-stage { position: relative; width: min(100%, 440px); aspect-ratio: 16 / 10; margin: 18px auto 0; }
.login-stage .glow { position: absolute; left: 20%; right: 20%; top: 6%; bottom: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .55), rgba(255, 107, 61, .16) 55%, transparent 70%); filter: blur(6px); }
.login-stage img { position: absolute; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
.login-stage .m-a { width: 46%; left: 27%; top: 0; animation-duration: 5.5s; }
.login-stage .m-b { width: 27%; left: 2%; top: 40%; animation-delay: -1.5s; }
.login-stage .m-c { width: 25%; right: 3%; top: 42%; animation-delay: -3s; }
.login-stage .m-d { width: 20%; right: 10%; top: -2%; animation-delay: -.8s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

/* the form side: the sign-in page's own markup, restyled */
main { width: 100%; max-width: 440px; justify-self: center; }
main > h1, main > .tag { display: none; }
.card { border: 0; border-radius: 28px; padding: 26px 26px 22px; background: #fff; box-shadow: 0 10px 0 rgba(20, 16, 70, .45), 0 24px 60px rgba(0, 0, 0, .35); }
h2 { font-family: "Lilita One", Nunito, sans-serif; font-weight: 400; font-size: 30px; color: #2a2070; letter-spacing: .3px; margin: 0 0 14px; }
label { font-size: 15px; font-weight: 800; color: var(--ink); }
label small { font-weight: 600; }
input[type=text], input[type=password], input[type=email] { font-family: inherit; font-size: 18px; border: 2px solid var(--line); background: #f7f8fd; border-radius: 14px; padding: 11px 14px; transition: border-color .15s, background .15s; }
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(106, 75, 216, .18); }
button { font-family: "Lilita One", Nunito, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: .4px; background: linear-gradient(#5fd690, var(--mint)); box-shadow: 0 6px 0 var(--mint-d), 0 12px 20px rgba(35, 147, 92, .3); padding: 13px 22px; }
button:active { box-shadow: 0 2px 0 var(--mint-d); }
.link { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 15px; color: var(--violet); background: none; box-shadow: none; padding: 4px; letter-spacing: 0; }
.links { margin-top: 14px; }
.check input { accent-color: var(--violet); }
.code { border-radius: 16px; }
.privacy { color: rgba(255, 255, 255, .78); text-shadow: none; font-size: 13px; margin-top: 18px; }
.privacy a { color: #fff; }

@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; gap: 6px; min-height: 0; padding-top: 0; }
  .login-stage { width: min(100%, 300px); margin-top: 8px; }
  .login-tag { font-size: 17px; margin-top: 10px; }
  .login-logo span:first-child { -webkit-text-stroke-width: 8px; }
  .login-logo span:last-child { -webkit-text-stroke-width: 6px; }
}
@media (max-width: 420px) {
  .backsite { margin: 12px; font-size: 15px; padding: 8px 14px; }
  .card { padding: 22px 18px 18px; }
  .login-stage { width: min(100%, 240px); }
  /* 2026-11-09: on a phone the logo, tag line and creatures filled the first screen and the form started below it.
     The picture and tag line go, and the logo shrinks, so the first box to type in is on the first screen. */
  .login-stage, .login-tag { display: none; }
  .login-logo span:first-child { font-size: 46px; -webkit-text-stroke-width: 6px; }
  .login-logo span:last-child { font-size: 30px; -webkit-text-stroke-width: 5px; }
  .login-hero { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { body::before, .login-stage img { animation: none; } }
