@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7f6; --surface: #ffffff; --ink: #122019; --ink-soft: #3b4a43; --muted: #6a7c72;
  --line: #dfe8e4; --brand: #0d9488; --brand-strong: #0f766e; --brand-ink: #0a5e55; --bad: #be123c; --bad-soft: #fde8ee;
  --ring: 0 0 0 4px rgba(13,148,136,.16);
}
:root[data-theme="dark"] {
  --bg: #0b1310; --surface: #111d18; --ink: #e8f1ec; --ink-soft: #c3d2cb; --muted: #8aa197;
  --line: #22342d; --brand: #2dd4bf; --brand-strong: #14b8a6; --brand-ink: #99f6e4; --bad: #fb7185; --bad-soft: #321520;
  --ring: 0 0 0 4px rgba(45,212,191,.2);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }

.pagina { min-height: 100%; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }

/* ---------- painel da marca ---------- */
.painel { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 44px clamp(32px, 5vw, 64px); color: #ecfdf8;
  background: linear-gradient(160deg, #0f766e 0%, #0b5f58 55%, #08443f 100%); }
.painel::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248,201,201,.28), rgba(248,201,201,0) 70%); }
.painel::after { content: ""; position: absolute; inset: -140px auto auto -100px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,.22), rgba(94,234,212,0) 70%); }
.painel > * { position: relative; }
.marca { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; letter-spacing: .1px; }
.logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; flex: none; }
.logo svg { width: 23px; height: 23px; }
.painel-meio { max-width: 460px; }
.painel h2 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.18; font-weight: 800; letter-spacing: -.6px; }
.painel p { margin: 0 0 26px; color: rgba(236,253,248,.82); font-size: 15px; line-height: 1.6; }
.procs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.procs li { background: var(--c); color: var(--t); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.painel-pe { font-size: 12.5px; color: rgba(236,253,248,.7); font-weight: 600; }

/* ---------- formulário ---------- */
.lado-form { position: relative; display: grid; place-items: center; padding: 40px 24px; }
.tema { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; color: var(--ink-soft); cursor: pointer; }
.tema svg { width: 18px; height: 18px; }
.tema .moon { display: none; }
[data-theme="dark"] .tema .sun { display: none; }
[data-theme="dark"] .tema .moon { display: block; }
.cartao { width: min(400px, 100%); }
.marca-cel { display: none; }
h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.sub { margin: 8px 0 28px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 0 0 7px; }
.campo { position: relative; margin-bottom: 18px; }
.campo > svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.campo input { width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 46px 0 44px; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.campo input::placeholder { color: #9aaba3; }
.campo input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.ver { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.ver svg { width: 19px; height: 19px; }
.ver:hover, .ver.on { color: var(--brand-strong); background: rgba(13,148,136,.08); }
.erro { min-height: 20px; margin: -4px 0 12px; color: var(--bad); font-size: 13.5px; font-weight: 700; }
.erro:not(:empty) { padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); margin: 0 0 14px; }
.entrar { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--brand-strong); color: #fff; font-size: 16px; font-weight: 800;
  cursor: pointer; transition: transform .08s, filter .15s; box-shadow: 0 10px 24px -12px rgba(15,118,110,.8); }
.entrar:hover { filter: brightness(1.06); }
.entrar:active { transform: translateY(1px); }
.entrar:disabled { opacity: .7; cursor: default; }
[data-theme="dark"] .entrar { color: #052e2a; background: var(--brand); }
.ajuda { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- celular e tablet em pé ---------- */
@media (max-width: 860px) {
  .pagina { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .painel { padding: 22px 20px 24px; gap: 14px; }
  .painel-meio h2 { font-size: 21px; margin-bottom: 8px; }
  .painel p { font-size: 13.5px; margin-bottom: 14px; }
  .painel-pe { display: none; }
  .procs { gap: 6px; }
  .procs li { font-size: 11.5px; padding: 5px 10px; }
  .lado-form { place-items: start center; padding: 28px 20px 40px; }
  .tema { top: 18px; right: 16px; background: rgba(255,255,255,.14); border-color: transparent; color: #fff; position: fixed; }
  h1 { font-size: 26px; }
  .sub { margin-bottom: 22px; }
  .campo input { font-size: 16px; }
}
@media (max-width: 420px) {
  .painel-meio p { display: none; }
}
