/* PastoPro — tela de acesso */
:root {
  --noite: #041a10; --mata: #062b18; --mata-2: #0b3d22; --verde: #1f7a3d; --lima: #9ccc3a; --lima-2: #c3e04a;
  --papel: #fbfaf6; --tinta: #0d1f15; --tinta-2: #46564c; --tinta-3: #83918a; --linha: #e2e6de; --erro: #b3261e;
  --titulo: "Montserrat", "Inter", system-ui, sans-serif; --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.55 var(--texto); color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.acesso { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

/* ------------------------------------------------------------ painel da marca */
.vitrine { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 3.2rem);
  background: radial-gradient(900px 600px at 0% 0%, rgba(31,122,61,.55), transparent 60%),
              radial-gradient(900px 700px at 100% 110%, rgba(156,204,58,.25), transparent 60%),
              linear-gradient(170deg, var(--mata) 0%, var(--noite) 100%); }
.vitrine .arcos { position: absolute; left: -10%; right: -10%; bottom: -12%; height: 55%; pointer-events: none; }
.vitrine > * { position: relative; z-index: 1; }
.marca { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.marca img { width: 42px; height: 42px; }
.marca-nome { font: 800 1.6rem/1 var(--titulo); letter-spacing: -.035em; color: #fff; }
.marca-nome b { background: linear-gradient(100deg, #4f9a3a, var(--lima-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca-lema { display: block; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: .35rem; font-weight: 600; }
.vitrine-texto { margin-top: auto; padding-top: 3rem; max-width: 520px; }
.vitrine h2 { margin: 0; font: 800 clamp(2rem, 3.4vw, 2.9rem)/1.05 var(--titulo); letter-spacing: -.03em; text-transform: uppercase; }
.vitrine h2 span { background: linear-gradient(100deg, var(--lima-2), var(--lima) 50%, #5fae45); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vitrine p { margin: 1.1rem 0 0; color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 44ch; }

.previa { margin-top: 2.4rem; max-width: 440px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 1.1rem 1.2rem;
  backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.previa-topo { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.previa-topo span:last-child { display: inline-flex; align-items: center; gap: .4rem; letter-spacing: 0; text-transform: none; font-size: .75rem; }
.previa-topo i { width: 7px; height: 7px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 4px rgba(156,204,58,.2); }
.previa-item { display: flex; gap: .7rem; align-items: center; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; color: rgba(255,255,255,.88); }
.previa-item:first-of-type { border-top: 0; margin-top: .4rem; }
.previa-item em { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: .8rem; font-weight: 700; }
.previa-item em.ambar { background: rgba(245,158,11,.18); color: #fbbf24; }
.previa-item em.lima { background: rgba(156,204,58,.18); color: var(--lima); }
.previa-item small { display: block; color: rgba(255,255,255,.5); font-size: .74rem; }
.vitrine-rodape { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2.4rem; font-size: .8rem; color: rgba(255,255,255,.5); }
.vitrine-rodape span { display: inline-flex; align-items: center; gap: .4rem; }
.vitrine-rodape svg { width: 15px; height: 15px; color: var(--lima); }

/* ------------------------------------------------------------ formulário */
.painel-form { display: flex; flex-direction: column; padding: clamp(1.5rem, 4vw, 3rem); }
.painel-form .topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.painel-form .topo .marca { display: none; }
.painel-form .topo .marca-nome { color: var(--tinta); font-size: 1.35rem; }
.painel-form .topo .marca img { width: 34px; height: 34px; }
.voltar { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; color: var(--tinta-2); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; transition: background .15s; }
.voltar:hover { background: #eef1ea; color: var(--tinta); }
.voltar svg { width: 16px; height: 16px; }

.caixa { width: 100%; max-width: 400px; margin: auto; padding: 2.5rem 0; }
.caixa h1 { margin: 0; font: 800 1.9rem/1.15 var(--titulo); letter-spacing: -.03em; }
.caixa .sub { margin: .45rem 0 0; color: var(--tinta-2); }
.alerta { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; padding: .8rem .95rem; border-radius: 12px; font-size: .88rem; line-height: 1.45; }
.alerta svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alerta.erro { background: #fdf0ee; color: #8f1d17; border: 1px solid #f5cdc8; }
.alerta.info { background: #eef6e6; color: #245d22; border: 1px solid #d3e8bf; }

form { margin-top: 1.8rem; display: grid; gap: 1.15rem; }
.campo label { display: flex; justify-content: space-between; align-items: baseline; font-size: .84rem; font-weight: 600; color: var(--tinta); margin-bottom: .45rem; }
.campo label a { font-weight: 500; color: var(--verde); text-decoration: none; font-size: .82rem; }
.campo label a:hover { text-decoration: underline; }
.controle { position: relative; }
.controle > svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--tinta-3); pointer-events: none; transition: color .15s; }
.controle input { width: 100%; height: 50px; padding: 0 3rem 0 2.8rem; font: inherit; font-size: .98rem; color: var(--tinta); background: #fff; border: 1.5px solid var(--linha); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.controle input::placeholder { color: #a9b3ad; }
.controle input:hover { border-color: #cdd4ca; }
.controle input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(31,122,61,.13); }
.controle:focus-within > svg { color: var(--verde); }
.controle.invalido input { border-color: #e3a29b; }
.olho { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 9px; color: var(--tinta-3); cursor: pointer; display: grid; place-items: center; }
.olho:hover { background: #f1f3ee; color: var(--tinta); }
.olho svg { width: 19px; height: 19px; }
.capslock { display: none; align-items: center; gap: .35rem; margin-top: .45rem; font-size: .78rem; color: #92400e; }
.capslock.visivel { display: flex; }
.capslock svg { width: 14px; height: 14px; }

.entrar { position: relative; height: 52px; margin-top: .35rem; border: 0; border-radius: 12px; cursor: pointer; font: 700 1rem var(--texto); letter-spacing: .01em; color: #fff;
  background: linear-gradient(135deg, var(--mata-2), var(--verde)); box-shadow: 0 12px 26px -12px rgba(11,61,34,.7), inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; gap: .55rem; transition: transform .12s, box-shadow .2s, filter .2s; }
.entrar:hover { filter: brightness(1.07); box-shadow: 0 16px 30px -12px rgba(11,61,34,.75); }
.entrar:active { transform: translateY(1px); }
.entrar svg { width: 18px; height: 18px; transition: transform .2s; }
.entrar:hover svg { transform: translateX(3px); }
.entrar[disabled] { cursor: progress; filter: saturate(.7); }
.girando { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.separador { display: flex; align-items: center; gap: .8rem; margin: 1.8rem 0 0; font-size: .78rem; color: var(--tinta-3); }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.demo { margin-top: 1.1rem; text-align: center; font-size: .9rem; color: var(--tinta-2); }
.demo a { color: var(--verde); font-weight: 600; text-decoration: none; }
.demo a:hover { text-decoration: underline; }

.ajuda { margin-top: 1rem; background: #f4f6f0; border: 1px solid var(--linha); border-radius: 12px; padding: .9rem 1rem; font-size: .86rem; color: var(--tinta-2); }
.ajuda[hidden] { display: none; }
.ajuda strong { color: var(--tinta); }
.ajuda small { display: block; margin-top: .55rem; font-size: .78rem; color: var(--tinta-3); }
/* pedir o link é a ação principal da caixa: verde do WhatsApp, botão de verdade, não mais um texto */
.ajuda-botao { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem;
  padding: .55rem .9rem; border-radius: 10px; background: #1faf54; color: #fff;
  font-size: .86rem; font-weight: 600; text-decoration: none; }
.ajuda-botao:hover { background: #17903f; }
.ajuda-botao svg { width: 17px; height: 17px; }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .78rem; color: var(--tinta-3); }
.rodape span { display: inline-flex; align-items: center; gap: .35rem; }
.rodape svg { width: 14px; height: 14px; color: var(--verde); }

@media (max-width: 960px) {
  .acesso { grid-template-columns: 1fr; }
  .vitrine { display: none; }
  .painel-form .topo .marca { display: inline-flex; }
  .painel-form { background: radial-gradient(700px 400px at 100% 0%, rgba(156,204,58,.12), transparent 70%), var(--papel); }
}
@media (prefers-reduced-motion: reduce) { .girando { animation-duration: 2s; } }

/* já conectado */
.conectado { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; padding: .85rem .9rem; background: #fff; border: 1.5px solid var(--linha); border-radius: 14px; }
.conectado-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .85rem; background: #e6f3d6; color: var(--mata-2); }
.conectado div { min-width: 0; line-height: 1.25; }
.conectado small { display: block; font-size: .76rem; color: var(--tinta-3); }
.conectado strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continuar { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .95rem; border-radius: 10px; background: var(--mata-2); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.continuar:hover { background: var(--verde); }
.continuar svg { width: 16px; height: 16px; }

/* escolha de fazenda (usuário com acesso a mais de uma) */
.escolha-fazenda { display: grid; gap: .6rem; margin-top: 1.4rem; }
.escolha-fazenda button { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .9rem 1rem; background: #fff; border: 1.5px solid var(--linha); border-radius: 14px; font: 600 1rem inherit; color: inherit; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; }
.escolha-fazenda button:hover { border-color: var(--mata-2); transform: translateY(-1px); }
.escolha-fazenda button > span:nth-child(2) { flex: 1; }
.escolha-fazenda button svg { width: 18px; height: 18px; }
.escolha-inicial { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #e6f3d6; color: var(--mata-2); font-weight: 800; }
.rodape a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
