/* Strategista · páginas de autenticação */

:root {
  --azul-profundo: #0A2ECC;
  --azul-eletrico: #0540F2;
  --ciano: #2BB8FF;
  --grafite: #0A1024;
  --n-100: #F4F5F7;
  --n-200: #E5E7EB;
  --n-400: #9CA3AF;
  --n-500: #6B7280; /* contraste >= 4.5:1 sobre branco, para texto real; n-400 fica so para bordas e icones */
  --n-700: #374151;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color: var(--grafite);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }
img { max-width: 100%; }
a { color: inherit; }

.auth { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Painel visual ---------- */
.auth-visual {
  position: relative;
  background-color: var(--grafite);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 48px;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(6, 11, 26, .94) 0%, rgba(10, 16, 36, .82) 55%, rgba(5, 64, 242, .38) 130%);
}
.auth-visual > * { position: relative; }
.av-logo { width: 220px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .4)); }
.av-meio h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; max-width: 420px; }
.av-meio h1 em { font-style: normal; background: linear-gradient(120deg, var(--ciano), #8ed7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-lista { list-style: none; margin-top: 28px; }
.av-lista li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: #C9CEDD;
  padding: 8px 0;
}
.av-lista svg { width: 20px; height: 20px; color: var(--ciano); flex-shrink: 0; }
.av-selo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  max-width: 420px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 22px;
}
.av-selo strong {
  font-size: 34px;
  font-weight: 500;
  background: linear-gradient(120deg, var(--ciano), #8ed7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.av-selo span { font-size: 13px; line-height: 1.5; color: #C9CEDD; }
.av-rodape { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8B92A8; }
.av-rodape a { color: var(--ciano); text-decoration: none; }
.av-rodape a:hover { text-decoration: underline; }

/* ---------- Painel do formulário ---------- */
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 28px;
  background:
    radial-gradient(ellipse 640px 420px at 110% -5%, rgba(43, 184, 255, .12), transparent 60%),
    radial-gradient(ellipse 560px 400px at -10% 110%, rgba(5, 64, 242, .09), transparent 60%),
    var(--n-100);
}
.af-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 22px;
  padding: 28px 32px 20px;
  box-shadow: 0 34px 80px rgba(10, 16, 36, .14), 0 6px 22px rgba(10, 16, 36, .06);
}
.af-simbolo { width: 38px; margin-bottom: 12px; filter: drop-shadow(0 6px 14px rgba(5, 64, 242, .3)); }
.af-card > h2 { font-size: 23px; font-weight: 600; letter-spacing: -.015em; }
.af-sub { font-size: 13.5px; color: var(--n-700); margin: 5px 0 16px; }
.af-sub strong { color: var(--grafite); }

/* social */
.social { display: grid; grid-template-columns: 1fr; gap: 8px; }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px;
  transition: transform .15s, box-shadow .2s, background .15s, border-color .15s;
}
.social a:hover { transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; flex-shrink: 0; }
/* o botão do Google segue as regras de marca dele: fundo branco, borda 1px #747775, texto #1F1F1F em
   Roboto Medium e o "G" colorido original; o texto é um dos aprovados, "Fazer login com o Google" */
