/* ==========================================================================
   Lara · tela de login nova (app/partials/login.html)
   Base: login do Mapper (voxter.com.br/a/layouts/login.html), com o logo do
   Lara e as cores Voxter. Fundo: a foto que o Lara já usa (fotobg_lara.jpg) sob
   o azul do site da Voxter (#000033), faixa vermelha no topo e o globo de rede
   (assets/js/lara-globo.js). Tudo dentro de .lx-login: não afeta o resto do sistema.
   ========================================================================== */
.lx-login {
  --lx-l-azul: #000033;
  --lx-l-vermelho: #d14d52;
  --lx-l-vermelho-hover: #bb4247;
  --lx-l-navy: #0a2d42;
  --lx-l-texto: #1f2a37;
  --lx-l-texto-2: #475467;
  --lx-l-mudo: #667085;
  --lx-l-linha: #e3e8ef;
  --lx-l-campo: #f8fafc;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  background: var(--lx-l-azul);
  color: var(--lx-l-texto);
  font-family: "Ubuntu", system-ui, sans-serif;
}
.lx-login *, .lx-login *::before, .lx-login *::after { box-sizing: border-box; }
.lx-login ::selection { background: var(--lx-l-vermelho); color: #fff; }

/* fundo: foto em preto e branco + azul do site, no mesmo degradê do hero */
.lx-login-fundo { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.lx-login-fundo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/fotobg_lara.jpg") center / cover no-repeat;
  filter: grayscale(.85) brightness(.9);
}
.lx-login-fundo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(97deg, rgba(0, 0, 51, .82) 0%, rgba(0, 0, 51, .62) 30%, rgba(0, 0, 51, .34) 58%, rgba(0, 0, 51, .16) 100%),
    linear-gradient(to top, rgba(0, 0, 51, .6) 0%, rgba(0, 0, 51, .2) 38%, rgba(0, 0, 51, .08) 70%, rgba(0, 0, 51, .22) 100%);
}
.lx-login-barra { position: fixed; top: 0; left: 0; right: 0; z-index: 3; height: 6px; background: var(--lx-l-vermelho); }
/* globo (lara-globo.js): entre o fundo e o conteúdo */
.lx-globo { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* conteúdo: boas-vindas à esquerda, cartão à direita */
.lx-login-conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: 1920px;
  min-height: 100%;
  margin: 0 auto;
  padding: 48px clamp(24px, 8vw, 190px);
}

/* boas-vindas, com o "glitch" do modelo ao passar o mouse */
.lx-login-boasvindas {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  cursor: default;
  animation: lx-l-entra .9s cubic-bezier(.2, .8, .2, 1) both;
}
.lx-login-boasvindas .glitch { position: relative; display: inline-block; width: fit-content; }
.lx-login-boasvindas .glitch::before,
.lx-login-boasvindas .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.lx-login-boasvindas:hover .glitch::before { opacity: .8; left: 3px; text-shadow: -2px 0 var(--lx-l-vermelho); animation: lx-l-glitch1 4s infinite linear; }
.lx-login-boasvindas:hover .glitch::after { opacity: .8; left: -3px; text-shadow: 2px 0 #68a8f0; animation: lx-l-glitch2 4s infinite linear; }
@keyframes lx-l-glitch1 {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
  2% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
  4% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
  6% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
  8% { clip-path: inset(10% 0 30% 0); transform: translate(-1px, 1px); }
  10%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); opacity: 0; }
}
@keyframes lx-l-glitch2 {
  0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
  2% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
  4% { clip-path: inset(30% 0 20% 0); transform: translate(2px, -2px); }
  6% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 1px); }
  8% { clip-path: inset(40% 0 40% 0); transform: translate(1px, -1px); }
  10%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); opacity: 0; }
}
@keyframes lx-l-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lx-l-cartao { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* cartão */
.lx-login-cartao {
  flex: none;
  width: 340px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .5);
  animation: lx-l-cartao .7s cubic-bezier(.2, .8, .2, 1) both;
}
.lx-login-principal { position: relative; padding: 26px 26px 22px; }
.lx-login-logo { display: flex; justify-content: center; margin: 0 0 22px; }
.lx-login-logo img { height: 44px; width: auto; max-width: 100%; }
.lx-login-secao { animation: lx-l-entra .3s ease both; }
.lx-login-secao + .lx-login-secao { margin-top: 0; }
.lx-login-titulo { margin: 0 0 18px; text-align: center; }
.lx-login-titulo h2 { margin: 0; color: var(--lx-l-texto); font-size: 14px; font-weight: 700; line-height: 1.3; }
.lx-login-titulo p { margin: 4px 0 0; color: var(--lx-l-mudo); font-size: 12px; }
.lx-login-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }

