/* Tela de login da Intranet Bravo Brasil (acessar-intranet.asp)
   Visual inspirado no login do projeto irmao bigtask (views/auth/login.ejs):
   palco escuro, auroras, grade de pontos, fluxo de particulas convergindo no card,
   borda viva girando e entrada escalonada. Cores da Bravo: laranja e amarelo.
   Arquivo so com ASCII (a pagina e servida em iso-8859-1). */

:root {
  --bravo-laranja: #f7941d;
  --bravo-laranja-forte: #e8580c;
  --bravo-amarelo: #ffc31f;
  --bravo-fundo: #0d0703;
  --bravo-texto: #1f130a;
  --bravo-texto-suave: #6f5f52;
  --bravo-borda: #eadccd;
  --bravo-campo: #fffaf4;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bravo-fundo);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(247,148,29,.35); }
a { color: inherit; }

/* ---------- Palco / fundo ---------- */
#login-palco { position: relative; min-height: 100vh; overflow: hidden; }
.fundo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fundo-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(232,88,12,.20), transparent 60%),
    radial-gradient(120% 90% at 0% 0%, #2b1406 0%, #160b04 45%, var(--bravo-fundo) 75%);
}

@keyframes login-aurora-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(8vw, 6vh, 0) scale(1.15); }
}
@keyframes login-aurora-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); }
  50%      { transform: translate3d(-6vw, -8vh, 0) scale(.9); }
}
.aurora-a, .aurora-b { position: absolute; border-radius: 50%; will-change: transform; }
.aurora-a {
  top: -30vh; left: -20vw; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(247,148,29,.26), rgba(247,148,29,.08) 55%, transparent);
  animation: login-aurora-a 22s ease-in-out infinite;
}
.aurora-b {
  bottom: -35vh; right: -5vw; width: 70vw; height: 70vw; max-width: 950px; max-height: 950px;
  background: radial-gradient(closest-side, rgba(255,195,31,.18), rgba(255,195,31,.05) 55%, transparent);
  animation: login-aurora-b 26s ease-in-out infinite;
}

/* Holofotes de palco varrendo devagar (so transform anima) */
@keyframes login-holofote-a { from { transform: rotate(-14deg); } to { transform: rotate(10deg); } }
@keyframes login-holofote-b { from { transform: rotate(12deg); }  to { transform: rotate(-9deg); } }
.holofote {
  position: absolute; top: -12vh; width: 46vw; max-width: 720px; height: 135vh;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, rgba(255,205,90,.20), rgba(247,148,29,.07) 45%, transparent 78%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 35%, #000 65%, transparent);
  will-change: transform;
}
.holofote-a { left: 4vw;  animation: login-holofote-a 13s ease-in-out infinite alternate; }
.holofote-b { right: 2vw; animation: login-holofote-b 17s ease-in-out infinite alternate; opacity: .75; }

