*{box-sizing:border-box}html,body{margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;background:linear-gradient(135deg,#2563eb,#9333ea 50%,#db2777);color:#111827;-webkit-tap-highlight-color:transparent}
.wrap{max-width:1040px;margin:0 auto;padding:max(28px,env(safe-area-inset-top)) 18px 30px}
.hero{text-align:center;color:#fff;margin-bottom:22px}.hero img{border-radius:22px;box-shadow:0 8px 24px #0004}
.hero h1{font-size:clamp(30px,5vw,48px);margin:12px 0 6px;text-shadow:0 2px 6px #0003}.hero p{font-size:clamp(16px,2.2vw,20px);max-width:640px;margin:0 auto;line-height:1.4;opacity:.95}
.cards{display:grid;grid-template-columns:1fr 1.25fr;gap:18px}
.card{background:#fff;border-radius:24px;padding:22px 24px;box-shadow:0 12px 40px #0003}
.card h2{margin:0 0 4px;font-size:26px}.sub{margin:0 0 14px;color:#6b7280;font-size:16px}
form{display:flex;flex-direction:column;gap:12px}label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:15px;color:#374151}label small{font-weight:500;color:#6b7280}
input{font:inherit;font-size:20px;padding:12px 14px;border:2px solid #e5e7eb;border-radius:14px;width:100%;min-width:0}input:focus{outline:none;border-color:#7c3aed}
#loginForm input[name=code]{letter-spacing:3px;text-transform:uppercase;font-weight:800}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.go{font:inherit;font-size:21px;font-weight:800;border:0;border-radius:16px;min-height:58px;color:#fff;background:linear-gradient(90deg,#2563eb,#9333ea);cursor:pointer}.go:disabled{opacity:.6}
.note{background:#fffbeb;border:2px solid #fde68a;color:#92400e;border-radius:14px;padding:10px 14px;font-size:15px;margin:0;line-height:1.4}
.err{background:#fef2f2;color:#b91c1c;border:2px solid #fecaca;border-radius:12px;padding:10px 14px;font-weight:700}
.done{max-width:620px;margin:0 auto;text-align:center}.code{font-size:44px;font-weight:900;letter-spacing:6px;color:#7c3aed;margin:4px 0 10px}
.done a{word-break:break-all;font-weight:700;color:#2563eb}.mini{font:inherit;font-size:14px;border:2px solid #c4b5fd;background:#f5f3ff;border-radius:10px;padding:3px 10px;cursor:pointer}
.done .note{text-align:left;margin:12px 0}
.help{margin-top:18px;display:flex;flex-direction:column;gap:10px}.help details{background:#ffffffee;border-radius:18px;padding:12px 18px}
.help summary{font-weight:800;font-size:18px;cursor:pointer}.help p{margin:8px 0;line-height:1.45}
footer{text-align:center;color:#fff;opacity:.85;margin-top:18px;font-size:14px}
@media (max-width:760px){.cards{grid-template-columns:1fr}.card{padding:18px}.hero img{width:64px;height:64px}}
