/* Tela de login no desenho "RealNet Vision — Login Premium", sobre o formulário real do painel.
   O brand.js acrescenta a barra do topo, o emblema com o escudo, o título e os rodapés.
   Só acrescenta regras: não altera style.css nem portal.css. */
.login {
  background: #09071a url('/login-bg.jpg') center / cover no-repeat;
  justify-items: start;
  align-content: center;
  padding: 96px clamp(16px, 7vw, 120px) 72px;
  position: relative;
  isolation: isolate;
  color: #f1edff;
  overflow: hidden;
}
/* Escurece o lado do formulário para o texto ler bem; a torre, à direita, fica à mostra. */
.login::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #09071af2 0%, #09071aa6 36%, #09071a00 68%),
    linear-gradient(180deg, #09071a99 0%, #09071a00 22%, #09071a00 78%, #09071acc 100%);
}
/* Linha de varredura lenta, como num monitor de central. */
.login::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  block-size: 140px;
  z-index: -1;
  background: linear-gradient(180deg, #a855f700, #a855f71f, #a855f700);
  animation: lg-scan 9s linear infinite;
  pointer-events: none;
}
@keyframes lg-scan { from { transform: translateY(-160px); } to { transform: translateY(110vh); } }

.lg-top, .lg-bottom {
  position: absolute;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px);
  font-size: 11px;
  letter-spacing: .18em;
  color: #cfc6f5;
}
.lg-top { top: 0; block-size: 72px; }
.lg-bottom { bottom: 0; block-size: 52px; border-top: 1px solid #ffffff14; background: #09071a80; }
.lg-logo { display: flex; align-items: center; gap: 12px; }
.lg-logo img { block-size: 30px; inline-size: auto; }
.lg-logo span { font-weight: 700; letter-spacing: .42em; color: #c4b5fd; padding-inline-start: 12px; border-inline-start: 1px solid #ffffff33; }
.lg-live { display: inline-flex; align-items: center; gap: 8px; }
.lg-dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: lg-blink 2s ease-in-out infinite; }
@keyframes lg-blink { 50% { opacity: .35; } }

.lg-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 11px; letter-spacing: .26em; color: #c4b5fd; }
.lg-eyebrow::before { content: ''; inline-size: 36px; block-size: 1px; background: #a855f7; }

.login .card {
  inline-size: 100%;
  max-width: 420px;
  padding: 30px 28px 22px;
  color: #f1edff;
  background: linear-gradient(160deg, #1b1142d9, #0e0828e6);
  border: 1px solid #8b5cf666;
  border-radius: 20px;
  box-shadow: 0 30px 80px #000c, 0 0 60px #7c3aed33, inset 0 1px 0 #ffffff1f;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
/* Cabeçalho do cartão: emblema com o escudo + boas-vindas. A marca antiga (olho) some quando o brand.js entra. */
.login.lg-ready .card > .brand { display: none; }
.lg-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.lg-emblem {
  flex: none;
  inline-size: 68px;
  block-size: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #7c3aed, #1f6feb);
  box-shadow: 0 10px 30px #7c3aed80, inset 0 1px 0 #ffffff4d;
}
.lg-emblem img { block-size: 48px; inline-size: auto; filter: drop-shadow(0 2px 6px #0006); }
.lg-kicker { display: block; font-size: 10.5px; letter-spacing: .24em; color: #c4b5fd; }
.lg-head h1 { margin: 4px 0 2px; font-size: 24px; font-weight: 500; line-height: 1.15; color: #fff; }
.lg-head h1 strong { font-weight: 800; background: linear-gradient(90deg, #c4b5fd, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg-head p { margin: 0; font-size: 13px; color: #b9aee6; }

.login .card label { color: #cfc6f5; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.login .card .hint { color: #cfc6f5; }
.login .card input {
  min-block-size: 48px;
  background: #0b0622cc;
  border: 1px solid #5b46b0;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
}
.login .card input:focus-visible { outline: 2px solid #a78bfa; outline-offset: 1px; border-color: #a78bfa; box-shadow: 0 0 0 4px #7c3aed33; }
.login .card form button, .login .card .btn.primary {
  inline-size: 100%;
  min-block-size: 50px;
  justify-content: center;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #6366f1);
  background-size: 180% 100%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px #7c3aed66;
  transition: background-position .4s ease, box-shadow .2s ease;
}
.login .card form button:hover { background-position: 100% 0; box-shadow: 0 14px 36px #7c3aed99; }
.login .card form button:disabled { opacity: .7; }
.login .card a { color: #c4b5fd; }
.lg-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #ffffff14; font-size: 10.5px; letter-spacing: .2em; color: #a99ddb; }

@media (max-width: 700px) {
  .login {
    background-image: url('/login-bg-small.jpg');
    background-position: 78% center;
    justify-items: center;
    padding: 84px 16px 64px;
  }
  .login::before { background: linear-gradient(180deg, #09071acc, #09071a99 30%, #09071ae6); }
  .lg-top { block-size: 64px; }
  .lg-top .lg-live, .lg-eyebrow { display: none; }
  .lg-bottom { justify-content: center; font-size: 10px; }
  .lg-bottom span:first-child { display: none; }
  .login .card { padding: 24px 20px 18px; }
  .lg-emblem { inline-size: 58px; block-size: 58px; border-radius: 16px; }
  .lg-emblem img { block-size: 40px; }
  .lg-head h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .login::after, .lg-dot { animation: none; } .login::after { display: none; } }

/* Câmeras da torre que acompanham o mouse (recortes da própria arte; ver brand.js). Ficam abaixo
   do escurecimento (::before) para receber a mesma luz do resto da imagem. */
.lg-cam {
  position: absolute;
  z-index: -2;
  background: url('/login-bg.jpg') no-repeat;
  -webkit-mask-image: radial-gradient(ellipse farthest-side at 50% 50%, #000 80%, transparent 100%);
  mask-image: radial-gradient(ellipse farthest-side at 50% 50%, #000 80%, transparent 100%);
  will-change: transform;
  pointer-events: none;
}
@media (max-width: 700px) { .lg-cam { display: none; } }

/* Câmeras 3D (cam3d.js): a arte de fundo passa a ser a versão sem as duas câmeras de cima. */
.login.lg-3d { background-image: url('/login-bg-3d.jpg'); }
.lg-3d-canvas { position: absolute; z-index: -2; pointer-events: none; }
@media (max-width: 700px) { .login.lg-3d { background-image: url('/login-bg-small.jpg'); } .lg-3d-canvas { display: none; } }

/* Dizeres no estilo do ACS, voltados à segurança. */
.lg-head h1 strong { -webkit-text-fill-color: initial; color: inherit; background: none; }
.lg-head p { line-height: 1.45; }
.login .card form button::after { content: ' →'; }
.lg-extra { display: grid; gap: 6px; margin-top: 16px; font-size: 12.5px; color: #b9aee6; text-align: center; }
.lg-ip { font-variant-numeric: tabular-nums; color: #d8d0ff; }
.lg-credit { letter-spacing: .04em; font-size: 11.5px; text-transform: none; }
@media (max-width: 700px) { .lg-bottom .lg-credit { display: none; } }

/* Frase digitada acima do formulário (como o "Conexões mais inteligentes." do ACS). */
.lg-typed { margin: 0 0 14px; min-block-size: 1.25em; font-size: clamp(24px, 2.6vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 18px #000c; }
.lg-caret { display: inline-block; inline-size: 3px; block-size: .95em; margin-inline-start: 4px; vertical-align: -0.08em; border-radius: 2px; background: #a855f7; box-shadow: 0 0 10px #a855f7; animation: lg-caret 1s steps(1) infinite; }
@keyframes lg-caret { 50% { opacity: 0; } }
@media (max-width: 700px) { .lg-typed { font-size: 22px; text-align: center; margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .lg-caret { animation: none; } }