/* campos com ícone */
.lx-campo { position: relative; display: flex; align-items: center; }
.lx-campo > svg.lx-campo-ico {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #9aa4b2;
  pointer-events: none;
  transition: color .2s ease;
}
.lx-campo:focus-within > svg.lx-campo-ico { color: var(--lx-l-vermelho); }
.lx-campo input {
  width: 100%;
  height: 46px;
  padding: 0 40px;
  border: 1px solid var(--lx-l-linha);
  border-radius: 10px;
  background: var(--lx-l-campo);
  color: var(--lx-l-texto);
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lx-campo input::placeholder { color: #9aa4b2; }
.lx-campo input:focus { border-color: var(--lx-l-vermelho); background: #fff; box-shadow: 0 0 0 3px rgba(209, 77, 82, .14); }
.lx-campo input.lx-codigo { padding: 0 14px; text-align: center; letter-spacing: .5em; font-weight: 700; }
.lx-campo-olho {
  position: absolute;
  right: 10px;
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: none;
  color: #9aa4b2;
  cursor: pointer;
}
.lx-campo-olho:hover { color: var(--lx-l-vermelho); }
.lx-campo-olho svg { width: 16px; height: 16px; }

/* captcha (marca o espaço; o widget do reCAPTCHA entra aqui) */
.lx-captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--lx-l-linha);
  border-radius: 10px;
  background: var(--lx-l-campo);
  color: var(--lx-l-texto-2);
  font-size: 12px;
}
.lx-captcha label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.lx-captcha input { width: 16px; height: 16px; margin: 0; accent-color: var(--lx-l-vermelho); cursor: pointer; }
.lx-captcha svg { width: 20px; height: 20px; color: #8aa4c8; }

/* Lembrar (chave) e Recuperar senha */
.lx-login-opcoes { display: flex; align-items: center; justify-content: space-between; padding: 2px 0; }
.lx-chave { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--lx-l-texto-2); font-size: 12px; cursor: pointer; }
.lx-chave input { position: absolute; opacity: 0; width: 0; height: 0; }
.lx-chave span.lx-chave-trilho {
  position: relative;
  flex: none;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #dfe4ea;
  transition: background-color .2s ease;
}
.lx-chave span.lx-chave-trilho::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .25);
  transition: transform .2s ease;
}
.lx-chave input:checked + span.lx-chave-trilho { background: var(--lx-l-vermelho); }
.lx-chave input:checked + span.lx-chave-trilho::after { transform: translateX(12px); }
.lx-chave input:focus-visible + span.lx-chave-trilho { outline: 2px solid var(--lx-l-vermelho); outline-offset: 2px; }
.lx-chave:hover { color: var(--lx-l-texto); }

/* botões e links */
.lx-btn-principal {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--lx-l-vermelho);
  box-shadow: 0 8px 18px -8px rgba(209, 77, 82, .7);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.lx-btn-principal:hover { background: var(--lx-l-vermelho-hover); }
.lx-btn-principal:active { transform: scale(.98); }
.lx-btn-principal[disabled] { opacity: .7; cursor: wait; }
.lx-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lx-l-vermelho);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.lx-link:hover { color: var(--lx-l-vermelho-hover); }
.lx-link-voltar { width: 100%; color: var(--lx-l-mudo); text-align: center; }
.lx-link-voltar:hover { color: var(--lx-l-vermelho); }
.lx-login-acesso {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef1f5;
}
.lx-login-acesso button { display: inline-flex; align-items: center; gap: 6px; color: var(--lx-l-mudo); }
.lx-login-acesso button:hover { color: var(--lx-l-vermelho); }
.lx-login-acesso svg { width: 14px; height: 14px; }
.lx-login-carregando { margin: 0 0 12px; color: var(--lx-l-mudo); font-size: 12px; text-align: center; }

/* rodapé do cartão: aplicativo */
.lx-login-apps { padding: 16px 26px 20px; border-top: 1px solid var(--lx-l-linha); background: #f3f5f8; text-align: center; }
.lx-login-apps h3 { margin: 0 0 10px; color: var(--lx-l-mudo); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; }
.lx-login-lojas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-loja {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, transform .3s ease;
}
.lx-loja:hover { background: #374151; color: #fff; transform: translateY(-2px); }
.lx-loja svg { flex: none; width: 18px; height: 18px; }

/* assinatura: logo da Voxter */
/* mesmo recuo do texto de boas-vindas (o conteúdo é centralizado em telas muito largas) */
.lx-login-assinatura { position: fixed; left: max(clamp(24px, 8vw, 190px), calc((100vw - 1920px) / 2 + clamp(24px, 8vw, 190px))); bottom: 34px; z-index: 2; display: inline-flex; opacity: .9; transition: opacity .2s ease; }
.lx-login-assinatura:hover { opacity: 1; }
.lx-login-assinatura img { height: 28px; width: auto; }

/* tablet e celular: cartão no centro, boas-vindas menor em cima */
@media (max-width: 991.98px) {
  .lx-login-conteudo { flex-direction: column; justify-content: center; gap: 28px; padding: 56px 16px 40px; }
  .lx-login-boasvindas { align-items: center; font-size: clamp(1.8rem, 7vw, 2.6rem); text-align: center; }
  .lx-login-assinatura { position: static; justify-content: center; margin: -8px auto 0; }
  .lx-login-cartao { width: min(360px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-login *, .lx-login *::before, .lx-login *::after { animation: none !important; transition: none !important; }
}

/* cursor: seta em tudo que não é ação; texto só nos campos; mãozinha em botões e links */
body.login-route-active,
.lx-login { cursor: default; }
.lx-login .lx-campo input { cursor: text; }
.lx-login :is(button, a, label, .lx-captcha input) { cursor: pointer; }
.lx-login .lx-btn-principal[disabled] { cursor: wait; }