.grade {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, #000 30%, transparent 75%);
}
#login-fluxo { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Entrada escalonada ---------- */
@keyframes login-sobe {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sobe { opacity: 0; animation: login-sobe .8s cubic-bezier(.16,1,.3,1) forwards; }

/* ---------- Topo ---------- */
.topo {
  position: relative; z-index: 2;
  max-width: 1240px; height: 64px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.marca-topo { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.marca-topo .ponto { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--bravo-laranja), var(--bravo-amarelo)); box-shadow: 0 0 14px rgba(247,148,29,.8); }
.marca-topo span.suave { color: rgba(255,255,255,.55); font-weight: 500; }
.monitorado { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; }
.monitorado svg { width: 16px; height: 16px; color: var(--bravo-amarelo); }

/* ---------- Grade principal ---------- */
.conteudo {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; padding: 8px 16px 56px;
  display: grid; gap: 56px; align-items: center;
}
.institucional { display: none; }
@media (min-width: 640px) {
  .topo, .conteudo, .rodape { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px) {
  .conteudo { grid-template-columns: 1fr 440px; min-height: calc(100vh - 64px - 56px); padding-top: 0; padding-bottom: 0; }
  .institucional { display: block; }
  .titulo-mobile { display: none; }
}
@media (min-width: 1280px) { .conteudo { gap: 96px; } }

/* ---------- Coluna institucional ---------- */
.selo {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05);
  font-size: 12.5px; color: rgba(255,255,255,.9); margin-bottom: 24px;
}
.selo svg { width: 15px; height: 15px; color: var(--bravo-amarelo); }
.titulo {
  margin: 0; font-size: 54px; line-height: 1.05; font-weight: 800; letter-spacing: -.025em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
@media (min-width: 1280px) { .titulo { font-size: 60px; } }
.gradiente {
  background: linear-gradient(90deg, var(--bravo-laranja-forte), var(--bravo-laranja) 45%, var(--bravo-amarelo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 24px 0 0; max-width: 560px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); }
.vantagens { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.82); }
.vantagens div { display: flex; align-items: center; gap: 8px; }
.vantagens .check { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(247,148,29,.2); color: var(--bravo-amarelo); }
.vantagens .check svg { width: 12px; height: 12px; }

/* Ticker "Bastidores em movimento" */
.ticker {
  margin-top: 48px; width: 100%; max-width: 410px; padding: 16px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.55);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}
.ticker-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ticker-topo p { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); }
@keyframes login-ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.aovivo { position: relative; display: flex; width: 8px; height: 8px; }
.aovivo::before, .aovivo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--bravo-laranja); }
.aovivo::before { animation: login-ping 1.4s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
.ticker-itens { display: grid; height: 46px; }
.evento {
  grid-area: 1 / 1; display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}
.evento.ativo { opacity: 1; transform: translateY(0); pointer-events: auto; }
.evento.saindo { opacity: 0; transform: translateY(-12px); transition-duration: .3s; }
.evento-icone {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid rgba(247,148,29,.3); background: rgba(247,148,29,.14); color: var(--bravo-amarelo);
}
.evento-icone svg { width: 21px; height: 21px; }
.evento-texto { min-width: 0; }
.evento-texto p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evento-texto .t { font-size: 14px; font-weight: 600; color: #fff; }
.evento-texto .d { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 2px; }

/* ---------- Coluna do card ---------- */
.coluna-card { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 1024px) { .coluna-card { margin: 0; } }
.titulo-mobile { margin: 0 0 28px; text-align: center; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }

/* Borda viva: gradiente conico girando atras do card, visivel no respiro de 2px */
@keyframes login-gira { to { transform: translate(-50%, -50%) rotate(360deg); } }
.anel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; padding: 2px; background: rgba(255,255,255,.1);
  box-shadow: 0 0 70px -12px rgba(247,148,29,.55), 0 30px 70px -25px rgba(0,0,0,.85);
}
.anel::before {
  content: ''; position: absolute; left: 50%; top: 50%; z-index: -1;
  width: 200%; aspect-ratio: 1;
  background: conic-gradient(rgba(247,148,29,0) 0deg, rgba(247,148,29,1) 60deg, rgba(255,195,31,1) 110deg,
    rgba(232,88,12,.5) 160deg, rgba(247,148,29,0) 220deg, rgba(247,148,29,0) 360deg);
  transform: translate(-50%, -50%);
  animation: login-gira 6s linear infinite;
  will-change: transform;
}
.card { border-radius: 20px; background: #fff; color: var(--bravo-texto); padding: 28px 22px; }
@media (min-width: 400px) { .card { padding: 32px 28px; } }
@media (min-width: 640px) { .card { padding: 36px; } }

@keyframes login-logo {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-4px) rotate(-1deg); }
}
.logo { display: flex; justify-content: center; margin: -4px 0 24px; }
.logo img { display: block; width: 200px; max-width: 70%; height: auto; animation: login-logo 5s ease-in-out infinite; }

.sobrelinha { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--bravo-laranja-forte); }
.card h2 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.card .apoio { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--bravo-texto-suave); }

