* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Fredoka", system-ui, sans-serif; background: #FFF6E9; color: #2C2C2A; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px; }

/* A little TV with a smiling face */
.tv { position: relative; width: 132px; }
.antenna { height: 34px; position: relative; }
.antenna span { position: absolute; bottom: 0; left: 50%; width: 4px; height: 38px; background: #534AB7; border-radius: 2px; transform-origin: bottom center; }
.antenna span:first-child { transform: translateX(-50%) rotate(-28deg); }
.antenna span:last-child { transform: translateX(-50%) rotate(28deg); }
.screen { height: 96px; background: #534AB7; border-radius: 26px; padding: 12px; }
.face { height: 100%; background: #CECBF6; border-radius: 16px; position: relative; }
.face i { position: absolute; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: #26215C; animation: blink 4s infinite; }
.face i:first-child { left: 34px; } .face i:nth-child(2) { right: 34px; }
.face b { position: absolute; left: 50%; top: 40px; width: 30px; height: 15px; margin-left: -15px; border: 4px solid #26215C; border-top: 0; border-radius: 0 0 30px 30px; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
h1 { margin: 0; font-size: 30px; font-weight: 600; text-align: center; }
h2 { margin: 0; font-size: 18px; font-weight: 500; }
.hint { margin: 0 0 4px; text-align: center; color: #5F5E5A; font-size: 17px; }
.small { margin: 2px 0 10px; color: #5F5E5A; font-size: 14px; line-height: 1.4; }

input[type="password"], input[type="text"] { width: 100%; height: 56px; border: 2px solid #E6E2DA; border-radius: 16px; padding: 0 16px; font: inherit; font-size: 20px; background: #FFFCF7; color: inherit; }
input:focus { outline: none; border-color: #7F77DD; }
.pw { position: relative; }
.pw input { padding-right: 80px; }
.eye { position: absolute; right: 8px; top: 8px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #F1EFE8; font: inherit; font-size: 15px; color: #444441; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #444441; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: #534AB7; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two input { text-align: center; letter-spacing: 4px; }

.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid #F1EFE8; }
.num { width: 36px; height: 36px; border-radius: 50%; background: #CECBF6; color: #26215C; font-weight: 600; display: flex; align-items: center; justify-content: center; }

.go { height: 60px; border: 0; border-radius: 999px; background: #534AB7; color: #fff; font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.go:hover { background: #3C3489; }
.go:disabled { background: #B4B2A9; cursor: default; }
.err { color: #A32D2D; font-size: 16px; text-align: center; }
.err:empty { display: none; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }
