/* ============================================================
   RF AVALON — HOME CLEAN (complemento do home-v11.css)
   Logo clicável, painel de login/cadastro e animação warp.
   ============================================================ */

/* ---------- Logo clicável + "Clique Aqui" ---------- */
.centro { transition: opacity .5s, transform .5s; padding: 84px 16px 64px; gap: 0; }
.logo-link .logo { animation-name: logo-in; } /* remove flutuação para não deslocar o conjunto */
.centro.oculto { opacity: 0; transform: scale(.94); pointer-events: none !important; }
.centro.oculto > * { pointer-events: none; }
.logo-link {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  transform: translateY(-17vh); /* logo bem acima do centro */
}
.logo-link .clique { margin-top: -1.5vh; }
.logo-link .logo { transition: filter .3s; }
.logo-link:hover .logo { filter: drop-shadow(0 0 48px rgba(127,216,255,.75)) drop-shadow(0 14px 30px rgba(0,0,0,.7)); }
.clique {
  font-family: "Cinzel", serif; font-size: 15px; font-weight: 700;
  letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--ice);
  opacity: 0; animation: clique-in .8s ease 1.1s forwards, pulsar 1.8s ease-in-out 1.9s infinite;
}
@keyframes clique-in { to { opacity: 1; } }
@keyframes pulsar { 0%,100% { opacity: .55; text-shadow: none; } 50% { opacity: 1; text-shadow: 0 0 14px var(--ice); } }

/* ---------- Desempenho: video + parallax + filtros pesam na GPU ---------- */
/* Sombra dos personagens: uma so, menor. drop-shadow em imagem grande que se move
   e' repintado a cada frame do parallax e derruba o FPS em placas fracas. */
.char img { filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
.layer-bg { will-change: auto; }          /* o video ja tem sua propria camada */
.char { will-change: transform; transform: translateZ(0); }
.logo { filter: drop-shadow(0 0 22px rgba(127,216,255,.35)); }
.painel-caixa { backdrop-filter: blur(6px); }  /* era 14px: blur sobre video e' caro */
@media (max-width: 900px), (pointer: coarse) {
  .painel-caixa { backdrop-filter: none; background: rgba(6,12,24,.94); }
  .char img { filter: none; }
}

/* ---------- Mecha um pouco mais para dentro ---------- */
.char-mecha { right: -5vw; }
.char-cavaleiro { height: 78dvh; }   /* era 87dvh — mesmo porte do mecha */
@media (max-width: 1280px) { .char-mecha { right: -4vw; } }

/* ---------- Rodapé só com assinatura, centralizado ---------- */
.hud-base-clean { justify-content: center; }
.hud-base-clean .assinatura { margin: 0; text-align: center; }

/* ---------- Painel de acesso ---------- */
.painel {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 20px 70px;
}
.painel[hidden] { display: none; }
.painel-caixa {
  position: relative; width: min(420px, 100%);
  padding: 34px 34px 28px;
  background: rgba(6, 12, 24, .8); border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 0 40px rgba(46,168,255,.18), inset 0 0 40px rgba(46,168,255,.05);
  animation: painel-in .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes painel-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.painel-fechar { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 26px; color: var(--steel); cursor: pointer; }
.painel-fechar:hover { color: var(--chrome); }
.painel-logo { display: block; width: 150px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(46,168,255,.4)); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form[hidden] { display: none; }
.form h2 { margin: 0 0 4px; text-align: center; font-family: "Cinzel", serif; font-size: 15px; letter-spacing: .38em; text-indent: .38em; color: var(--ice); }
.form label { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form label span { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); }
.form label small { font-size: 12px; color: #ffcf7a; letter-spacing: .04em; }
.form input {
  height: 44px; padding: 0 14px;
  background: rgba(4,7,13,.7); border: 1px solid rgba(255,255,255,.12); color: var(--chrome);
  font: 600 16px "Rajdhani", sans-serif; letter-spacing: .04em; outline: none;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus { border-color: var(--ice); box-shadow: 0 0 14px rgba(127,216,255,.3); }
.erro, .ok { margin: 0; padding: 10px 12px; font-size: 14px; text-align: left; border-left: 3px solid; }
.erro { color: #ff9c9c; background: rgba(255,80,80,.1); border-color: #ff5a5a; }
.ok { color: #9dffc3; background: rgba(70,242,142,.1); border-color: #46f28e; }
.form .btn { min-width: 0; width: 100%; padding: 13px 20px; font-size: 13px; }
.form .btn-primario[disabled] { filter: grayscale(.6); cursor: wait; }
.acoes-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link-mini { align-self: center; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); text-decoration: none; }
.link-mini:hover { color: var(--ice); }

/* ---------- Warp (viagem espacial) ---------- */
.warp { position: fixed; inset: 0; z-index: 100; background: #000; }
.warp[hidden] { display: none; }
#warpCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp-logo {
  position: absolute; left: 50%; top: 50%; width: min(360px, 60vw);
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  filter: drop-shadow(0 0 40px rgba(127,216,255,.8));
  animation: logo-warp 3.2s ease-out forwards;
}
@keyframes logo-warp {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(.6); }
  25%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  80%  { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(1.6); }
}
.warp-logs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.warp-logs .log {
  position: absolute; max-width: 40vw;
  font: 600 13px/1.5 "Consolas", "Courier New", monospace; letter-spacing: .04em;
  color: rgba(127,216,255,.85); text-shadow: 0 0 8px rgba(127,216,255,.6);
  white-space: nowrap; animation: log-in .3s ease both, log-out .6s ease 2.6s forwards;
}
.warp-logs .log-ok { color: #46f28e; text-shadow: 0 0 8px rgba(70,242,142,.7); }
@keyframes log-in  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes log-out { to { opacity: 0; } }

.warp-luz {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--ice) 45%, rgba(127,216,255,0) 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: luz-crescer 1.4s cubic-bezier(.6,0,.9,.4) 2.8s forwards;
}
@keyframes luz-crescer {
  0%   { transform: translate(-50%,-50%) scale(0); }
  100% { transform: translate(-50%,-50%) scale(400); background: #fff; }
}

@media (max-width: 900px) {
  .painel { padding: 150px 14px 60px; align-items: flex-start; overflow-y: auto; }
  .painel-caixa { padding: 26px 22px; }
}