/* Alertas */
@keyframes login-treme {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.alerta { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.alerta svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alerta strong { display: block; }
.alerta a { font-weight: 600; text-decoration: underline; }
.alerta-erro { border: 1px solid #fecaca; background: #fef2f2; color: #b42318; animation: login-treme .5s cubic-bezier(.36,.07,.19,.97) both; animation-delay: .9s; }
.alerta-ok { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; }

/* Formulario */
.form { margin-top: 26px; }
.form .grupo + .grupo { margin-top: 18px; }
.rotulos { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.form label { display: block; font-size: 13px; font-weight: 600; color: #3d2c1f; }
.link-senha { font-size: 13px; font-weight: 600; color: var(--bravo-laranja-forte); text-decoration: none; transition: opacity .2s; }
.link-senha:hover { opacity: .75; }
.campo-envolto { position: relative; }
.campo-icone { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #b8a594; pointer-events: none; display: flex; }
.campo-icone svg { width: 18px; height: 18px; }
.campo {
  width: 100%; height: 48px; padding: 0 14px 0 44px;
  border-radius: 10px; border: 1px solid var(--bravo-borda); background: var(--bravo-campo);
  color: var(--bravo-texto); font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.campo.com-olho { padding-right: 50px; }
.campo::placeholder { color: #bcad9f; }
.campo:hover { border-color: #f3c08a; }
.campo:focus { outline: none; border-color: var(--bravo-laranja); background: #fff; box-shadow: 0 0 0 4px rgba(247,148,29,.18); }
.campo:-webkit-autofill {
  -webkit-text-fill-color: var(--bravo-texto);
  -webkit-box-shadow: 0 0 0 1000px var(--bravo-campo) inset;
  caret-color: var(--bravo-texto);
}
.olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; border-radius: 8px; background: transparent; color: #a8927e; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.olho:hover { background: #fbefe3; color: var(--bravo-laranja-forte); }
.olho:focus-visible { outline: 2px solid var(--bravo-laranja); outline-offset: 1px; }
.olho svg { width: 18px; height: 18px; }
.oculto { display: none !important; }

/* Botao laranja -> amarelo com brilho atravessando no hover */
.botao {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 50px; margin-top: 24px; padding: 0 24px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 700; color: #241002;
  background: linear-gradient(90deg, var(--bravo-laranja) 0%, #fbab25 50%, var(--bravo-amarelo) 100%);
  background-size: 200% 100%; background-position: 0 0;
  box-shadow: 0 12px 30px -10px rgba(247,148,29,.8);
  transition: background-position .5s ease, transform .15s ease, box-shadow .2s;
}
.botao:hover { background-position: 100% 0; box-shadow: 0 14px 34px -10px rgba(247,148,29,.95); }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 3px solid rgba(247,148,29,.45); outline-offset: 2px; }
.botao::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.botao:hover::after { transform: translateX(120%) skewX(-20deg); }
.botao[disabled] { opacity: .85; cursor: wait; }
.botao span { display: inline-flex; align-items: center; gap: 8px; }
.botao svg { width: 18px; height: 18px; }
.botao .seta { transition: transform .2s; }
.botao:hover .seta { transform: translateX(4px); }
@keyframes login-roda { to { transform: rotate(360deg); } }
.roda { animation: login-roda 1s linear infinite; }

.card-rodape {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid #f1e7dc;
  font-size: 13px; color: var(--bravo-texto-suave); text-align: center;
}
.card-rodape svg { width: 16px; height: 16px; color: var(--bravo-laranja); flex-shrink: 0; }

/* ---------- Rodape ---------- */
.rodape {
  position: relative; z-index: 2;
  max-width: 1240px; height: 56px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.4);
}
@media (min-width: 1024px) { .rodape { justify-content: flex-start; } }
@media (max-width: 480px) { .monitorado .rotulo-ip { display: none; } }

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .sobe { animation: none; opacity: 1; }
  .aurora-a, .aurora-b, .holofote, .anel::before, .alerta-erro, .logo img, .aovivo::before, .roda { animation: none; }
  .evento, .botao, .botao::after { transition: none; }
}
