/* Telas Entrar, Inscrever-se e Nova senha: painel da marca à esquerda, cartão do formulário à direita. */
:root {
  /* Marca AfiliGo */
  --orange: #ff6a00; --orange-2: #ff9100; --orange-ink: #fff;
  --dark: #0a0a0a; --dark-2: #1e1e1e; --dark-line: #262626; --dark-ink: #ffffff; --dark-muted: #a8a8a8;
  --bg: #f4f4f4; --panel: #fff; --ink: #0a0a0a; --muted: #5e5e5e; --line: #dadada;
  --err: #c0392b; --okbg: #e8f6ec; --okink: #17663a;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 Poppins, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

/* ---------- Lado esquerdo: marca ---------- */
.brand { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-ink); padding: 44px 56px; display: flex; flex-direction: column; gap: 40px; }
.brand .glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.brand > *:not(.glow) { position: relative; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { display: block; width: 300px; max-width: 100%; height: auto; }
.mobile-logo img { width: 210px; }
.pitch { margin-top: auto; max-width: 560px; }
.pitch h1 { font: 700 clamp(32px, 3.6vw, 50px)/1.08 Poppins, system-ui, sans-serif; letter-spacing: -.02em; margin: 0 0 16px; }
.pitch h1 em { font-style: normal; color: var(--orange); }
.pitch p { color: var(--dark-muted); font-size: 17px; margin: 0; max-width: 460px; }
/* 5 cards: 3 em cima e 2 embaixo (grade de 6 colunas). */
.feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 760px; margin-bottom: auto; }
.feat { grid-column: span 2; flex-direction: column; }
.feat:nth-child(n+4) { grid-column: span 3; flex-direction: row; }
.feat { background: rgba(255, 255, 255, .04); border: 1px solid var(--dark-line); border-radius: 16px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; backdrop-filter: blur(4px); }
.feat .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 106, 0, .14); color: var(--orange); }
.feat .ic svg { width: 21px; height: 21px; }
.feat b { display: block; font-weight: 600; margin-bottom: 2px; }
.feat span { color: var(--dark-muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- Lado direito: formulário ---------- */
.side { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.side .chart { position: absolute; right: -40px; bottom: -30px; width: 560px; max-width: 95%; opacity: .55; pointer-events: none; }
.card { position: relative; width: 100%; max-width: 420px; background: var(--panel); border-radius: 24px; padding: 36px 34px 30px; box-shadow: 0 24px 60px -24px rgba(20, 22, 33, .28), 0 2px 6px rgba(20, 22, 33, .05); }
.card h2 { font: 700 28px/1.15 Poppins, system-ui, sans-serif; margin: 0 0 6px; letter-spacing: -.01em; }
.card .lead { color: var(--muted); margin: 0 0 24px; }
label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 7px; }
.field { position: relative; margin-bottom: 16px; }
.field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #9aa0ad; pointer-events: none; }
.field input { width: 100%; padding: 13px 14px 13px 44px; border-radius: 12px; border: 1px solid var(--line); background: #fafafa; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
.field input::placeholder { color: #a4a8b3; }
.field input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 0, .14); }
.field.pass input { padding-right: 48px; }
.field .show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; border-radius: 10px; color: #8d93a1; cursor: pointer; display: grid; place-items: center; }
.field .show:hover { color: var(--ink); background: #f1f1f1; }
.field .show svg { width: 20px; height: 20px; }
.row-end { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
a.orange, button.link { color: var(--orange); font-weight: 600; text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
a.orange:hover, button.link:hover { text-decoration: underline; }
button.link { display: block; margin: -4px 0 14px; }
button.go { width: 100%; border: 0; background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: var(--orange-ink); padding: 14px; border-radius: 12px; font: 600 16px Poppins, system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(255, 106, 0, .8); transition: transform .1s, filter .15s; }
button.go:hover { filter: brightness(1.04); } button.go:active { transform: translateY(1px); }
button.go:disabled { opacity: .6; cursor: wait; }
.err { color: var(--err); min-height: 20px; margin: 0 0 10px; font-weight: 500; font-size: 14px; }
.ok { background: var(--okbg); color: var(--okink); border-radius: 12px; padding: 11px 13px; margin: 0 0 18px; font-weight: 500; font-size: 14px; }
.ok.bad { background: #fdecea; color: var(--err); }
.hint { color: var(--muted); font-size: 12.5px; margin: -8px 0 14px; }
.foot { text-align: center; margin: 20px 0 0; color: var(--muted); }
.foot a { color: var(--orange); font-weight: 600; text-decoration: none; } .foot a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); margin: 0 0 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
label.check a { color: var(--orange); font-weight: 600; text-decoration: none; }
.legal { text-align: center; margin: 14px 0 0; font-size: 12.5px; } .legal a { color: var(--muted); }

.mobile-logo { display: none !important; }
/* ---------- Celular e tablet ---------- */
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .brand { padding: 26px 20px 30px; gap: 22px; }
  .pitch { margin-top: 0; } .pitch p { font-size: 15px; }
  .feats { margin-bottom: 0; }
  .side { order: -1; padding: 0 16px 28px; background: var(--dark); }
  .side .chart { display: none; }
  .card { margin-top: 84px; padding: 28px 22px 24px; border-radius: 20px; }
  .mobile-logo { display: flex !important; position: absolute; top: 22px; left: 20px; color: var(--dark-ink); }
  .brand .logo { display: none; }
}
@media (max-width: 1200px) and (min-width: 961px) { .feat, .feat:nth-child(n+4) { grid-column: span 3; flex-direction: row; } .feat:last-child { grid-column: span 6; } }
@media (max-width: 960px) { .feat, .feat:nth-child(n+4) { grid-column: span 3; flex-direction: row; } .feat:last-child { grid-column: span 6; } }
@media (max-width: 520px) { .feat, .feat:nth-child(n+4), .feat:last-child { grid-column: span 6; } .card h2 { font-size: 24px; } }