.social-google { border: 1px solid #747775; color: #1F1F1F; background: #fff; font-family: 'Roboto', 'Archivo', system-ui, sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .1px; }
.social-google:hover { border-color: #747775; background: #F8F9FA; box-shadow: 0 10px 24px rgba(10, 16, 36, .1); }
.social-linkedin { border: 1.5px solid var(--n-200); background: #fff; color: var(--n-700); }
.social-linkedin svg { color: #0A66C2; }
.social-linkedin:hover { border-color: #0A66C2; box-shadow: 0 10px 24px rgba(10, 102, 194, .16); }
.social-nota { font-size: 12px; line-height: 1.45; color: var(--n-500); text-align: center; margin: 8px 0 0; }
/* termos e privacidade: pedidos pelo Google para o login com a conta dele, e úteis para quem entra */
.af-legal { margin: 14px 0 0; font-size: 12px; text-align: center; color: var(--n-500); }
.af-legal a { color: var(--n-500); text-decoration: underline; text-underline-offset: 2px; }
.af-legal a:hover { color: var(--azul-profundo, #0A2ECC); }

.divisor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  color: var(--n-500);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.divisor::before, .divisor::after { content: ''; flex: 1; height: 1px; background: var(--n-200); }

/* abas */
.abas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--n-100);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 20px;
}
.aba {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--n-700);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.aba.ativa { background: #fff; color: var(--azul-profundo); box-shadow: 0 3px 10px rgba(10, 16, 36, .1); }

/* formulários */
.af-form[hidden] { display: none; }
.af-form label { display: block; margin-bottom: 10px; }
.af-form label > span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--n-700);
  margin-bottom: 6px;
}
.af-form input[type=email],
.af-form input[type=password],
.af-form input[type=text] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1.5px solid var(--n-200);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.af-form input:focus { border-color: var(--azul-eletrico); box-shadow: 0 0 0 3px rgba(5, 64, 242, .12); }

.campo-senha { position: relative; }
.campo-senha input { padding-right: 46px; }
.olho {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--n-400);
  display: flex;
}
.olho:hover { color: var(--n-700); }
.olho svg { width: 19px; height: 19px; }

.af-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 13.5px;
}
.switch-linha { display: flex; align-items: center; gap: 10px; color: var(--n-700); cursor: pointer; user-select: none; font-weight: 500; white-space: nowrap; }
/* dentro do formulário, a regra geral de rótulo (bloco, com o texto em cima) vencia a chave e
   empurrava o "Lembrar de mim" para baixo dela */
.af-form .switch-linha { display: flex; margin-bottom: 0; }
.af-form .switch-linha > .switch { display: inline-block; margin-bottom: 0; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: var(--n-200);
  transition: background .25s, box-shadow .25s;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(10, 16, 36, .25);
  transition: transform .25s cubic-bezier(.4, 1.6, .6, 1);
}
.switch input:checked + i {
  background: linear-gradient(135deg, var(--ciano), var(--azul-eletrico));
  box-shadow: 0 4px 12px rgba(5, 64, 242, .35);
}
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled + i { opacity: .45; cursor: not-allowed; }
.af-linha a { color: var(--azul-profundo); text-decoration: none; font-weight: 500; }
.af-linha a:hover { text-decoration: underline; }

.botao {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--ciano), var(--azul-eletrico) 55%, var(--azul-profundo));
  background-size: 150% 150%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: background-position .3s, transform .15s, box-shadow .3s;
  box-shadow: 0 8px 22px rgba(5, 64, 242, .3);
}
.botao:hover { background-position: 100% 100%; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(5, 64, 242, .4); }
.botao-fantasma { background: none; box-shadow: none; color: var(--azul-profundo); font-weight: 500; padding: 8px; }
.botao-fantasma:hover { background: rgba(5, 64, 242, .06); box-shadow: none; }

/* código de 6 dígitos */
.codigo-input {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 26px !important;
  letter-spacing: 16px;
  text-align: center;
  padding: 14px 0 14px 16px !important;
}
.codigo-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--n-500);
  text-align: center;
  margin: 10px 0 0;
}

/* mensagens */
.aviso { border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.aviso-erro { background: rgba(220, 38, 38, .07); color: #7F1D1D; border: 1px solid rgba(220, 38, 38, .25); }
.aviso-ok { background: rgba(22, 163, 74, .09); color: #14532D; border: 1px solid rgba(22, 163, 74, .25); }
.aviso-info { background: rgba(217, 119, 6, .08); color: #78350F; border: 1px solid rgba(217, 119, 6, .28); }

.af-passo { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--n-500); flex: none; }
.af-nota { font-size: 12.5px; line-height: 1.4; color: var(--n-500); }

/* foco visível de teclado em tudo que é clicável (o anel do navegador some no botão colorido) */
.social a:focus-visible, .botao:focus-visible, .af-voltar:focus-visible,
.email-chip button:focus-visible, .switch input:focus-visible + i {
  outline: 2px solid var(--azul-eletrico);
  outline-offset: 2px;
}

.email-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--n-100);
  border: 1px solid var(--n-200);
  border-radius: 21px; /* pílula com uma linha, cartão arredondado quando o e-mail quebra */
  padding: 8px 8px 8px 15px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--n-700);
}
.email-chip svg { width: 18px; height: 18px; color: var(--azul-eletrico); flex-shrink: 0; }
.email-chip svg, .email-chip form { flex-shrink: 0; }
/* min-width: 0 deixa o e-mail encolher e quebrar em duas linhas (antes do @, pelo <wbr> da tela):
   sem isso, o item flexível media o texto inteiro e um e-mail longo empurrava o cartão para fora da
   tela do celular (achado 3 do QA de 24/09). Reticências não serviam: escondiam o domínio. */
