/* Telas de autenticação do AIZapHub — dark-tech (mesma linguagem da landing). */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600&display=swap");

:root {
  --verde: #1bb36a;
  --verde-escuro: #159a5c;
  --lime: #b7e92e;
  --bg: #070d0b;
  --bg-2: #0b1411;
  --bg-3: #101c17;
  --fg: #e9f2ec;
  --fg-sec: #93aaa0;
  --fg-dim: #5f776c;
  --borda: #182821;
  --borda-forte: #26392f;
  --campo-bg: #0e1814;
  --erro: #ff7a7a;
  --erro-bg: #2a1414;
  --ok: #86e29a;
  --ok-bg: #122a1a;
  --ring: rgba(27, 179, 106, 0.22);
  --ink: #06130b;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
}

/* ---------- Painel de marca (esquerda) ---------- */
.marca-painel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 110% at 72% 18%, rgba(27, 179, 106, 0.22), transparent 58%),
    linear-gradient(160deg, #081712 0%, #070d0b 60%);
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.marca-painel #stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.marca-painel::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -150px; bottom: -170px;
  background: radial-gradient(circle, rgba(183, 233, 46, 0.16), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.marca-topo, .marca-centro, .beneficios { position: relative; z-index: 1; }

.marca-topo { display: flex; align-items: center; gap: 12px; }
.marca-topo .logo { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 8px 22px rgba(27, 179, 106, 0.3)); }
.marca-topo .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.marca-topo .nome { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

.marca-centro { max-width: 460px; }
.marca-centro h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em;
  margin: 0 0 18px;
}
.marca-centro h2 .destaque { color: var(--lime); }
.marca-centro p { font-size: 16px; line-height: 1.6; color: var(--fg-sec); margin: 0; max-width: 42ch; }

.beneficios { display: flex; flex-direction: column; gap: 15px; }
.beneficio { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: var(--fg); }
.beneficio .b-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: rgba(27, 179, 106, 0.1); display: grid; place-items: center;
  border: 1px solid var(--borda-forte);
}
.beneficio .b-ico svg { width: 18px; height: 18px; fill: var(--lime); }

/* ---------- Formulário (direita) ---------- */
.form-painel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
  background: var(--bg-2);
  border-left: 1px solid var(--borda);
}
.form-wrap {
  width: 100%; max-width: 400px;
  animation: subir .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.marca-mobile { display: none; align-items: center; gap: 11px; margin-bottom: 28px; }
.marca-mobile .logo { width: 40px; height: 40px; }
.marca-mobile .logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.marca-mobile .nome { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.form-wrap h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 7px; }
.form-wrap .sub { color: var(--fg-sec); font-size: 15px; margin: 0 0 28px; }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 13px; font-weight: 500; color: var(--fg-sec); margin-bottom: 8px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .ico {
  position: absolute; left: 14px; width: 18px; height: 18px;
  fill: none; stroke: var(--fg-dim); stroke-width: 1.8; pointer-events: none;
  transition: stroke .15s;
}
.input-wrap input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  font-size: 15px; font-family: inherit; color: var(--fg);
  background: var(--campo-bg);
  border: 1.5px solid var(--borda-forte);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input-wrap input::placeholder { color: var(--fg-dim); }
.input-wrap input:focus {
  background: var(--bg-3);
  border-color: var(--verde);
  box-shadow: 0 0 0 4px var(--ring);
}
.input-wrap:focus-within .ico { stroke: var(--verde); }
.input-wrap .toggle {
  position: absolute; right: 8px;
  background: none; border: none; cursor: pointer; padding: 8px;
  display: grid; place-items: center; border-radius: 8px;
}
.input-wrap .toggle svg { width: 19px; height: 19px; fill: none; stroke: var(--fg-dim); stroke-width: 1.8; }
.input-wrap .toggle:hover { background: var(--bg-3); }

.btn {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-size: 15px; font-weight: 600; font-family: var(--font-display);
  color: var(--ink);
  background: var(--lime);
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: filter .15s, transform .08s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn .spin {
  width: 17px; height: 17px; border: 2.5px solid rgba(6,19,11,.35);
  border-top-color: var(--ink); border-radius: 50%; display: none; animation: girar .7s linear infinite;
}
.btn.carregando .spin { display: inline-block; }
@keyframes girar { to { transform: rotate(360deg); } }

.aviso {
  display: none; font-size: 14px; padding: 11px 13px; border-radius: 10px; margin-bottom: 18px;
  align-items: center; gap: 8px; border: 1px solid transparent;
}
.aviso.erro { display: flex; color: var(--erro); background: var(--erro-bg); border-color: #3a1c1c; }
.aviso.ok { display: flex; color: var(--ok); background: var(--ok-bg); border-color: #1d3a26; }

.rodape { text-align: center; font-size: 14.5px; color: var(--fg-sec); margin-top: 26px; }
.rodape a { color: var(--lime); font-weight: 600; text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .marca-painel { display: none; }
  .marca-mobile { display: flex; }
  .form-painel { padding: 44px 22px; align-items: flex-start; border-left: none; }
  .form-wrap { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .form-wrap { animation: none; }
}
