/* Family-code screen (assets/login.js). Same look as the old English Quest code screen. */
.login { min-height: 100dvh; max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px;
  padding: calc(16px + env(safe-area-inset-top, 0)) 16px calc(24px + env(safe-area-inset-bottom, 0)); }
.login[hidden] { display: none; }
.login .code-top { text-align: center; display: flex; flex-direction: column; align-items: center; }
.login .glass { width: 64px; height: 64px; color: var(--accent); margin-bottom: 8px; animation: peek 3s ease-in-out infinite; }
@keyframes peek { 50% { transform: rotate(-12deg) translateX(-4px); } }
.login h1 { font-size: 26px; }
.login .sub { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
.login .dots { display: flex; gap: 16px; margin: 18px 0 6px; }
.login .dots i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); transition: background .12s; }
.login .dots i.on { background: var(--accent); }
.login .msg { height: 3.2em; margin: 4px 0 0; font-size: 15px; color: var(--muted); max-width: 300px; }
.login .msg.bad { color: var(--bad); font-weight: 700; }
.login.shake .dots { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.login .pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(100%, 340px); }
.login .pad button { height: 72px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); font: 800 30px "Nunito", sans-serif; }
.login .pad button:active { transform: scale(.96); }
.login .pad .soft { font: 700 18px "Mali", var(--font); color: var(--muted); }
.login .who { display: grid; gap: 12px; width: min(100%, 340px); }
.login .big { height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font: 700 22px "Mali"; }
