/* WisePush - tela de login (card de vidro com luz nas bordas, coruja que olha e fecha o olho na senha) */
.pg-login { min-height: 100svh; display: flex; flex-direction: column; background: #070707; }

/* fundo: brilho dourado que respira, textura e as linhas do W */
.lg-fundo { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lg-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 193, 24, .1) 0%, rgba(90, 62, 4, .12) 36%, #070707 74%); }
.lg-ruido { position: absolute; inset: 0; opacity: .04; mix-blend-mode: soft-light; background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E"); }
.lg-luz { position: absolute; left: 50%; translate: -50% 0; }
.lg-luz.l1 { top: 0; width: 110vh; height: 52vh; border-radius: 0 0 50% 50%; background: rgba(247, 193, 24, .12); filter: blur(80px); }
.lg-luz.l2 { top: 0; width: 90vh; height: 50vh; border-radius: 0 0 50% 50%; background: rgba(255, 213, 77, .13); filter: blur(60px); animation: lg-respira 8s ease-in-out infinite alternate; }
.lg-luz.l3 { bottom: 0; width: 80vh; height: 70vh; border-radius: 50% 50% 0 0; background: rgba(217, 164, 6, .1); filter: blur(60px); animation: lg-respira2 6s ease-in-out 1s infinite alternate; }
@keyframes lg-respira { from { opacity: .15; transform: scale(.98); } to { opacity: .32; transform: scale(1.02); } }
@keyframes lg-respira2 { from { opacity: .3; transform: scale(1); } to { opacity: .5; transform: scale(1.1); } }
.lg-mancha { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; background: rgba(255, 244, 199, .06); filter: blur(100px); animation: lg-pulsa 4s ease-in-out infinite; }
.lg-mancha.m1 { left: 25%; top: 25%; translate: -50% -50%; }
.lg-mancha.m2 { right: 25%; bottom: 25%; translate: 50% 50%; animation-delay: 1s; }
@keyframes lg-pulsa { 0%, 100% { opacity: .45; } 50% { opacity: .15; } }
/* duas hastes do W (68,2 graus) cruzando atras do card */
.lg-linhas { position: absolute; inset: 0;
  background:
    linear-gradient(68.2deg, transparent calc(50% - .5px), rgba(255, 255, 255, .06) 50%, transparent calc(50% + .5px)) 32% 0 / 1100px 100% no-repeat,
    linear-gradient(-68.2deg, transparent calc(50% - .5px), rgba(255, 255, 255, .06) 50%, transparent calc(50% + .5px)) 68% 0 / 1100px 100% no-repeat; }

/* topo e rodape */
.lg-topo { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 4vw, 40px); }
.lg-voltar { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: color .2s; }
.lg-voltar .ic { width: 17px; height: 17px; transform: scaleX(-1); }
.lg-voltar:hover { color: var(--text); }
.lg-rodape { position: relative; z-index: 2; text-align: center; font-size: 12.5px; color: var(--text-3); padding: 18px 16px 26px; display: grid; gap: 6px; }
.lg-rodape nav { display: flex; justify-content: center; gap: 10px; }
.lg-rodape a { color: var(--text-2); text-decoration: none; }
.lg-rodape a:hover { color: var(--text); }

/* palco do card */
.lg-main { position: relative; z-index: 2; flex: 1; display: grid; place-items: center; align-content: center; padding: 6px 16px 20px; }
.lg-cena { width: 100%; max-width: 420px; perspective: 1500px; }
.lg-cena.cadastro { max-width: 500px; }
.lg-cartao { position: relative; border-radius: 22px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); animation: lg-entra .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lg-entra { from { opacity: 0; translate: 0 20px; } }
.lg-brilho { position: absolute; inset: -1px; border-radius: inherit; opacity: 0; transition: opacity .7s; animation: lg-brilha 4s ease-in-out infinite alternate; }
.lg-cartao:hover .lg-brilho, .lg-cartao:focus-within .lg-brilho { opacity: .9; }
@keyframes lg-brilha { from { box-shadow: 0 0 10px 2px rgba(247, 193, 24, .06); } to { box-shadow: 0 0 24px 6px rgba(247, 193, 24, .15); } }

/* luzes que correm pelas 4 bordas, uma depois da outra */
.lg-feixes { position: absolute; inset: -1px; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 3; }
.lg-feixe { position: absolute; opacity: .8; filter: blur(1.4px); }
.lg-feixe.t { top: 0; left: 0; height: 3px; width: 50%; background: linear-gradient(90deg, transparent, #ffe9a8, transparent); animation: lg-f-t 3.5s ease-in-out infinite; }
.lg-feixe.d { top: 0; right: 0; width: 3px; height: 50%; background: linear-gradient(180deg, transparent, #ffe9a8, transparent); animation: lg-f-d 3.5s ease-in-out .6s infinite; }
.lg-feixe.b { bottom: 0; right: 0; height: 3px; width: 50%; background: linear-gradient(270deg, transparent, #f7c118, transparent); animation: lg-f-b 3.5s ease-in-out 1.2s infinite; }
.lg-feixe.e { bottom: 0; left: 0; width: 3px; height: 50%; background: linear-gradient(0deg, transparent, #f7c118, transparent); animation: lg-f-e 3.5s ease-in-out 1.8s infinite; }
@keyframes lg-f-t { 0% { transform: translateX(-100%); } 71%, 100% { transform: translateX(200%); } }
@keyframes lg-f-d { 0% { transform: translateY(-100%); } 71%, 100% { transform: translateY(200%); } }
@keyframes lg-f-b { 0% { transform: translateX(100%); } 71%, 100% { transform: translateX(-200%); } }
@keyframes lg-f-e { 0% { transform: translateY(100%); } 71%, 100% { transform: translateY(-200%); } }
.lg-canto { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 244, 199, .55); filter: blur(1.5px); animation: lg-pisca 2.2s ease-in-out infinite alternate; }
.lg-canto.c1 { top: 0; left: 0; } .lg-canto.c2 { top: 0; right: 0; animation-delay: .5s; width: 8px; height: 8px; }
.lg-canto.c3 { bottom: 0; right: 0; animation-delay: 1s; width: 8px; height: 8px; } .lg-canto.c4 { bottom: 0; left: 0; animation-delay: 1.5s; }
@keyframes lg-pisca { from { opacity: .2; } to { opacity: .5; } }

/* vidro */
.lg-vidro { position: relative; z-index: 1; border-radius: inherit; padding: 26px 28px 24px; overflow: hidden;
  background: rgba(12, 12, 11, .56); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.lg-vidro::before { content: ""; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: linear-gradient(68.2deg, #fff .5px, transparent .5px), linear-gradient(-68.2deg, #fff .5px, transparent .5px); background-size: 30px 30px; }
.lg-vidro > * { position: relative; }

/* coruja no topo do card */
.lg-coruja { position: relative; width: 150px; aspect-ratio: 878 / 635; margin: -2px auto 12px; }
.lg-coruja .coruja-viva { left: 0; top: 0; width: 100%; height: 100%; opacity: 1; }
.lg-coruja.nao { animation: lg-nao .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes lg-nao { 20%, 60% { translate: -7px 0; } 40%, 80% { translate: 7px 0; } }
.lg-titulo { text-align: center; font-size: 26px; letter-spacing: -.025em; }
.lg-sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin-top: 5px; }

/* aviso (erro ou informacao), no formato de notificacao */
.lg-aviso { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 12px 10px 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); font-size: 13.5px; line-height: 1.45; animation: lg-form-entra .35s ease both; }
.lg-aviso > .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--yellow); }
.lg-aviso.erro { border-color: rgba(255, 138, 115, .35); background: rgba(255, 138, 115, .07); }
.lg-aviso.erro > .ic { color: #ff8a73; }
.lg-aviso b { display: block; font-size: 14px; color: var(--text); }
.lg-aviso span { color: var(--text-2); }
.lg-aviso .fechar { margin-left: auto; flex: none; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.lg-aviso .fechar:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lg-aviso .fechar .ic { width: 15px; height: 15px; }

/* formulario */
.lg-form { display: grid; gap: 14px; margin-top: 22px; }
.lg-form.entra { animation: lg-form-entra .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lg-form-entra { from { opacity: 0; translate: 0 10px; filter: blur(4px); } }
.lg-campo { display: grid; gap: 7px; }
.lg-campo > label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.lg-campo > label small { font-weight: 500; color: var(--text-3); }
.lg-entrada { position: relative; display: flex; align-items: center; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.lg-entrada:hover { transform: scale(1.01); }
.lg-entrada:focus-within { background: rgba(255, 255, 255, .08); border-color: rgba(247, 193, 24, .45); box-shadow: 0 0 0 3px rgba(247, 193, 24, .12); transform: scale(1.02); }
.lg-entrada > .ic { position: absolute; left: 13px; width: 17px; height: 17px; color: rgba(255, 255, 255, .45); transition: color .3s; pointer-events: none; }
.lg-entrada:focus-within > .ic { color: var(--yellow); }
.lg-entrada input { width: 100%; height: 46px; padding: 0 14px 0 40px; background: transparent; border: 0; border-radius: inherit; color: var(--text); font: 500 15px/1 var(--f-body); outline: none; }
.lg-entrada input.sem-ic { padding-left: 14px; }
.lg-entrada input::placeholder { color: rgba(255, 255, 255, .5); }
.lg-entrada input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px #1a1a18 inset; transition: background-color 9999s; }
.lg-entrada.com-olho input { padding-right: 46px; }
.lg-olho { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: rgba(255, 255, 255, .5); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.lg-olho:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lg-olho .ic { width: 18px; height: 18px; }
.lg-olho .fechado { display: none; }
.lg-olho[aria-pressed="false"] .aberto { display: none; }
.lg-olho[aria-pressed="false"] .fechado { display: block; }
.lg-linha { display: flex; justify-content: flex-end; margin-top: -6px; }
.lg-link { padding: 15px 6px; margin: -15px -6px; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.lg-dica { margin-top: -2px; font-size: 12.5px; color: #ff8a73; }
.lg-link:hover { color: var(--text); }
.lg-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* botao de entrar: dourado do site, com carregando e brilho correndo */
.lg-form .bt { width: 100%; max-width: none; margin-top: 4px; overflow: hidden; }
.lg-form .bt:disabled { cursor: not-allowed; filter: saturate(.55) brightness(.62); transform: none; box-shadow: none; }
.lg-form .bt .giro { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(36, 24, 8, .75); border-top-color: transparent; animation: lg-gira .8s linear infinite; }
.lg-form .bt.carregando .letras, .lg-form .bt.carregando > .ic, .lg-form .bt.carregando > span:not(.giro) { display: none; }
.lg-form .bt.carregando .giro { display: block; }
.lg-form .bt.carregando::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: lg-varre 1.5s ease-in-out infinite; }
@keyframes lg-gira { to { transform: rotate(360deg); } }
@keyframes lg-varre { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* divisor e ajuda pelo WhatsApp */
.lg-ou { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12.5px; margin: 2px 0; }
.lg-ou::before, .lg-ou::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .07); }
.lg-ajuda { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--text-2); font-weight: 600; font-size: 14.5px; text-decoration: none;
  transition: border-color .3s, color .3s, background .3s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.lg-ajuda .ic { width: 18px; height: 18px; color: #25d366; }
.lg-ajuda:hover { border-color: rgba(37, 211, 102, .45); color: var(--text); background: rgba(37, 211, 102, .06); transform: scale(1.02); }
.lg-ajuda::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); transform: translateX(-100%); transition: transform 1s ease; }
.lg-ajuda:hover::after { transform: translateX(100%); }
.lg-troca { text-align: center; font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.lg-troca button { position: relative; background: none; border: 0; padding: 13px 2px; margin: -13px 0; color: var(--yellow); font: 700 13.5px var(--f-body); cursor: pointer; }
.lg-troca button::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 11px; height: 1px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.lg-troca button:hover::after { transform: scaleX(1); }

/* aceite (cadastro) */
.lg-aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.lg-aceite input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lg-aceite input:checked { background: var(--yellow); border-color: var(--yellow); }
.lg-aceite input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #0a0a0a; border-bottom: 2px solid #0a0a0a; transform: rotate(-45deg) translate(1px, -1px); }
.lg-aceite a { color: var(--text); }

/* selos abaixo do card */
.lg-selos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; }
.lg-selos li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(10, 10, 10, .5); font-size: 12.5px; color: var(--text-2); }
.lg-selos .ic { width: 15px; height: 15px; color: var(--yellow); }

@media (max-width: 560px) {
  .lg-topo { padding: 16px 18px; }
  .lg-voltar span { display: none; }
  .lg-voltar { padding: 13px; margin: -13px; } /* so a seta no celular: area de toque de 43px */
  .lg-vidro { padding: 22px 18px 20px; }
  .lg-coruja { width: 124px; }
  .lg-entrada input { font-size: 16px; }            /* 16px: o iPhone nao da zoom ao tocar no campo */
  .lg-olho { width: 40px; height: 40px; }
  .lg-link { padding: 15px 6px; margin: -15px -6px; } /* mesma aparencia, area de toque maior */
  .lg-titulo { font-size: 23px; }
  .lg-dupla { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-feixe, .lg-canto, .lg-luz, .lg-mancha, .lg-brilho { animation: none !important; }
  .lg-cartao { transition: none; }
}

/* ---------- intro depois de entrar (a marca ganha vida: nada de video, e tudo desenhado na hora) ---------- */
.lg-intro { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-items: center; animation: lg-intro-abre .18s ease both; }
@keyframes lg-intro-abre { from { opacity: 0; } }
.lg-intro.saindo { animation: lg-intro-fecha .5s var(--ease) both; }
@keyframes lg-intro-fecha { to { opacity: 0; } }
/* camera travada, fundo preto solido, so a marca no meio */
.lg-intro-cena { position: absolute; inset: 0; display: grid; place-items: center; background: #000; }
.lg-intro-marca { position: relative; width: min(78vw, 56vh, 620px); aspect-ratio: 878 / 635; }
.lg-intro-marca img, .lg-intro-marca svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* luz quente por tras dos olhos: baixa o tempo todo, sobe quando o olhar trava na camera */
.lg-intro-luz { position: absolute; inset: 0; pointer-events: none; }
.lg-intro-luz::before, .lg-intro-luz::after { content: ''; position: absolute; top: 25.6%; width: 30%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: var(--luz, .2);
  background: radial-gradient(circle, rgba(255, 214, 92, .62), rgba(247, 193, 24, .2) 44%, rgba(247, 193, 24, 0) 70%); }
.lg-intro-luz::before { left: 36.4%; }
.lg-intro-luz::after { left: 63.5%; }
.lg-intro-acoes { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 18px; display: flex; align-items: center; gap: 8px; }
.lg-intro-bt { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-width: 40px; padding: 0 14px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: 600 13.5px/1 var(--f-body); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s, background .25s; }
.lg-intro-bt:hover, .lg-intro-bt:focus-visible { opacity: 1; border-color: rgba(247, 193, 24, .6); background: rgba(0, 0, 0, .65); }
.lg-intro-bt .ic { width: 17px; height: 17px; }
.lg-intro-pular { padding: 0 16px; }

/* ---------- tela de boas-vindas (demonstracao do que vem depois) ---------- */
.lg-bemvindo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 90% at 50% 0%, rgba(247, 193, 24, .12), transparent 60%), #070707; animation: lg-bv-entra .6s var(--ease) both; }
@keyframes lg-bv-entra { from { opacity: 0; } }
.lg-bv-caixa { width: 100%; max-width: 420px; text-align: center; animation: lg-bv-sobe .7s var(--ease) both .1s; }
@keyframes lg-bv-sobe { from { opacity: 0; translate: 0 16px; } }
.lg-bv-coruja { width: 168px; margin: 0 auto 18px; }
.lg-bv-ola { color: var(--text-2); font-size: 15px; }
.lg-bv-nome { margin-top: 4px; font: 800 34px/1.05 var(--f-display); letter-spacing: -.03em; color: var(--text); }
.lg-bv-sub { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.lg-bv-bts { display: grid; justify-items: center; gap: 14px; margin-top: 26px; }
.lg-bv-bts .bt { width: 100%; }
.lg-bv-sair { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) {
  .lg-intro, .lg-bemvindo, .lg-bv-caixa { animation: none; }
}
