/* =====================================================================
   Linha Ativa - tela de login (index.php)
   À esquerda: vitrine (fundo verde, busca de DDD e celular com WhatsApp).
   À direita: coluna clara com o formulário.
   ===================================================================== */

/* Fonte do app: Inter (escolhida pelo dono em 21/11/2026; antes DM Sans) no próprio servidor, só pesos 400-700 e os caracteres usados (28 KB).
   Antes vinha do Google Fonts (2 conexões externas que travavam a primeira pintura). Licença: front/fontes/OFL-Inter.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/front/fontes/inter-v1.woff2") format("woff2"); }

:root {
  --verde-escuro: #121212;
  --verde-escuro-2: #000000;
  --verde: #25D366;
  --verde-claro: #7CF2A9;
  --verde-wa: #00A884;
  --teal: #121212;
  --link: #121212;
  --texto: #111B21;
  --texto-2: #3B4A54;
  --texto-3: #54656F;
  --campo: #f3f4f1;
  --borda: #d9dcd5;
  --fundo: #F7F8F4;
  --erro: #B42318;
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --papel-wa: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22110%22%20height%3D%22110%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.07%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%2018a9%209%200%201%201%203%206.7L12%2026l1.5-4.3A9%209%200%200%201%2014%2018z%22/%3E%3Crect%20x%3D%2270%22%20y%3D%2210%22%20width%3D%2213%22%20height%3D%2222%22%20rx%3D%223%22/%3E%3Cpath%20d%3D%22M92%2064l7%207m0-7-7%207%22/%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%2280%22%20r%3D%226%22/%3E%3Cpath%20d%3D%22M55%2055h17v11H61l-6%205z%22/%3E%3Cpath%20d%3D%22M92%2096l5-8%205%208z%22/%3E%3Cpath%20d%3D%22M12%20102h11M17.5%2096.5v11%22/%3E%3Cpath%20d%3D%22M48%2018c3-4%209-4%2012%200%22/%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%2245%22%20r%3D%222%22/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.login { display: flex; min-height: 100vh; min-height: 100dvh; }

/* =====================================================================
   VITRINE (lado esquerdo)
   ===================================================================== */
