/* ==========================================================================
   Login v2 (rebrand DarkBets). Página própria: não carrega o CSS antigo
   (nem o fonts.css, que tem regras de login com !important que tiram o olho da senha do campo).
   ========================================================================== */
@font-face {
  font-family: "FS Elliot Pro";
  src: url("../fonts/FS%20Elliot%20ProBold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --lv-void: #07060b;
  --lv-ink-0: #0d0a13;
  --lv-ink-1: #130f19;
  --lv-line: rgba(236, 228, 255, .08);
  --lv-line-2: rgba(236, 228, 255, .15);
  --lv-text: #f3f0f8;
  --lv-muted: #a59eb5;
  --lv-dim: #6d6680;
  --lv-cyan: #00ffff;
  --lv-cyan-2: #00cccc;
  --lv-magenta: #e24095;
  --lv-sky: #0ea5e9;
  --lv-loss: #ff5470;
  --lv-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --lv-display: "FS Elliot Pro", "Poppins", system-ui, sans-serif;
  --lv-body: "Poppins", system-ui, sans-serif;
  --lv-mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body.lv {
  background: var(--lv-ink-0); color: var(--lv-text); font-family: var(--lv-body); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
:where(.lv) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.lv) input { font: inherit; color: inherit; }
.lv :focus-visible { outline: 2px solid var(--lv-cyan); outline-offset: 2px; border-radius: 8px; }

/* fundo: grade técnica + brilho da marca */
.lv-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.lv-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 55% at 50% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(120% 55% at 50% 0%, #000 25%, transparent 75%);
}
.lv-bg::after {
  content: ""; position: absolute; inset: -10% -20% auto; height: 420px;
  background: radial-gradient(45% 60% at 30% 35%, rgba(14, 165, 233, .18), transparent 70%), radial-gradient(40% 55% at 80% 20%, rgba(226, 64, 149, .14), transparent 70%);
}

.lv-main {
  width: 100%; max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

/* marca: símbolo do logo (sem o slogan) + nome em fonte */
.lv-marca { display: grid; justify-items: center; gap: 12px; margin-bottom: 26px; }
.lv-simbolo { width: 96px; height: 96px; filter: drop-shadow(0 18px 40px rgba(226, 64, 149, .25)); }
.lv-simbolo img { display: block; width: 96px; height: 96px; }
.lv-wordmark { font-family: var(--lv-display); font-weight: 700; font-size: 30px; line-height: 1; display: flex; gap: .24em; letter-spacing: .01em; }
.lv-b { color: var(--lv-magenta); }
.lv-marca.is-play .lv-simbolo img { animation: lv-glitch 700ms steps(1) both; }
.lv-marca.is-play .lv-wordmark { animation: lv-digita 480ms steps(9) 250ms both, lv-croma 400ms var(--lv-ease-out) 600ms both; }
@keyframes lv-glitch {
  0% { opacity: 0; }
  14% { opacity: 1; filter: drop-shadow(-4px 0 rgba(0, 255, 255, .9)) drop-shadow(4px 0 rgba(226, 64, 149, .9)); transform: translateX(-3px); }
  30% { opacity: .5; transform: translateX(4px); }
  46% { opacity: 1; filter: drop-shadow(-2px 0 rgba(0, 255, 255, .7)) drop-shadow(2px 0 rgba(226, 64, 149, .7)); transform: none; }
  100% { opacity: 1; filter: none; }
}
@keyframes lv-digita { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lv-croma { from { text-shadow: -3px 0 rgba(0, 255, 255, .85), 3px 0 rgba(226, 64, 149, .85); } to { text-shadow: none; } }

/* cartão */
.lv-card {
  position: relative; padding: 22px 18px 20px; border-radius: 22px; border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(30, 22, 44, .9), rgba(17, 13, 23, .92)) padding-box,
    linear-gradient(135deg, rgba(0, 255, 255, .45), rgba(14, 165, 233, .12) 40%, rgba(226, 64, 149, .45)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.lv-titulo { font-family: var(--lv-display); font-weight: 700; font-size: 24px; line-height: 1.1; margin-bottom: 6px; text-wrap: balance; }
.lv-sub { color: var(--lv-muted); font-size: 13px; margin-bottom: 18px; }

.lv-aviso { padding: 11px 12px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.lv-aviso.is-erro { color: #ffb3c0; background: rgba(255, 84, 112, .08); border-color: rgba(255, 84, 112, .35); }
.lv-aviso.is-alerta { color: #ffd59a; background: rgba(245, 185, 66, .08); border-color: rgba(245, 185, 66, .35); }
.lv-aviso.is-ok { color: #b6ffff; background: rgba(0, 255, 255, .06); border-color: rgba(0, 255, 255, .28); }

/* campos */
.lv-campo { display: block; margin-bottom: 14px; }
.lv-campo > span:first-child { display: block; font-size: 12.5px; color: var(--lv-muted); margin-bottom: 7px; }
.lv-caixa {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 13px;
  border: 1px solid var(--lv-line-2); background: rgba(0, 0, 0, .28);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lv-caixa:focus-within { border-color: rgba(0, 255, 255, .55); box-shadow: 0 0 0 4px rgba(0, 255, 255, .08); }
.lv-caixa input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; color: var(--lv-text); }
.lv-caixa input::placeholder { color: var(--lv-dim); }
.lv-caixa input:-webkit-autofill { -webkit-text-fill-color: var(--lv-text); -webkit-box-shadow: 0 0 0 40px #120e19 inset; caret-color: var(--lv-text); }
.lv-ic { width: 18px; height: 18px; stroke: var(--lv-dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lv-olho { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--lv-dim); font-size: 15px; transition: color 160ms ease; }
.lv-olho:active { color: var(--lv-text); }

.lv-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 20px; font-size: 13px; }
.lv-lembrar { display: flex; align-items: center; gap: 10px; color: var(--lv-muted); cursor: pointer; }
.lv-lembrar input { position: absolute; opacity: 0; pointer-events: none; }
.lv-chave { width: 40px; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .1); position: relative; flex: none; transition: background-color 200ms ease; }
.lv-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--lv-text); transition: transform 200ms var(--lv-ease-out), background-color 200ms ease; }
.lv-lembrar input:checked + .lv-chave { background: var(--lv-cyan-2); }
.lv-lembrar input:checked + .lv-chave::after { transform: translateX(16px); background: var(--lv-ink-1); }
.lv-lembrar input:focus-visible + .lv-chave { outline: 2px solid var(--lv-cyan); outline-offset: 2px; }
.lv-link { color: var(--lv-cyan); font-weight: 500; text-decoration: none; }

/* botões */
.lv-btn {
  width: 100%; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 120ms var(--lv-ease-out), box-shadow 160ms ease, opacity 160ms ease;
}
.lv-btn:active { transform: scale(.97); }
.lv-btn:disabled { opacity: .7; cursor: progress; }
.lv-btn-primario { background: linear-gradient(135deg, var(--lv-cyan), var(--lv-cyan-2)); color: var(--lv-ink-1); box-shadow: 0 8px 24px rgba(0, 255, 255, .25); }
.lv-btn-rosa { background: linear-gradient(135deg, rgba(226, 64, 149, .18), rgba(226, 64, 149, .08)); border: 1px solid rgba(226, 64, 149, .45); color: #ff8cc4; }
.lv-btn-fantasma { background: rgba(255, 255, 255, .04); border: 1px solid var(--lv-line-2); color: var(--lv-text); }
@media (hover: hover) and (pointer: fine) {
  .lv-btn-primario:hover { box-shadow: 0 10px 30px rgba(0, 255, 255, .38); }
  .lv-btn-rosa:hover { border-color: rgba(226, 64, 149, .7); }
}

.lv-ou { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--lv-dim); font-size: 12px; }
.lv-ou::before, .lv-ou::after { content: ""; flex: 1; height: 1px; background: var(--lv-line-2); }

.lv-selo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font: 500 10.5px/1 var(--lv-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lv-dim); }
.lv-selo b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--lv-line-2); color: var(--lv-muted); font-weight: 500; }

/* termo 18+ (js/login.js mostra com display:flex) */
.lv-modal {
  display: none; position: fixed; inset: 0; z-index: 50; align-items: flex-end; justify-content: center;
  background: rgba(4, 3, 8, .65); padding: 0;
}
.lv-modal.active .lv-modal-caixa { animation: lv-sobe 340ms cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes lv-sobe { from { transform: translateY(100%); } to { transform: none; } }
.lv-modal-caixa {
  width: 100%; max-width: 480px; padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1f172c, var(--lv-ink-1)); border-top: 1px solid var(--lv-line-2);
}
@media (min-width: 560px) {
  .lv-modal { align-items: center; padding: 20px; }
  .lv-modal-caixa { border-radius: 22px; border: 1px solid var(--lv-line-2); }
}
.lv-modal-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lv-modal-topo h2 { font-family: var(--lv-display); font-size: 21px; }
.lv-fechar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--lv-line); }
.lv-18 { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin-bottom: 12px; font: 500 15px/1 var(--lv-mono); color: var(--lv-magenta); border: 1px solid rgba(226, 64, 149, .45); background: rgba(226, 64, 149, .08); }
.lv-modal-caixa p { color: var(--lv-muted); font-size: 13.5px; margin-bottom: 10px; }
.lv-modal-caixa .lv-forte { color: var(--lv-text); font-weight: 500; }
.lv-modal-acoes { display: grid; gap: 10px; margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .lv-marca.is-play .lv-simbolo img, .lv-marca.is-play .lv-wordmark { animation: none; }
  .lv-modal.active .lv-modal-caixa { animation: none; }
}

/* ---------- criar conta (register.php) ---------- */
.lv-marca-mini { margin-bottom: 18px; gap: 10px; }
.lv-marca-mini .lv-simbolo, .lv-marca-mini .lv-simbolo img { width: 64px; height: 64px; }
.lv-marca-mini .lv-wordmark { font-size: 22px; }
.lv-grupo { font: 500 10.5px/1 var(--lv-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lv-cyan); margin: 18px 0 12px; }
.lv-grupo:first-of-type { margin-top: 0; }
.lv-pref { font: 500 13px/1 var(--lv-mono); color: var(--lv-muted); padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--lv-line); }
.lv-caixa:has(.input-error) { border-color: rgba(255, 84, 112, .6); }
.field-status { width: 22px; height: 22px; flex: none; display: grid; place-items: center; font: 600 12px/1 var(--lv-mono); border-radius: 7px; }
.field-status.loading::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--lv-cyan); animation: lv-gira .8s linear infinite; }
.field-status.ok { color: var(--lv-ink-1); background: var(--lv-cyan); }
.field-status.ok::after { content: "✓"; }
.field-status.error { color: #fff; background: var(--lv-loss); }
.field-status.error::after { content: "!"; }
@keyframes lv-gira { to { transform: rotate(360deg); } }
.field-error { display: block; color: #ff9aac; font-size: 12px; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.password-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.strength-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--lv-dim); transition: width 300ms var(--lv-ease-out), background-color 200ms ease; }
.strength-fill.very-weak { background: var(--lv-loss); }
.strength-fill.weak { background: #ff8a4c; }
.strength-fill.fair { background: #f5b942; }
.strength-fill.strong { background: var(--lv-sky); }
.strength-fill.very-strong { background: var(--lv-cyan); }
.strength-label { font: 500 11px/1 var(--lv-mono); color: var(--lv-muted); min-width: 72px; text-align: right; }
.lv-aceite { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 16px; font-size: 13px; color: var(--lv-muted); cursor: pointer; }
.lv-aceite input { position: absolute; opacity: 0; pointer-events: none; }
.lv-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--lv-line-2); flex: none; display: grid; place-items: center; transition: background-color 160ms ease, border-color 160ms ease; }
.lv-check svg { width: 14px; height: 14px; stroke: var(--lv-ink-1); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.6); transition: opacity 160ms ease, transform 200ms var(--lv-ease-out); }
.lv-aceite input:checked + .lv-check { background: var(--lv-cyan); border-color: var(--lv-cyan); }
.lv-aceite input:checked + .lv-check svg { opacity: 1; transform: none; }
.lv-aceite input:focus-visible + .lv-check { outline: 2px solid var(--lv-cyan); outline-offset: 2px; }
.lv-btn-rosa-cheio { background: linear-gradient(135deg, #ff5aa8, var(--lv-magenta)); color: #fff; box-shadow: 0 8px 24px rgba(226, 64, 149, .3); }
.lv-btn-rosa-cheio:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.lv-dica-btn { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--lv-dim); }
.lv-ok-icone { color: var(--lv-cyan) !important; border-color: rgba(0, 255, 255, .45) !important; background: rgba(0, 255, 255, .08) !important; font-size: 20px !important; }
@media (prefers-reduced-motion: reduce) { .field-status.loading::after { animation-duration: 2s; } }

/* ---------- instalar o app (criar conta) ---------- */
.lv-instalar { margin-top: 14px; height: 62px; justify-content: flex-start; gap: 12px; padding: 0 16px 0 11px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--lv-line-2); color: var(--lv-text); }
.lv-btn[hidden] { display: none; }
.lv-instalar img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.lv-instalar-txt { display: grid; gap: 3px; flex: 1; min-width: 0; }
.lv-instalar-txt b { font-weight: 600; font-size: 14.5px; line-height: 1.15; }
.lv-instalar-txt small { font-size: 12px; font-weight: 400; line-height: 1.2; color: var(--lv-muted); }
.lv-instalar .lv-ic { stroke: var(--lv-cyan); }
.lv-instalar:disabled { opacity: .6; cursor: default; }
.lv-instalar:disabled .lv-ic { display: none; }
@media (hover: hover) and (pointer: fine) { .lv-instalar:hover { border-color: rgba(0, 255, 255, .4); } }

.lv-fechar .lv-ic { stroke: var(--lv-muted); }
.lv-inst-app { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--lv-line); background: rgba(255, 255, 255, .03); }
.lv-inst-icone { display: grid; justify-items: center; gap: 6px; flex: none; }
.lv-inst-icone img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.lv-inst-icone figcaption { font-size: 11px; color: var(--lv-text); }
.lv-modal-caixa .lv-inst-app p { margin: 0; color: var(--lv-muted); font-size: 13px; }
.lv-inst-passos { list-style: none; counter-reset: passo; display: grid; gap: 12px; margin: 16px 0 6px; }
.lv-inst-passos li { counter-increment: passo; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; color: var(--lv-muted); }
.lv-inst-passos li::before { content: counter(passo); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1px solid rgba(0, 255, 255, .35); background: rgba(0, 255, 255, .06); color: var(--lv-cyan); font: 500 12px/1 var(--lv-mono); }
.lv-inst-passos li > span { padding-top: 4px; }
.lv-inst-passos b { color: var(--lv-text); font-weight: 500; }
.lv-inst-ic { display: inline-block; width: 18px; height: 18px; margin: 0 1px; vertical-align: -4px; stroke: var(--lv-cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv-modal-caixa .lv-inst-dica { margin: 12px 0 0; font-size: 12px; color: var(--lv-dim); }

/* entra de baixo (lv-sobe), sai pelo mesmo caminho; passos com 50 ms de intervalo */
.lv-folha-instalar.active { animation: lv-fundo-entra 200ms var(--lv-ease-out) both; }
.lv-folha-instalar.is-saindo { animation: lv-fundo-sai 200ms var(--lv-ease-out) both; }
.lv-folha-instalar.is-saindo .lv-modal-caixa { animation: lv-desce 200ms var(--lv-ease-out) both; }
.lv-folha-instalar.active .lv-inst-passos li { animation: lv-passo 260ms var(--lv-ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 50ms); }
@keyframes lv-fundo-entra { from { opacity: 0; } }
@keyframes lv-fundo-sai { to { opacity: 0; } }
@keyframes lv-desce { to { transform: translateY(100%); } }
@keyframes lv-passo { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .lv-folha-instalar.active .lv-modal-caixa { animation: lv-fundo-entra 200ms ease both; }
  .lv-folha-instalar.is-saindo, .lv-folha-instalar.is-saindo .lv-modal-caixa { animation: none; }
  .lv-folha-instalar.active .lv-inst-passos li { animation: lv-fundo-entra 200ms ease both; }
}
