/* =====================================================================
   LOGIN "CINE" — cena Liquid Glass gerada no nano banana (login-scene.jpg)
   a partir da foto premium NAVAL. A cena ocupa a tela inteira (logo grande
   a ESQUERDA); o cartao de login de VIDRO REAL flutua sobre o terco direito,
   limpo e luminoso. Tudo escopado em .login-body.cine — carrega depois do
   style.css, entao vence por especificidade + ordem. Sem emojis.
   ===================================================================== */

/* ---- Palco: a cena como fundo de tela cheia ------------------------- */
.login-body.cine {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;       /* coluna ocupa a largura toda (sem isso o end nao tem espaco) */
  grid-template-rows: 1fr auto;     /* conteudo (cartao) + rodape */
  background: #e9f1fb;              /* fallback ate a imagem carregar */
  overflow-x: hidden;
}
.login-body.cine .silk { display: none !important; }  /* desliga a seda antiga */

/* Camada da cena (separada, para parallax suave sem "background fixed" travado) */
.cine-bg {
  position: fixed; inset: -3vmax;            /* um pouco maior p/ sobrar para o parallax */
  z-index: -2;
  background: #e9f1fb url("login-scene.jpg") center center / cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1.06);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* veu suave para garantir leitura do cartao no terco direito (desktop) */
.cine-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 84% 50%, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(90deg, rgba(8,28,58,0) 52%, rgba(255,255,255,.20) 100%);
  pointer-events: none;
}

/* ---- Cartao de login: Liquid Glass de verdade ---------------------- */
.login-body.cine .login-card {
  grid-row: 1;
  justify-self: end;
  align-self: center;
  margin: clamp(20px, 5vh, 56px) clamp(24px, 9vw, 220px);
  width: clamp(330px, 90vw, 412px);
  padding: clamp(26px, 3.4vw, 38px) clamp(24px, 3vw, 34px) clamp(22px, 2.6vw, 30px);
  border-radius: 30px;
  position: relative;
  isolation: isolate;
  text-align: left;
  color: #0e2235;

  /* o vidro: translucido + desfoque + saturacao do que esta atras */
  background:
    linear-gradient(155deg, rgba(255,255,255,.72), rgba(255,255,255,.50) 60%, rgba(236,244,255,.56));
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255,255,255,.72);

  /* profundidade em camadas + brilho especular interno (borda de vidro) */
  box-shadow:
    0 40px 90px -34px rgba(10, 38, 84, .52),
    0 16px 40px -22px rgba(10, 38, 84, .34),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 0 0 1px rgba(255,255,255,.22);
  animation: cineCardIn .9s cubic-bezier(.16,.84,.34,1) both;
}
@keyframes cineCardIn {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* glow azul atras do cartao (o vidro tem o que refratar) */
.login-body.cine .login-card::before {
  content: ""; position: absolute; inset: -14% -10% -10%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(0,113,227,.28), rgba(0,113,227,0) 70%);
  filter: blur(26px); pointer-events: none;
}
/* brilho que escorrega na diagonal (acetinado) — o "uau" do vidro */
.login-body.cine .login-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3;
  pointer-events: none; overflow: hidden;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.55) 46%, rgba(255,255,255,.0) 60%);
  background-size: 250% 250%;
  background-position: 120% 0;
  mix-blend-mode: screen; opacity: .0;
  animation: cineSheen 7.5s ease-in-out 1.2s infinite;
}
@keyframes cineSheen {
  0%   { background-position: 130% 0; opacity: 0; }
  16%  { opacity: .55; }
  42%  { background-position: -30% 0; opacity: 0; }
  100% { background-position: -30% 0; opacity: 0; }
}