.vitrine {
  flex: 1; min-width: 0; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 60% 50% at 55% 45%, #2a3a12 0%, #0f110d 45%, #000000 100%);
}
.vitrine-seda { position: absolute; inset: -15%; filter: blur(26px); pointer-events: none; }
.vitrine-seda span { position: absolute; left: -10%; width: 130%; border-radius: 50%; }
.vitrine-seda span:nth-child(1) { top: 60%; height: 260px; transform: rotate(-4deg); opacity: .8;
  background: linear-gradient(90deg, transparent, #2f4213 40%, #5b7f14 55%, transparent 80%); }
.vitrine-seda span:nth-child(2) { top: 25%; height: 140px; transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent 20%, #1f2b10 50%, transparent 80%); }
.vitrine-escuro { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }

/* Cena: cartão de DDD + celular. O login.js ajusta a escala (--k) ao tamanho da tela. */
.cena {
  position: absolute; left: 50%; top: calc((100% - 200px) / 2 + 10px);
  width: 800px; height: 600px; transform: translate(-50%, -50%) scale(var(--k, .9)); transform-origin: center;
}

/* Cartão "Escolha o seu DDD" */
.ddd {
  position: absolute; left: 0; top: 40px; width: 370px; padding: 22px; z-index: 4;
  border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.ddd h2 { font-size: 16px; font-weight: 700; }
.ddd-sub { display: block; font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 2px; }
.ddd-busca {
  margin: 14px 0 12px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.96);
  display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--texto); font-size: 15px; font-weight: 600;
}
.ddd-busca .ic { color: var(--teal); }
.ddd-cursor { width: 2px; height: 20px; background: var(--verde-wa); margin-left: -8px; animation: piscar 1.1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.ddd-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ddd-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: rgba(255,255,255,.85); border: 1px solid transparent; }
.ddd-lista b { width: 42px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 15px; flex: none; }
.ddd-lista span { flex: 1; line-height: 1.3; }
.ddd-lista small { display: block; font-size: 12px; color: rgba(255,255,255,.55); }
.ddd-lista .on { background: rgba(37,211,102,.16); border-color: rgba(124,242,169,.45); color: #fff; }
.ddd-lista .on b { background: var(--verde); color: #062A1F; }
.ddd-lista .on i { width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #062A1F; display: grid; place-items: center; }
.ddd-lista .on i .ic { width: 13px; height: 13px; stroke-width: 3; }

/* Celular inclinado com uma conversa do WhatsApp */
.fone-sombra { position: absolute; left: 340px; top: 520px; width: 420px; height: 70px; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(30px); z-index: 2; }
.fone {
  position: absolute; left: 450px; top: 10px; width: 270px; height: 540px; border-radius: 40px; padding: 10px; z-index: 3;
  background: linear-gradient(135deg, #2A302E, #0B0F0E 55%, #1B2622);
  transform: perspective(1300px) rotateY(-26deg) rotateX(12deg) rotate(-7deg);
  box-shadow: -50px 70px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15);
}
.wa { width: 100%; height: 100%; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; position: relative;
  background: #EFEAE2 var(--papel-wa); color: var(--texto); }
.wa::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%); }
.wa-topo { background: var(--teal); color: #fff; display: flex; align-items: center; gap: 9px; padding: 30px 14px 12px; }
.wa-av { width: 34px; height: 34px; border-radius: 50%; background: var(--verde); color: #0f110d; display: grid; place-items: center; flex: none; }
.wa-av .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.wa-topo b { display: block; font-size: 13.5px; font-weight: 600; }
.wa-topo small { font-size: 11px; opacity: .85; }
.wa-topo > .ic { margin-left: auto; width: 16px; height: 16px; }
.wa-corpo { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.wa-dia { align-self: center; font-size: 10px; color: var(--texto-3); background: #fff; padding: 4px 9px; border-radius: 7px; box-shadow: 0 1px .5px rgba(0,0,0,.1); }
.wa-aviso { align-self: center; text-align: center; font-size: 10.5px; line-height: 1.4; color: var(--texto-3); background: #FFEECD; padding: 6px 10px; border-radius: 7px; max-width: 92%; display: flex; gap: 6px; align-items: center; }
.wa-aviso .ic { width: 13px; height: 13px; color: var(--verde-wa); stroke-width: 2.6; }
.wa-msg { max-width: 84%; padding: 6px 9px 5px; border-radius: 8px; font-size: 11.5px; line-height: 1.38; background: #fff; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.wa-msg.eu { align-self: flex-end; background: #D9FDD3; }
.wa-msg em { font-style: normal; display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 9.5px; color: #667781; margin-top: 1px; }
.wa-msg .tk { width: 16px; height: 11px; fill: none; stroke: #53BDEB; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-barra { padding: 8px 8px 14px; display: flex; gap: 6px; align-items: center; }
.wa-barra span { flex: 1; height: 34px; border-radius: 17px; background: #fff; display: flex; align-items: center; padding: 0 12px; font-size: 11.5px; color: #8696A0; }
.wa-barra i { width: 34px; height: 34px; border-radius: 50%; background: var(--verde-wa); color: #fff; display: grid; place-items: center; }
.wa-barra i .ic { width: 16px; height: 16px; }

.vitrine-titulo {
  position: absolute; left: 56px; right: 56px; bottom: 56px; z-index: 5; max-width: 640px;
  font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px;
}
.vitrine-titulo em { font-style: normal; color: var(--verde-claro); }

/* =====================================================================
   ACESSO (lado direito)
   ===================================================================== */
.acesso {
  width: 540px; flex: none; display: flex; flex-direction: column; padding: 52px 60px 40px;
  background: var(--fundo); border-left: 1px solid rgba(0,0,0,.05);
}
.acesso-logo { align-self: flex-start; border-radius: 8px; }
.acesso-logo img { height: 50px; width: auto; }

.form { margin: auto 0; padding: 40px 0; display: flex; flex-direction: column; gap: 18px; }

.alerta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.45;
  background: #FEF0EF; color: var(--erro); border: 1px solid #F6C9C5; }
.alerta .ic { margin-top: 1px; }
.alerta[hidden] { display: none; }
.alerta.ok { background: #f2f9e6; color: #3f6212; border-color: #d7ebb4; }

.campo { display: flex; flex-direction: column; gap: 7px; }
.campo label { font-size: 15px; color: var(--texto-2); }
.entrada {
  height: 40px; display: flex; align-items: stretch; border: 1px solid var(--borda); border-radius: 6px;
  background: var(--campo); overflow: hidden; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.entrada:focus-within { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(0,128,105,.15); }
.entrada input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; font-size: 16px; color: var(--texto); }
.entrada input::placeholder { color: #8696A0; }
.entrada input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--campo) inset; -webkit-text-fill-color: var(--texto); }
.campo.erro .entrada { border-color: var(--erro); box-shadow: 0 0 0 3px rgba(180,35,24,.12); }

.olho { width: 56px; flex: none; border: 0; border-left: 1px solid var(--borda); background: #fff; color: var(--texto-3); display: grid; place-items: center; cursor: pointer; }
.olho:hover { color: var(--texto); }
.olho:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.olho .ic { width: 20px; height: 20px; }
.olho .ic-fechado { display: none; }
.olho[aria-pressed="true"] .ic-aberto { display: none; }
.olho[aria-pressed="true"] .ic-fechado { display: block; }

.caps { font-size: 13px; color: #9A6B00; display: flex; align-items: center; gap: 6px; }
.caps[hidden] { display: none; }
.caps .ic { width: 15px; height: 15px; }

.linha { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-top: 2px; }
.marcar { display: inline-flex; align-items: center; gap: 9px; color: var(--texto-2); cursor: pointer; user-select: none; }
.marcar input {
  appearance: none; -webkit-appearance: none; margin: 0; width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid #8FA79B; background: #fff center / 12px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.marcar input:checked {
  border-color: var(--verde-escuro); background-color: var(--verde-escuro);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012.5%204.5%204.5L19%207.5%22/%3E%3C/svg%3E");
}
.marcar input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.link { color: var(--link); font-weight: 500; text-decoration: none; border-radius: 4px; }
.link:hover { text-decoration: underline; }
.link:focus-visible, .acesso-logo:focus-visible, .botao-linha:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.botao {
  margin-top: 22px; height: 36px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--verde-escuro); color: #fff; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background-color .15s, transform .05s;
}
.botao:hover { background: var(--verde-escuro-2); }
.botao:active { transform: translateY(1px); }
.botao:focus-visible { outline: 3px solid rgba(0,128,105,.45); outline-offset: 2px; }
.botao[disabled] { cursor: progress; opacity: .85; }
.botao .giro { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: girar .7s linear infinite; }
.botao.carregando .giro { display: block; }
@keyframes girar { to { transform: rotate(360deg); } }

.criar { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 14.5px; color: var(--texto-2); margin-bottom: 36px; }
.botao-linha {
  height: 36px; padding: 0 18px; border: 1px solid var(--link); border-radius: 6px; display: inline-grid; place-items: center;
  color: var(--link); font-weight: 600; font-size: 14px; text-decoration: none; transition: background-color .15s;
}
.botao-linha:hover { background: rgba(11,107,82,.07); }

/* =====================================================================
   TELAS MENORES
   ===================================================================== */
@media (max-width: 1240px) {
  .acesso { width: 460px; padding: 44px 48px 36px; }
  .vitrine-titulo { font-size: 36px; left: 44px; bottom: 44px; }
}
@media (max-width: 900px) {
  .vitrine { display: none; }
  /* Celular: logo, formulário e "Criar conta" juntos e centralizados na tela */
  .acesso { width: 100%; border-left: 0; align-items: center; justify-content: center; padding: 32px 22px; }
  .acesso > * { width: 100%; max-width: 400px; }
  .acesso-logo { align-self: center; width: auto; max-width: none; }
  .acesso-logo img { height: 46px; }
  .form { margin: 36px 0 0; padding: 0; }
  .botao { margin-top: 10px; }
  .criar { margin: 32px 0 0; gap: 12px; flex-direction: column; font-size: 14px; }
  .botao-linha { width: 100%; height: 36px; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .acesso { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ddd-cursor, .botao .giro { animation: none; }
}

/* =====================================================================
   TEMA PREMIUM (variação 5): quase preto com detalhes em lima (cores da Numera)
   Escolhido pelo dono em 15/11/2026. O celular desenhado continua com as
   cores do WhatsApp, porque mostra o aplicativo de verdade.
   ===================================================================== */
:root {
  --verde-escuro: #1E2022;     /* botão principal */
  --verde-escuro-2: #0E0F10;
  --link: #121212;            /* links e botão de contorno (20/11/2026: preto) */
  --campo: #F3F4F1;
  --borda: #D7DBD3;
  --lima: #8DD600;
  --lima-esc: #6FAE00;
  --lima-claro: #A6EB1F;
}
/* Fundo (20/11/2026, paleta Numera): preto com um brilho leve de limão. Antes: verde-oliva (opção 2 de 15/11/2026) */
.vitrine { background: radial-gradient(ellipse 65% 55% at 60% 40%, #2A3317 0%, #141611 48%, #070707 100%); }
.vitrine-seda span:nth-child(1) { background: linear-gradient(90deg, transparent, #262E16 40%, #3A4A18 55%, transparent 80%); }
.vitrine-seda span:nth-child(2) { background: linear-gradient(90deg, transparent 20%, #1E2412 50%, transparent 80%); }
.vitrine-titulo em { color: var(--lima-claro); }
.ddd-busca .ic { color: var(--lima-esc); }
.ddd-cursor { background: var(--lima); }
.ddd-lista .on { background: rgba(166,235,31,.14); border-color: rgba(166,235,31,.45); }
.ddd-lista .on b, .ddd-lista .on i { background: var(--lima); color: #151618; }
.entrada:focus-within { border-color: var(--lima-esc); box-shadow: 0 0 0 3px rgba(111,174,0,.18); }
.olho:focus-visible, .marcar input:focus-visible, .link:focus-visible, .acesso-logo:focus-visible, .botao-linha:focus-visible { outline-color: var(--lima-esc); }
.marcar input { border-color: #A3A9A0; }
.botao:focus-visible { outline-color: rgba(111,174,0,.5); }
.botao-linha:hover { background: rgba(111,174,0,.08); }

/* Ajustes de layout (20/11/2026): título visível na tela de entrar (mesmo do cadastro) e botão principal maior */
.form-topo { margin-bottom: 4px; }
.form-topo h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; color: var(--texto); }
.form-topo p { margin-top: 6px; font-size: 15px; color: var(--texto-3); }
.botao { height: 46px; font-size: 15px; }
@media (max-width: 900px) { .form-topo h1 { font-size: 24px; } }

/* Esqueci minha senha (/recuperar-senha, 23/11/2026) */
.rs-dica { margin: 14px 0 0; font-size: 14px; color: var(--texto-3); text-align: center; }
.rs-dica a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-topo p b { color: var(--texto-1, #121212); font-weight: 600; overflow-wrap: anywhere; }
