/* login.css – Startseite */
.login { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 44px; max-width: 1200px; }
.login-hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: .95; margin: 10px 0 14px; text-shadow: 4px 4px 0 var(--snow); }
.login-hero h1 em { font-style: normal; color: var(--red); display: block; animation: glow 2s steps(4) infinite; }
@keyframes glow { 50% { color: var(--red-d); } }
.lead { font-size: 19px; max-width: 56ch; background: var(--paper); padding: 10px 14px; box-shadow: var(--frame-thin); margin: 4px; }
.scene { margin: 22px 4px; height: 240px; position: relative; overflow: hidden; box-shadow: var(--frame), var(--drop); background-size: cover; background-position: center bottom; image-rendering: pixelated; }
.scene .s-item { position: absolute; bottom: 8%; transform: translateX(-50%); animation: rise .6s steps(6) both; }
.scene .s-item img.spr { width: 120px; height: 120px; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.scene .peek { position: absolute; right: 4%; bottom: -6px; animation: peek 5s steps(10) infinite; }
.scene .peek img.spr { width: 96px; height: 96px; }
@keyframes peek { 0%, 60%, 100% { transform: translateY(70px); } 70%, 90% { transform: translateY(0); } }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.how li { background: var(--paper); box-shadow: var(--frame), var(--drop); margin: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.how b { font-size: 20px; color: var(--red-d); }

.login-card form { display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.char-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.char-pick label { margin: 4px; cursor: pointer; background: var(--snow); box-shadow: var(--frame-thin); padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; text-align: center; }
.char-pick label img.spr { width: 64px; height: 80px; }
.char-pick label:hover img.spr { animation: hop .4s steps(3); }
.char-pick input { position: absolute; opacity: 0; pointer-events: none; }
.char-pick input:checked + label { background: var(--gold); }
.char-pick input:checked + label img.spr { animation: bob 1s steps(2) infinite; }
.char-pick input:focus-visible + label { outline: 4px solid var(--blue); outline-offset: 4px; }
.form-error { color: var(--red-d); font-weight: 700; }
#welcome-back { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 4px dashed #eadfca; }
#welcome-back[hidden] { display: none; }
.wb-row { display: flex; align-items: center; gap: 12px; }
.wb-row img.spr { width: 64px; height: 80px; animation: bob 1.4s steps(2) infinite; }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; padding-top: 20px; }
  .how { grid-template-columns: 1fr; }
  .char-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene .s-item img.spr { width: 72px; height: 72px; }
}
.wb-row svg.person { width: 52px; height: 80px; flex: none; }
.auth-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-tabs[hidden], [data-only][hidden] { display: none !important; }
.auth-tabs button { flex: 1 1 auto; padding: 8px 10px; font: inherit; font-weight: 700; cursor: pointer; background: var(--snow); border: 0; box-shadow: var(--frame-thin); margin: 3px; }
.auth-tabs button[aria-selected="true"] { background: var(--gold); }
#f-code { text-transform: uppercase; letter-spacing: .08em; }

/* nur das Login, mittig */
.page.login { display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-content: center; min-height: 100vh; min-height: 100dvh; padding-top: 24px; padding-bottom: 24px; }
.login-logo { font-family: 'Pixelify Sans', system-ui, sans-serif; font-weight: 700; font-size: 30px; color: var(--red-d, #a92d25); text-align: center; margin-bottom: 14px; }
@media (max-width: 900px) { .page.login { grid-template-columns: minmax(0, 1fr); } }

/* Live-Zuschauen unter dem Login */
.login-live { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 12px 16px; margin-top: 10px; }
.login-live:hover { background: var(--paper-2); }
.login-live:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.login-live b { display: block; font-family: var(--f-pixel); font-size: 19px; }
.login-live small { display: block; font-size: 14px; color: var(--ink-soft); }
.login-live .go { margin-left: auto; font-size: 18px; color: var(--red-d); }
.login-live .lv-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224, 69, 58, .25); animation: liveDot 1.2s steps(2) infinite; }
@keyframes liveDot { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .login-live .lv-dot { animation: none; } }