/* ---- Cabecalho do cartao ------------------------------------------- */
.login-body.cine .login-logo { display: none; }   /* a logo grande ja esta na cena */
.cine-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
.cine-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; color: #fff; margin-bottom: 4px;
  background: linear-gradient(160deg, #2b95ff, #0071e3 55%, #0257b8);
  box-shadow: 0 8px 18px -8px rgba(2,87,184,.7), inset 0 1px 0 rgba(255,255,255,.55);
}
.cine-chip svg { width: 26px; height: 26px; }
.login-body.cine .login-card h1 {
  margin: 0; font-size: clamp(23px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(180deg, #0e2f5c, #0257b8); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.cine-sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: #5a6b7b; font-weight: 500; }

/* ---- Campos --------------------------------------------------------- */
.login-body.cine .login-card label {
  display: block; margin: 0 0 13px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .01em; color: #3a4d61;
}
.login-body.cine .login-card label input {
  display: block; width: 100%; margin-top: 6px; box-sizing: border-box;
  padding: 13px 15px; font-size: 16px; color: #0e2235;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
  box-shadow: inset 0 1px 2px rgba(10,38,84,.07), 0 1px 0 rgba(255,255,255,.6);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.login-body.cine .login-card label input::placeholder { color: #8aa0b4; }
.login-body.cine .login-card label input:focus {
  background: rgba(255,255,255,.85);
  border-color: rgba(0,113,227,.65);
  box-shadow: 0 0 0 4px rgba(0,113,227,.20), inset 0 1px 2px rgba(10,38,84,.06);
}
#totp { text-align: center; letter-spacing: 6px; font-weight: 600; }
#totp::placeholder { letter-spacing: 6px; }

/* ---- Botao ---------------------------------------------------------- */
.login-body.cine .login-card button#entrar {
  width: 100%; margin-top: 4px; padding: 14px 18px; cursor: pointer;
  font-size: 16px; font-weight: 700; letter-spacing: .01em; color: #fff;
  border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #3a9bff, #0071e3 52%, #035fc4);
  box-shadow: 0 14px 26px -12px rgba(2,87,184,.75), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.login-body.cine .login-card button#entrar:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 20px 34px -14px rgba(2,87,184,.8), inset 0 1px 0 rgba(255,255,255,.55); }
.login-body.cine .login-card button#entrar:active { transform: translateY(0); filter: brightness(.98); }
.login-body.cine .login-card button#entrar:disabled { opacity: .8; cursor: default; transform: none; }

/* ---- Erro + link ---------------------------------------------------- */
.login-body.cine .login-erro {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600;
  color: #b00020; background: rgba(255,75,90,.10); border: 1px solid rgba(255,75,90,.28); text-align: center;
}
.login-body.cine .login-howto {
  display: block; margin-top: 16px; text-align: center; font-size: 13px; font-weight: 600;
  color: #0257b8; text-decoration: none; opacity: .92;
}
.login-body.cine .login-howto:hover { text-decoration: underline; opacity: 1; }

/* ---- Rodape sobre a cena: ENXUTO (so uma linha discreta de credito) -- */
.login-body.cine .rodape {
  grid-row: 2; position: relative; z-index: 1;
  margin: 0; padding: 12px 16px clamp(12px, 2.2vh, 20px);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  background: none; box-shadow: none; border: 0;
  text-shadow: 0 1px 2px rgba(255,255,255,.55);
}
/* no login, esconde marca/descricao/bloco-do-grupo (pesados aqui) */
.login-body.cine .rodape .rodape-mark,
.login-body.cine .rodape .rodape-name,
.login-body.cine .rodape .rodape-tag,
.login-body.cine .rodape .rodape-grupo { display: none !important; }
.login-body.cine .rodape .rodape-meta {
  margin: 0; font-size: 12.5px; font-weight: 500; color: #41566c;
}

/* ---- Mobile: cartao centralizado ----------------------------------- */
@media (max-width: 820px) {
  .login-body.cine { grid-template-rows: 1fr auto; }
  .cine-bg { background-position: 32% center; }
  .cine-bg::after {
    background:
      radial-gradient(130% 80% at 50% 60%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(180deg, rgba(255,255,255,.0) 30%, rgba(233,241,251,.30) 100%);
  }
  .login-body.cine .login-card { justify-self: center; margin: clamp(18px,4vh,40px) auto; }
}

/* ---- Acessibilidade: sem movimento --------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cine-bg, .login-body.cine .login-card, .login-body.cine .login-card::after { animation: none !important; }
  .cine-bg { transition: none !important; }
}
