* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { min-height: 100vh; display: grid; place-items: center; padding: 20px; overflow-x: hidden; background: #08040f; color: #f4f2fa; font: 16px "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
.glow { position: fixed; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 12s ease-in-out infinite alternate; }
.one { background: #7c3aed; top: -25vmax; left: -15vmax; }
.two { background: #db2777; bottom: -30vmax; right: -18vmax; animation-delay: -6s; }
@keyframes float { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
main { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: center; gap: 70px; width: min(1000px, 100%); }
.hero { text-align: center; }
.logo { width: 110px; height: 110px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(135deg, #a855f7, #ec4899); box-shadow: 0 20px 60px #a855f780; }
.logo svg { width: 70px; height: 70px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1; letter-spacing: -.03em; }
h1 em { font-style: normal; background: linear-gradient(90deg, #c084fc, #f472b6); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero p { margin-top: 14px; font-size: clamp(17px, 2vw, 23px); color: #c9bfe0; }
.bars { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 60px; margin-top: 28px; }
.bars i { width: 7px; height: 100%; border-radius: 4px; background: linear-gradient(#ec4899, #a855f7); transform-origin: bottom; animation: beat 1s ease-in-out infinite alternate; }
.bars i:nth-child(3n) { animation-duration: .7s; animation-delay: -.3s; }
.bars i:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -.8s; }
.bars i:nth-child(4n) { animation-duration: .9s; animation-delay: -.5s; }
@keyframes beat { from { transform: scaleY(.15); } }
.card { padding: 34px; border-radius: 24px; background: #17101fcc; border: 1px solid #ffffff17; box-shadow: 0 30px 80px #000a; backdrop-filter: blur(20px); }
form { display: grid; gap: 16px; }
h2 { font-size: 26px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: #b8aed0; }
input, button { font: inherit; color: #fff; }
input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #ffffff1a; background: #0000004d; outline: 0; }
input:focus, input.typing { border-color: #a855f7; }
.pass { position: relative; display: block; }
.pass input { padding-right: 92px; }
#show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: #c084fc; font-size: 13px; cursor: pointer; }
button { cursor: pointer; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.primary { padding: 15px; border: 0; border-radius: 99px; font-weight: 700; font-size: 17px; background: linear-gradient(90deg, #a855f7, #ec4899); }
.primary:hover { filter: brightness(1.12); }
.primary:disabled { opacity: .6; }
#error { min-height: 20px; color: #fda4af; font-size: 14px; text-align: center; }

/* teclado da TV */
#keyboard { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 16px; }
#keyboard button { padding: 10px 0; border: 0; border-radius: 9px; background: #ffffff14; font-size: 18px; }
#keyboard button.wide { grid-column: span 5; font-size: 15px; }
#keyboard button:focus { outline: 3px solid #fff; background: #a855f7; }

html.tv main { grid-template-columns: 1fr 520px; width: min(1180px, 100%); gap: 50px; }
html.tv .card { padding: 22px 26px; }
html.tv form { gap: 9px; }
html.tv input { padding: 10px 16px; font-size: 19px; }
html.tv h2 { font-size: 22px; }
html.tv .primary { padding: 11px; }
html.tv input:focus, html.tv #enter:focus, html.tv #show:focus { outline: 3px solid #fff; }

@media (max-width: 800px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 26px; max-width: 420px; }
  .logo { width: 80px; height: 80px; border-radius: 24px; margin-bottom: 14px; }
  .logo svg { width: 50px; height: 50px; }
  .bars { height: 40px; margin-top: 16px; gap: 5px; }
  .bars i { width: 6px; }
  .card { padding: 24px; }
}
