/* Entrar, Primeiro acesso, Esqueci a senha e Definir senha.
   Uma coluna única, centrada: marca pequena, cartão de vidro, link secundário. Tudo no mesmo eixo, na mesma largura
   (400 px) e na mesma régua de espaço (--s5 entre os blocos). O mosaico das nossas cenas fica no fundo, bem escuro e
   quieto, só como textura. */
.porta { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--s6) var(--s4); overflow: hidden; isolation: isolate; }
.porta-mosaico { position: absolute; left: 50%; top: 50%; z-index: -2; width: max(150vw, 1500px); height: max(170vh, 1500px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw;
  transform: translate3d(-50%, -50%, 0) rotate(-9deg); pointer-events: none; opacity: .5; }
.porta-tira { display: grid; align-content: start; animation: porta-desliza 160s linear infinite; will-change: transform; }
.porta-tira:nth-child(2) { animation-duration: 200s; animation-direction: reverse; }
.porta-tira:nth-child(3) { animation-duration: 180s; }
.porta-tira:nth-child(4) { animation-duration: 220s; animation-direction: reverse; }
.porta-tira img { display: block; width: 100%; height: auto; }
@keyframes porta-desliza { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-50%,0); } }
html.parado .porta-tira { animation-play-state: paused; }
/* véu: o fundo vira textura. Simétrico, para o centro da luz ser o centro do cartão. */
.porta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(var(--acento-rgb),.16), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, rgba(var(--bg-rgb),.8) 0%, rgba(var(--bg-rgb),.93) 60%, var(--bg) 100%); }
.porta::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/img/ruido.webp"); background-size: 220px; opacity: .05; mix-blend-mode: overlay; }

.porta-coluna { width: min(400px, 100%); display: grid; gap: var(--s5); justify-items: center; animation: sobe .5s var(--e-out) backwards; }
.porta-marca { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: -.01em; color: var(--txt); }
.porta-marca img { width: 28px; height: 28px; border-radius: 8px; }
.porta-cartao { width: 100%; padding: var(--s6); display: grid; gap: var(--s2); border-radius: 20px;
  background: var(--vd-denso); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px var(--hair-forte), 0 30px 80px -20px rgba(0,0,0,.8), 0 24px 90px -50px rgba(var(--acento-rgb),.5); }
.porta-cartao h1 { font: var(--display-peso) 26px/1.15 var(--display); letter-spacing: var(--display-esp); }
.porta-cartao > .sub { font-size: 14.5px; }
.porta-form { display: grid; gap: var(--s4); margin-top: var(--s4); }
.porta-form .erro-campo { min-height: 0; margin: -4px 0; }
.porta-form .erro-campo:empty { display: none; }
.porta-rot { display: flex; justify-content: space-between; align-items: baseline; }
.porta-rot label { font-size: 13px; color: var(--txt2); font-weight: 550; }
.porta-rot .link { font-size: 13px; font-weight: 550; }
.porta-senha { position: relative; display: block; }
.porta-senha .in { padding-right: 84px; }
.porta-senha button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--txt2); }
.porta-senha button:hover { color: var(--txt); background: rgba(255,255,255,.07); }
.porta-dica { font-size: 12.5px; color: var(--txt3); margin-top: -8px; }
.porta-links { text-align: center; font-size: 14px; color: var(--txt2); min-height: 21px; }
.porta-ok { display: grid; gap: var(--s4); justify-items: center; text-align: center; color: var(--txt2); }
.porta-ok-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bt-pri-bg); color: var(--bt-pri-txt); animation: surge .5s var(--e-mola); }
.porta-ok-ico.ruim { background: rgba(255,255,255,.08); color: var(--txt2); box-shadow: inset 0 0 0 1px var(--hair-forte); }
@media (max-width: 480px) { .porta-cartao { padding: var(--s5); } }

/* rodada 4: o cartao e vidro liquido (as cinco camadas de base.css, classe .lg posta pelo auth.js) */
.porta-cartao.lg { border-radius: 26px; box-shadow: var(--lg-sombra), 0 30px 80px -20px rgba(0,0,0,.8), 0 24px 90px -50px rgba(var(--acento-rgb),.55); }
.porta-marca img { width: 32px; height: 32px; }
.porta-senha button { min-height: 36px; }
.porta-links .link { display: inline-block; padding: 10px 2px; margin: -10px 0; }
@media (max-width: 480px) { .porta { padding: var(--s5) 12px calc(var(--s5) + env(safe-area-inset-bottom, 0px)); } .porta-form .in { font-size: 16px; } }