.email-chip span { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; font-weight: 500; color: var(--grafite); }
.email-chip button {
  appearance: none;
  border: none;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 99px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--azul-profundo);
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.email-chip button:hover { border-color: var(--azul-eletrico); background: rgba(5, 64, 242, .05); }

.reenviar { margin-top: 10px; }
.reenviar .botao-fantasma { width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 13px; }

.af-voltar { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--n-500); text-decoration: none; }
.af-voltar:hover { color: var(--azul-profundo); }

/* ---------- Página não encontrada (nao-encontrada.php), para quem não está logado ---------- */
.auth-unica { min-height: 100vh; }
.nf-card { text-align: center; padding-top: 34px; }
.nf-logo { display: inline-block; margin-bottom: 22px; }
.nf-logo img { width: 190px; display: block; }
.nf-codigo { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-eletrico); margin-bottom: 6px; }
.nf-card .af-sub { margin-bottom: 14px; }
.nf-endereco {
  font-size: 13px;
  color: var(--n-700);
  background: var(--n-100);
  border: 1px dashed var(--n-200);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.nf-card .botao { text-decoration: none; }
.nf-nota { font-size: 12.5px; color: var(--n-500); margin-top: 10px; line-height: 1.45; }

@media (max-width: 900px) {
  /* minmax(0, 1fr): a coluna não cresce além da tela por causa de um conteúdo largo */
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-visual { display: none; }
  .auth-form { min-height: 100vh; align-items: flex-start; padding-top: 48px; }
  .af-card { padding: 30px 22px 24px; }
}

/* celular estreito (320 a 420): menos moldura em volta do cartão, para o e-mail e a linha do
   "Lembrar de mim" caberem; a linha quebra em vez de vazar o "passo 2 de 2" para fora do cartão */
@media (max-width: 420px) {
  .auth-form { padding: 28px 12px 24px; }
  .af-card { padding: 26px 18px 20px; border-radius: 18px; }
  .af-linha { flex-wrap: wrap; row-gap: 8px; }
}

/* ---------- páginas públicas de texto: Política de Privacidade e Termos de Uso ---------- */
.doc-pagina { background: #F2F4F9; }
.doc-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 820px; margin: 0 auto; padding: 22px 20px 0; }
.doc-logo img { height: 34px; width: auto; display: block; }
.doc-entrar { font-size: 14px; font-weight: 600; color: var(--azul-eletrico); text-decoration: none; white-space: nowrap; }
.doc-entrar:hover { text-decoration: underline; }
.doc { max-width: 820px; margin: 18px auto 0; background: #fff; border: 1px solid var(--n-200); border-radius: 16px; padding: 40px 48px; color: var(--n-700); font-size: 15.5px; line-height: 1.7; }
.doc h1 { font-size: 28px; line-height: 1.25; color: var(--grafite); font-weight: 600; margin: 6px 0 4px; }
.doc h2 { font-size: 18px; color: var(--grafite); font-weight: 600; margin: 30px 0 8px; }
.doc h3, .doc h4 { font-size: 16px; color: var(--grafite); font-weight: 600; margin: 22px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px 22px; }
.doc li { margin: 0 0 6px; }
.doc a { color: var(--azul-eletrico); overflow-wrap: anywhere; }
.doc code, .doc p .mono, .doc li .mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 13.5px; background: var(--n-100); border-radius: 5px; padding: 1px 5px; }
/* o rótulo de cima também é mono, mas é título pequeno, não trecho de código: sem a caixa cinza */
.doc-sobre { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-eletrico); margin: 0 0 2px !important; }
.doc-data { font-size: 13px; color: var(--n-500); margin-bottom: 22px !important; }
.doc-nota { margin-top: 26px !important; padding-top: 16px; border-top: 1px solid var(--n-200); font-size: 14px; color: var(--n-500); }
.doc-rodape { max-width: 820px; margin: 0 auto; padding: 22px 20px 36px; text-align: center; font-size: 13px; color: var(--n-500); }
.doc-rodape p { margin: 0 0 6px; }
.doc-rodape a { color: var(--n-500); }
@media (max-width: 640px) {
  .doc { margin: 14px 12px 0; padding: 24px 18px; font-size: 15px; border-radius: 12px; }
  .doc h1 { font-size: 23px; }
  .doc-topo { padding: 16px 16px 0; }
  .doc-logo img { height: 28px; }
}
