/* ============================================================
   Novelas Fabão · tela de entrada
   Esquerda: sala de cinema com pôsteres rodando em 3 trilhos.
   Direita: painel claro com o login.
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --roxo: #5B3DF5; --roxo-2: #7C5CFF; --rosa: #FF4F8B; --ouro: #FFD84D;
  --texto: #17151F; --muted: #6E6A7C; --borda: #E7E4EF; --campo: #F7F6FB;
  --noite: #0C0A14;
}
html, body { height: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif; color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
.tela { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(400px, 1fr); min-height: 100vh; }

/* ---------- Cinema ---------- */
.cinema { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #1D1534 0%, var(--noite) 60%); isolation: isolate; }
.trilhos { position: absolute; inset: -8% 6% -8% 4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; transform: rotate(-7deg) scale(1.08); transform-origin: 50% 50%; z-index: 1; }
.trilho { position: relative; padding: 0 14px; }
/* perfuração de película nas laterais de cada trilho */
.trilho::before, .trilho::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; z-index: 2; opacity: .55;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 7px, transparent 7px 17px); border-radius: 2px; }
.trilho::before { left: 0; } .trilho::after { right: 0; }
.fita { display: flex; flex-direction: column; gap: 18px; will-change: transform; animation: sobe 60s linear infinite; }
.trilho:nth-child(2) .fita { animation-name: desce; animation-duration: 72s; }
.trilho:nth-child(3) .fita { animation-duration: 66s; }
@keyframes sobe { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes desce { from { transform: translateY(-50%); } to { transform: translateY(0); } }

.poster { position: relative; aspect-ratio: 9 / 14; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #3B2A7A, #1A1230);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset; transform: translateZ(0); }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 8s ease; }
.poster:hover img { transform: scale(1.06); }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,16,.82) 0%, rgba(8,6,16,0) 46%); }
.poster .rot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; }
.poster .gen { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); margin-bottom: 6px; }
.poster .tit { display: block; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 800; font-size: clamp(14px, 1.25vw, 19px); line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.poster.sem-img { background: linear-gradient(160deg, var(--c1, #4B2FD0), var(--c2, #E0407D)); }

/* luz do projetor varrendo a tela */
.facho { position: absolute; inset: -30%; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 200deg at 0% 0%, rgba(255,230,170,0) 0deg, rgba(255,230,170,.16) 12deg, rgba(255,230,170,0) 26deg);
  animation: facho 14s ease-in-out infinite alternate; }
@keyframes facho { from { transform: rotate(-6deg); } to { transform: rotate(10deg); } }
.grao { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grao .9s steps(3) infinite; }
@keyframes grao { 0% { transform: translate(0,0); } 33% { transform: translate(-6px,4px); } 66% { transform: translate(5px,-5px); } }
.vinheta { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(130% 100% at 30% 50%, transparent 40%, rgba(5,4,10,.75) 100%),
              linear-gradient(to right, rgba(255,255,255,0) 70%, rgba(255,255,255,.9) 96%, #fff 100%),
              linear-gradient(to top, rgba(6,5,12,.97) 0%, rgba(6,5,12,.86) 26%, rgba(6,5,12,.35) 46%, rgba(6,5,12,0) 60%); }
.chamada { position: absolute; left: 6%; bottom: 13%; z-index: 6; max-width: 520px; color: #fff; }
.chamada-pre { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ouro); }
.chamada-pre::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF4545; box-shadow: 0 0 0 4px rgba(255,69,69,.25); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.chamada h2 { margin-top: 12px; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.chamada h2 em { font-family: 'Playfair Display', Georgia, serif; font-style: italic; color: transparent; background: linear-gradient(90deg, var(--ouro), var(--rosa)); -webkit-background-clip: text; background-clip: text; padding-right: 4px; }
.chamada p { margin-top: 14px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.78); max-width: 440px; }
.rodape-cinema { position: absolute; left: 6%; bottom: 4.5%; z-index: 6; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.traco { width: 28px; height: 2px; background: rgba(255,255,255,.75); border-radius: 2px; }

/* ---------- Painel de login ---------- */
.painel { display: flex; align-items: center; justify-content: center; padding: 48px 7%; background: #fff; position: relative; }
.caixa { width: 100%; max-width: 410px; animation: entra .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.marca { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.marca img { filter: drop-shadow(0 8px 18px rgba(91,61,245,.35)); }
.marca-pre { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--roxo); }
.marca-nome { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.form h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.sub { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.campo { display: block; margin-top: 20px; }
.campo > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.campo input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--campo); font: inherit; font-size: 15px; color: var(--texto); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.campo input:focus { border-color: var(--roxo-2); background: #fff; box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.senha-box { position: relative; }
.senha-box input { padding-right: 84px; }
.ver { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--roxo); font: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ver:hover { background: rgba(91,61,245,.08); }
.erro { min-height: 20px; margin-top: 12px; font-size: 13.5px; color: #D3263F; font-weight: 600; }
.entrar { position: relative; width: 100%; height: 50px; margin-top: 8px; border: 0; border-radius: 12px; cursor: pointer; overflow: hidden;
  color: #fff; font: inherit; font-size: 15px; font-weight: 700; background: linear-gradient(100deg, var(--roxo) 0%, var(--roxo-2) 55%, var(--rosa) 130%);
  box-shadow: 0 10px 24px rgba(91,61,245,.32); transition: transform .15s, box-shadow .15s, filter .15s; }
.entrar:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(91,61,245,.4); }
.entrar:disabled { filter: saturate(.5) brightness(1.1); cursor: wait; transform: none; }
.entrar::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: reflexo 4.5s ease-in-out infinite; }
@keyframes reflexo { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.ajuda { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }
.forca { height: 6px; border-radius: 6px; background: var(--borda); margin-top: 10px; overflow: hidden; }
.forca i { display: block; height: 100%; width: 0; border-radius: 6px; background: #E5484D; transition: width .25s, background .25s; }
.dica { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.sair { width: 100%; margin-top: 10px; height: 40px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.sair:hover { background: var(--campo); }

/* ---------- Telas menores ---------- */
@media (max-width: 920px) {
  .tela { grid-template-columns: 1fr; }
  .cinema { height: 42vh; min-height: 300px; }
  .vinheta { background: radial-gradient(130% 100% at 50% 40%, transparent 40%, rgba(5,4,10,.7) 100%), linear-gradient(to top, #fff 0%, rgba(255,255,255,0) 22%), linear-gradient(to top, rgba(5,4,10,.6) 18%, rgba(5,4,10,0) 60%); }
  .chamada { bottom: 20%; } .chamada p, .rodape-cinema { display: none; }
  .chamada h2 { font-size: 28px; }
  .painel { padding: 28px 22px 48px; }
  .marca { margin-bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .fita, .facho, .grao, .entrar::after, .chamada-pre::before { animation: none !important; }
}
