/* entrar.css — a página /entrar/: a tela de entrar de verdade.
   Tela grande (desktop e tablet): duas colunas em tela cheia; à esquerda a foto do anoitecer com a marca e a frase, à direita o formulário num
   painel claro, com a logo de vidro, os campos, o botão bordô do app, o Google e a troca entrar/criar conta.
   Celular (≤ 860 px): a entrada do protótipo Vidro (iframe), na tela toda: a mesma tela que o app vai ter. */
.demo body { overflow: auto; }
/* a tela toda, sem crescer: a foto fica parada e, se o formulário for mais alto que a janela (Criar conta numa tela baixa), só o painel rola */
.entrar { position: relative; z-index: 1; height: 100svh; display: grid; grid-template-columns: minmax(0, 11fr) minmax(420px, 9fr); }
.entrar-celular { display: none; }

/* ---- a foto ---- */
.entrar-foto { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 64px); color: #f5f5f7; overflow: hidden;
  background: #0a0b1c url("../img/fundo-anoitecer.webp") center / cover no-repeat; }
.entrar-foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 10 28 / .55) 0%, rgb(8 10 28 / .1) 40%, rgb(8 10 28 / .35) 100%); pointer-events: none; }
.entrar-foto > * { position: relative; }
.entrar-marca { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: #fff; }
.entrar-marca img { width: 40px; height: 40px; border-radius: 22.5%; box-shadow: 0 0 0 .5px rgb(255 255 255 / .25), 0 8px 24px -8px rgb(0 0 0 / .6); }
.entrar-frase { max-width: 560px; margin: auto 0; padding: 6vh 0; }
.entrar-slogan { margin: 0; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / .35); }
.entrar-nota { margin: 16px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: #e4def0; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.entrar-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---- o painel do formulário ---- */
.entrar-painel { position: relative; display: flex; flex-direction: column; background: #fbfbfd; color: var(--texto); padding: 22px clamp(24px, 4vw, 72px) 40px; overflow-y: auto; overscroll-behavior: contain; }
.entrar-topo { display: flex; justify-content: flex-end; }
.entrar-form { width: min(400px, 100%); margin: auto; padding: 24px 0; display: grid; gap: 14px; }
.entrar-form .logo-v { --u: 1px; width: 76px; height: 76px; margin-bottom: 6px; }
.entrar-form h1 { margin: 0; font-size: clamp(36px, 3vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.entrar-sub { margin: -6px 0 6px; font-size: 18px; color: var(--texto-2); }
.entrar-erro { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: #7a1f1a; background: #fdebe9; box-shadow: inset 0 0 0 1px #f4c6c1; }
.entrar-erro[hidden] { display: none; }
.campo { display: grid; gap: 6px; }
.campo label, .campo .rotulo { font-size: 14px; font-weight: 600; color: #3a3a40; }
.campo input { width: 100%; height: 52px; border: 0; border-radius: 14px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--texto); background: #f0f0f4; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); transition: box-shadow .2s, background .2s; }
.campo input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px #5b1a28; }
.campo input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #c0392b; }
.campo-senha { position: relative; }
.campo-senha input { padding-right: 54px; }
.olho { position: absolute; right: 6px; bottom: 6px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; color: #5f5f64; }
.olho:hover { background: rgb(0 0 0 / .05); } .olho svg { width: 22px; height: 22px; }
.olho:focus-visible { outline: 3px solid #0a6cff; }
.generos { display: flex; flex-wrap: wrap; gap: 8px; }
.generos button { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #3a3a40; background: #f0f0f4; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.generos button[aria-checked="true"] { background: #1d1d1f; color: #fff; }
.generos button:focus-visible { outline: 3px solid #0a6cff; outline-offset: 2px; }
.entrar-form[data-modo="entrar"] .so-criar { display: none; }
/* Criar conta tem o dobro de campos: tudo um pouco mais junto, para caber numa janela de 900 px sem rolar */
.entrar-form[data-modo="criar"] { gap: 10px; }
.entrar-form[data-modo="criar"] .logo-v { width: 56px; height: 56px; margin-bottom: 0; }
.entrar-form[data-modo="criar"] h1 { font-size: clamp(30px, 2.4vw, 36px); }
.entrar-form[data-modo="criar"] .entrar-sub { margin: -4px 0 2px; font-size: 16px; }
.entrar-form[data-modo="criar"] .campo input { height: 46px; }
.entrar-form[data-modo="criar"] .olho { bottom: 3px; }
.entrar-form[data-modo="criar"] .generos button { padding: 7px 14px; }
.entrar-form[data-modo="criar"] .entrar-enviar, .entrar-form[data-modo="criar"] .entrar-google { height: 48px; }
.entrar-form[data-modo="criar"] .entrar-troca, .entrar-form[data-modo="criar"] .entrar-legal { margin-top: 2px; }
.entrar-enviar { margin-top: 6px; height: 52px; color: #fff; background: #5b1a28; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 12px 24px -14px rgb(91 26 40 / .7); }
.entrar-enviar:hover { filter: brightness(1.12); }
.entrar-enviar[aria-busy="true"] { opacity: .7; pointer-events: none; }
.entrar-ou { margin: 2px 0; display: flex; align-items: center; gap: 12px; font-size: 14px; color: #6b6b72; }
.entrar-ou::before, .entrar-ou::after { content: ""; flex: 1; height: 1px; background: rgb(0 0 0 / .1); }
.entrar-google { height: 52px; color: var(--texto); background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 2px 8px -4px rgb(0 0 0 / .2); }
.entrar-google:hover { background: #fafafa; }
.entrar-google .g-disco { display: grid; place-items: center; width: 24px; height: 24px; }
.entrar-troca { margin: 8px 0 0; font-size: 15px; color: var(--texto-2); text-align: center; }
.entrar-alterna { all: unset; cursor: pointer; font-weight: 600; color: #b93d0a; }
.entrar-alterna:hover { text-decoration: underline; text-underline-offset: 3px; }
.entrar-alterna:focus-visible { outline: 3px solid #0a6cff; outline-offset: 2px; border-radius: 4px; }
.entrar-legal { margin: 10px 0 0; font-size: 13px; color: #6b6b72; text-align: center; }
.entrar-legal a { color: inherit; }

/* ---- a logo clara (a mesma regra da marca: placa no laranja exato e coração branco) ---- */
.logo-v { position: relative; display: block; width: calc(var(--u) * 92); height: calc(var(--u) * 92); border-radius: 22.37%;
  background: linear-gradient(135deg, #f8756d 0%, #fa984b 56%, #fbbb28 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), inset 0 2px 0 rgb(255 255 255 / .55), inset 0 -10px 18px -10px rgb(150 55 20 / .35), 0 22px 34px -14px rgb(214 96 40 / .6), 0 5px 10px -4px rgb(110 45 20 / .4); }
.logo-v::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgb(255 255 255 / .42), rgb(255 255 255 / 0) 48%); pointer-events: none; }
.logo-v i { position: absolute; left: 50%; top: 52%; width: 52%; aspect-ratio: 512 / 462; transform: translate(-50%, -50%); background: #fff;
  -webkit-mask: url("../img/coracao.png") center / contain no-repeat; mask: url("../img/coracao.png") center / contain no-repeat; filter: drop-shadow(0 2px 3px rgb(165 65 20 / .5)); }

/* ---- tablet em pé: as duas colunas viram uma em cima da outra, a foto mais baixa ---- */
@media (max-width: 1100px) and (min-width: 861px) {
  .entrar { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 38vh) minmax(0, 1fr); }
  .entrar-frase { padding: 3vh 0; }
  .entrar-slogan { font-size: 34px; }
}

/* ---- celular: a entrada do protótipo, na tela toda ---- */
@media (max-width: 860px) {
  .entrar { display: block; }
  .entrar-foto, .entrar-painel { display: none; }
  .entrar-celular { display: block; min-height: 100svh; }
  .entrar-caixa { position: fixed; inset: var(--nav-h) 0 0 0; background: #000; overflow: hidden; }
  .app-entrar { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; background: transparent; }
  .demo-topo { padding: 0 12px 0 16px; gap: 8px; }
  .demo-topo .idioma, .demo-voltar span { display: none; }
  .demo-topo .botao-real { padding: 0 12px; }
}
