/* Visão do Campo — login: tela dividida. À esquerda a vitrine (título + o sistema DESENHADO dentro de
   um notebook); à direita o formulário. O preview é SVG e CSS, nunca um print: esta tela é
   pública, e uma captura real mostraria a lavoura de um cliente a quem não entrou (regra 4).

   Dentro da tela do notebook tudo é medido em `cqw` (1% da largura DA TELA desenhada): o preview
   encolhe e cresce inteiro, como uma imagem, sem precisar de `transform: scale` nem de JS. */

.login-fundo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr); padding: 0; align-items: stretch; justify-content: stretch; background: var(--papel); overflow: auto; }

/* ------------------------------------------------------------ a vitrine */
.vitrine { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.2vh, 34px); padding: clamp(28px, 5vh, 56px) clamp(28px, 4.5vw, 72px); color: #EEF2EC;
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(46, 125, 84, 0.42) 0%, rgba(46, 125, 84, 0) 60%),
    radial-gradient(70% 60% at 100% 100%, rgba(36, 74, 162, 0.22) 0%, rgba(36, 74, 162, 0) 62%),
    linear-gradient(160deg, #13241A 0%, #0D1711 55%, #090F0B 100%); }
/* a malha de 10 m do satélite, quase invisível, apagando para as bordas */
.vitrine::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: radial-gradient(75% 65% at 50% 45%, #000 0%, transparent 100%); mask-image: radial-gradient(75% 65% at 50% 45%, #000 0%, transparent 100%); }
.vitrine-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vitrine .marca { font-size: 16px; color: #fff; }
.vitrine .marca i { color: #6FD3A0; }
.vitrine-titulo { margin: 0; font: 600 clamp(26px, 2.75vw, 40px)/1.12 var(--ui); letter-spacing: -0.03em; color: #fff; max-width: 40ch; }
.vitrine-titulo span { color: rgba(238,242,236,0.55); font-weight: 500; }

/* ---- o notebook */
.pc { width: min(100%, 780px, 86vh); align-self: center; animation: vitrine-sobe 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)); }
.pc-tela { padding: 1.5% 1.5% 1.9%; background: linear-gradient(180deg, #2A302C, #15191600 140%), #171B18; border: 1px solid rgba(255,255,255,0.14); border-bottom: 0; border-radius: 14px 14px 0 0; }
.pc-base { position: relative; height: 13px; margin: 0 -4.5%; background: linear-gradient(180deg, #4A524C 0%, #262B27 55%, #0E110F 100%); border-radius: 2px 2px 12px 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.28); }
.pc-base i { position: absolute; left: 50%; top: 0; width: 15%; height: 5px; transform: translateX(-50%); background: #0E110F; border-radius: 0 0 8px 8px; }

.tela { container-type: inline-size; aspect-ratio: 16 / 10; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-s); background: var(--papel); color: var(--tinta); font-family: var(--ui); }
.t-topo { flex: none; display: flex; align-items: center; gap: 1.6cqw; height: 6.2cqw; padding: 0 1.8cqw; background: var(--superficie); border-bottom: 1px solid var(--linha); font-size: 1.45cqw; }
.t-topo b { font-weight: 600; letter-spacing: -0.02em; font-size: 1.6cqw; }
.t-topo b i { color: var(--verde); font-style: normal; font-weight: 400; }
.t-pill { border: 1px solid var(--linha-forte); border-radius: 0.5cqw; padding: 0.7cqw 1.3cqw; background: var(--superficie-2); font-weight: 500; }
.t-ha { font: 600 1.45cqw var(--mono); color: var(--tinta-2); }
.t-dir { margin-left: auto; display: flex; gap: 0.8cqw; }
.t-dir i { width: 5.6cqw; height: 2.9cqw; border: 1px solid var(--linha-forte); border-radius: 0.5cqw; background: var(--superficie-2); }
.t-dir i:first-child { width: 2.9cqw; background: var(--verde-claro); border-color: var(--verde); }
.t-corpo { flex: 1; min-height: 0; display: flex; }
.t-mapa { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #152218; }
.t-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t-painel { position: absolute; left: 1.6cqw; top: 1.6cqw; display: flex; gap: 1cqw; }
.t-painel span { display: flex; flex-direction: column; gap: 0.5cqw; }
.t-painel small { align-self: flex-start; font: 500 0.95cqw var(--ui); letter-spacing: 0; color: var(--vidro-tinta); background: var(--vidro); border-radius: 0.3cqw; padding: 0.35cqw 0.8cqw; }
.t-painel b { font: 500 1.3cqw var(--ui); color: #F0F2ED; background: var(--vidro); border: 1px solid var(--vidro-linha); border-radius: 0.5cqw; padding: 1cqw 1.4cqw; white-space: nowrap; }
.t-legenda { position: absolute; left: 1.6cqw; bottom: 1.6cqw; display: flex; align-items: center; gap: 1cqw; font: 500 1.05cqw var(--mono); color: var(--vidro-tinta); background: var(--vidro); border-radius: 0.5cqw; padding: 0.9cqw 1.3cqw; }
.t-legenda i { width: 11cqw; height: 0.9cqw; border-radius: 1cqw; background: linear-gradient(90deg, rgb(168,26,18), rgb(226,96,34), rgb(232,178,46), rgb(92,168,92), rgb(74,176,168), rgb(58,124,196), rgb(36,74,162)); }
.t-lateral { position: relative; flex: none; width: 31%; display: flex; flex-direction: column; gap: 1.15cqw; padding: 2cqw 1.8cqw; background: var(--superficie); border-left: 1px solid var(--linha); font-size: 1.3cqw; }
.t-lateral small { font: 500 0.95cqw var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinta-3); }
.t-area { font-size: 2.1cqw; font-weight: 600; letter-spacing: -0.02em; margin-top: -0.6cqw; }
.t-estado { align-self: flex-start; font-weight: 600; font-size: 1.2cqw; color: var(--fogo); background: var(--fogo-claro); border-radius: 0.4cqw; padding: 0.5cqw 1cqw; }
.t-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8cqw; }
.t-fotos i { aspect-ratio: 1 / 1; border-radius: 0.5cqw; border: 1px solid var(--linha); background: radial-gradient(60% 50% at 30% 35%, #4d7a4a 0%, transparent 70%), radial-gradient(50% 45% at 72% 70%, #3c6b40 0%, transparent 70%), #26402b; }
.t-fotos i:last-child { background: radial-gradient(62% 52% at 52% 58%, #c58f55 0%, #a9713f 45%, transparent 72%), radial-gradient(50% 45% at 20% 22%, #3f6d41 0%, transparent 70%), #26402b; }
.t-medida { display: flex; flex-direction: column; gap: 0.6cqw; padding-top: 1cqw; border-top: 1px solid var(--linha); }
.t-medida span { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.2cqw; }
/* a tarja no lugar de um nome que a vitrine pública não diz (o índice): a forma de um rótulo, sem o texto */
.t-tarja { display: block; width: var(--l, 40%); height: 1cqw; border-radius: 1cqw; background: var(--linha-forte); }
.t-painel .t-tarja { display: inline-block; vertical-align: middle; background: rgba(240,242,237,0.38); }
.t-regua { position: relative; height: 0.9cqw; border-radius: 1cqw; background: linear-gradient(90deg, rgb(168,26,18), rgb(226,96,34), rgb(232,178,46), rgb(92,168,92), rgb(74,176,168), rgb(58,124,196), rgb(36,74,162)); }
.t-regua u { position: absolute; top: -0.55cqw; left: var(--p); width: 0.75cqw; height: 2cqw; margin-left: -0.37cqw; border-radius: 0.3cqw; background: var(--tinta); border: 0.18cqw solid #fff; box-shadow: 0 0 0 0.12cqw rgba(21,26,22,0.5); animation: vitrine-marca 1.1s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.t-fab { position: absolute; right: 1.6cqw; bottom: 1.6cqw; font-weight: 600; font-size: 1.15cqw; color: #fff; background: var(--verde); border-radius: 0.55cqw; padding: 0.95cqw 1.7cqw; box-shadow: 0 0.4cqw 1.3cqw rgba(0,0,0,0.28); }

.vg-pulso { transform-box: fill-box; transform-origin: center; animation: vitrine-pulso 2.4s ease-out infinite; }
@keyframes vitrine-sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes vitrine-marca { from { left: 50%; opacity: 0; } to { left: var(--p); opacity: 1; } }
@keyframes vitrine-pulso { 0% { transform: scale(0.65); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }

/* ------------------------------------------------------------ o formulário */
.login-lado { display: flex; align-items: center; justify-content: center; padding: 32px 24px; background: var(--papel); }
.login-fundo .login-cartao { width: min(372px, 100%); box-shadow: none; border: 0; background: transparent; overflow: visible; }
/* o cartão do login é a PÁGINA (rola com ela), não um diálogo que rola por dentro (estilo.css .modal) */
.login-fundo .login-cartao { display: block; max-height: none; }
.login-fundo .login-cartao > .modal-corpo { overflow: visible; }
.login-fundo .modal-cab { padding: 0 0 22px; }
.login-fundo .login-marca { font-size: 16px; margin-bottom: 28px; }
.login-fundo .modal-cab h2 { font: 600 24px/32px var(--ui); letter-spacing: -0.025em; }
.login-fundo .modal-corpo { padding: 0; }
.login-fundo .campo input { background: var(--superficie); }

/* botão do Google + divisor "ou": a altura fica reservada desde o início (o botão do GIS é
   'large', 40px), então quando o script do Google termina de carregar e desenha o botão de
   verdade dentro de .google-botao não há pulo de leiaute. Sem client id configurado, ou se o
   script falhar, `.login-google` recebe `hidden` (app.js) e some por inteiro. */
.login-google { display: flex; flex-direction: column; gap: 16px; margin-bottom: 22px; }
.google-botao { min-height: 40px; }
.login-divisor { position: relative; text-align: center; font-size: 12px; color: var(--tinta-3); }
.login-divisor::before, .login-divisor::after { content: ''; position: absolute; top: 50%; width: calc(50% - 16px); height: 1px; background: var(--linha); }
.login-divisor::before { left: 0; }
.login-divisor::after { right: 0; }
.login-pe { display: flex; padding: 18px 0 14px; }
.login-pe .btn { flex: 1; min-height: var(--alvo-toque); font-size: var(--t-body-m); }
.login-dica { margin: 0; font-size: 12px; color: var(--tinta-3); text-align: left; }

/* "Você ainda não tem acesso": só as duas linhas e as ações — nada de parágrafo
   explicando o produto (a tela só informa). */
.login-sem-acesso { display: flex; flex-direction: column; gap: 10px; }

/* notebook pequeno, tablet em pé e celular: quem abre quer entrar. Fica só o formulário. */
@media (max-width: 960px), (max-height: 560px) {
  .login-fundo { grid-template-columns: minmax(0, 1fr); }
  .vitrine { display: none; }
}
/* tela larga e baixa: o título cede espaço ao notebook */
@media (min-width: 961px) and (max-height: 760px) { .vitrine-titulo { font-size: clamp(24px, 2.6vw, 34px); } }
@media (prefers-reduced-motion: reduce) { .pc, .t-regua u, .vg-pulso { animation: none; } .vg-pulso { opacity: 0; } }

/* quem não tem conta vê o caminho na própria tela de entrar; o botão é o contorno do Material, na altura de alvo do produto */
.login-criar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linha); font-size: 14px; color: var(--tinta-2); }
.login-criar .btn { min-height: var(--alvo); padding: 0 20px; font-size: var(--t-body-m); }
