/* ============================================================
   Pushfy 2.0 — Tela de login ("o celular do jogador")
   Folha ISOLADA (sem app.css / Bootstrap). Tema via [data-theme]
   só na coluna do formulário; o painel da marca é sempre escuro.
   ============================================================ */
:root {
  --font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans Variable", "Inter Variable", Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --accent: #4979FF; --accent-2: #6f9bff; --mint: #35d0a6;
  --grad: linear-gradient(135deg, #4979FF 0%, #6f9bff 100%);
  --ch-sms: #4979FF; --ch-rcs: #f59e0b; --ch-voz: #0ea5e9; --ch-wpp: #22c55e; --ch-mail: #ec4899;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ink: #070a14; --line: rgba(255,255,255,.09);
}
[data-theme="light"] {
  --bg: #f7f8fc; --surface: #ffffff; --surface-2: #f1f3f8; --border: #e5e8ef; --border-strong: #cdd2de;
  --text: #12151f; --muted: #5f6577; --muted-2: #8b91a3;
  --input-bg: #ffffff; --input-border: #d6dae4;
  --danger: #c92a2a; --danger-bg: #fef3f2; --danger-bd: #f8c9c5;
  --ok: #0f7a5a; --ok-bg: #ecfdf3; --ok-bd: #b6e9cc;
  --ring: rgba(73,121,255,.22);
}
[data-theme="dark"] {
  --bg: #0b0e18; --surface: #10141f; --surface-2: #161b2a; --border: #222840; --border-strong: #303752;
  --text: #eef0f7; --muted: #9aa1b5; --muted-2: #6f7690;
  --input-bg: #0b0f1a; --input-border: #2a3147;
  --danger: #f97066; --danger-bg: rgba(249,112,102,.10); --danger-bd: rgba(249,112,102,.35);
  --ok: #47d19f; --ok-bg: rgba(71,209,159,.10); --ok-bd: rgba(71,209,159,.35);
  --ring: rgba(111,155,255,.30);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button { font: inherit; }
@keyframes lg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Estrutura: formulário à esquerda, marca à direita ---------- */
.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: clamp(552px, 43vw, 648px) minmax(0, 1fr); }

/* ============================================================
   COLUNA DO FORMULÁRIO
   ============================================================ */
.lg-form-wrap { display: flex; flex-direction: column; padding: 40px clamp(32px, 4vw, 64px) 32px; background: var(--bg); border-right: 1px solid var(--border); }
.lg-form-head { display: flex; align-items: center; justify-content: space-between; min-height: 32px; animation: lg-in .6s var(--ease) both; }
.lg-logo { height: 34px; width: auto; }
.lg-form { width: 100%; max-width: 460px; margin: auto 0; padding: 40px 0; animation: lg-in .7s var(--ease) .08s both; }
.lg-h1 { font-family: var(--display); font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 6px; }
.lg-p { color: var(--muted); margin: 0 0 26px; font-size: .94rem; }

.lg-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; font-size: .86rem; line-height: 1.45; border: 1px solid; margin-bottom: 18px; }
.lg-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lg-alert.err { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-bd); animation: lg-shake .5s var(--ease); }
.lg-alert.ok  { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-bd); }
@keyframes lg-shake { 20%,60% { transform: translateX(-4px); } 40%,80% { transform: translateX(4px); } }

.lg-field { margin-bottom: 16px; }
.lg-label { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-bottom: 7px; }
.lg-label a { font-weight: 500; font-size: .8rem; }
.lg-ctrl { position: relative; display: flex; align-items: center; }
.lg-ctrl > svg.lead { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none; transition: color .2s; }
.lg-input { width: 100%; height: 48px; padding: 0 44px 0 42px; font: inherit; font-size: .95rem; color: var(--text); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 12px; outline: none; transition: border-color .18s, box-shadow .18s; appearance: none; -webkit-appearance: none; }
.lg-input::placeholder { color: var(--muted-2); }
.lg-input:hover { border-color: var(--border-strong); }
.lg-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.lg-ctrl:focus-within > svg.lead { color: var(--accent); }
.lg-input:-webkit-autofill, .lg-input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset; transition: background-color 9999s; }
.lg-eye { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted-2); border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: color .15s, background .15s; }
.lg-eye:hover { color: var(--text); background: var(--surface-2); }
.lg-eye svg { width: 18px; height: 18px; }
.lg-eye .off { display: none; }
.lg-eye[aria-pressed="true"] .on { display: none; }
.lg-eye[aria-pressed="true"] .off { display: block; }
.lg-hint { display: none; align-items: center; gap: 6px; font-size: .76rem; color: #b45309; margin-top: 7px; }
.lg-hint.show { display: flex; }
.lg-hint svg { width: 14px; height: 14px; }

.lg-btn { position: relative; width: 100%; height: 50px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font-weight: 700; font-size: .98rem; background: var(--grad); background-size: 160% 100%; background-position: 0% 50%; box-shadow: 0 10px 30px -10px rgba(73,121,255,.7), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .15s var(--ease), box-shadow .2s, background-position .5s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.lg-btn:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(73,121,255,.85), inset 0 1px 0 rgba(255,255,255,.18); }
.lg-btn:active { transform: translateY(0); }
.lg-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--ring); }
.lg-btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.lg-btn:hover svg.arrow { transform: translateX(3px); }
.lg-btn .spin { display: none; animation: lg-spin .8s linear infinite; }
.lg-btn.is-loading { pointer-events: none; opacity: .9; }
.lg-btn.is-loading .arrow { display: none; }
.lg-btn.is-loading .spin { display: block; }
@keyframes lg-spin { to { transform: rotate(360deg); } }

.lg-signup { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .86rem; color: var(--muted); }
.lg-signup a { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.lg-signup a svg { width: 15px; height: 15px; }
.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--muted-2); animation: lg-in .6s var(--ease) .2s both; }
.lg-foot a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lg-foot a svg { width: 14px; height: 14px; }
.lg-foot .lock { display: inline-flex; align-items: center; gap: 6px; }
.lg-foot .lock svg { width: 13px; height: 13px; color: var(--ok); }

/* ============================================================
   PAINEL DA MARCA
   ============================================================ */
.lg-brand {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; row-gap: 18px; padding: 32px clamp(28px, 3.4vw, 56px) 26px;
}
.lg-brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 68% 52%, rgba(73,121,255,.22), transparent 70%), linear-gradient(180deg, #0a0e1c, #070a14);
}
/* anéis de sinal atrás do celular */
.lg-rings { position: absolute; z-index: -1; left: 68%; top: 52%; width: 0; height: 0; pointer-events: none; }
.lg-rings i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(111,155,255,.10); transform: translate(-50%, -50%); }
.lg-rings i:nth-child(1) { width: 420px; height: 420px; } .lg-rings i:nth-child(2) { width: 640px; height: 640px; border-color: rgba(111,155,255,.07); } .lg-rings i:nth-child(3) { width: 880px; height: 880px; border-color: rgba(111,155,255,.045); }

.lg-brand-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; animation: lg-in .6s var(--ease) both; }
.lg-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #aab4d6; border: 1px solid var(--line); background: rgba(255,255,255,.04); padding: 7px 12px; border-radius: 999px; }
.lg-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.lg-logo-m { display: none; height: 26px; }
.lg-brand-top .ver { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: #5c6690; text-transform: uppercase; }

/* corpo: texto + canais | celular */
.lg-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: clamp(28px, 3vw, 56px); align-items: center; min-height: 0; width: 100%; max-width: 1120px; }
.lg-copy { max-width: 520px; animation: lg-in .7s var(--ease) .1s both; }
.lg-copy h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.65rem, 2.15vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.lg-copy h2 span { color: #86a4ff; }
.lg-copy p { margin: 0 0 18px; color: #9aa4c7; font-size: .92rem; line-height: 1.5; max-width: 50ch; }
.lg-ch { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lg-ch li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 9px 8px 9px 6px; margin: 0 -6px; border-bottom: 1px solid var(--line); border-radius: 10px; cursor: default; transition: background .15s; }
.lg-ch li:hover, .lg-ch li.is-on { background: rgba(255,255,255,.04); }
.lg-ch .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.lg-ch .ic svg { width: 16px; height: 16px; }
.lg-ch .n { font-weight: 700; font-size: .86rem; color: #eef0f7; }
.lg-ch .d { display: block; font-size: .75rem; color: #8d97bb; line-height: 1.38; margin-top: 1px; }
.lg-ch .j { display: none; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: #6b7597; white-space: nowrap; }
.lg-ch li:hover .j, .lg-ch li.is-on .j { color: var(--c); }

/* ---------- Celular (mockup) ---------- */
.lg-phone-wrap { perspective: 1600px; animation: lg-in .9s var(--ease) .2s both; justify-self: center; }
.ph {
  position: relative; width: 300px; height: 716px; border-radius: 54px;
  background: linear-gradient(160deg, #4a5266 0%, #1b2030 35%, #0d1119 70%, #2a3040 100%);
  padding: 11px; --rx: 0deg; --ry: 0deg;
  transform: scale(var(--s, 1)) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .15s linear; transform-style: preserve-3d;
  box-shadow: 0 70px 130px -40px rgba(0,0,0,.95), 0 20px 40px -20px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.18), inset 0 0 0 3px #05070c;
}
/* botões laterais */
.ph::before, .ph::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(180deg, #3a4254, #12161f); }
.ph::before { left: -4px; top: 150px; height: 64px; box-shadow: 0 84px 0 0 #232937, 0 -46px 0 0 #232937; }
.ph::after { right: -4px; top: 190px; height: 92px; }
.ph-screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: linear-gradient(180deg, #0c1120 0%, #0a0e1a 100%); display: flex; flex-direction: column;
}
/* reflexo de vidro */
.ph-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: linear-gradient(112deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.02) 28%, transparent 46%); }
.ph-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 106px; height: 32px; border-radius: 20px; background: #04060b; z-index: 4; }
.ph-island::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 35% 35%, #2a3550, #05070c 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: 17px 30px 0; font-family: var(--font); font-size: .78rem; font-weight: 600; color: #f2f4fa; }
.ph-status .ic { display: inline-flex; gap: 5px; align-items: center; }
.ph-status .ic svg { width: 15px; height: 12px; }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 9px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.ph-head .bk { width: 18px; height: 18px; color: #86a4ff; flex: none; }
.ph-head .av { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #fff; font-size: .95rem; flex: none; }
.ph-head .av i { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: #35d0a6; border: 2px solid #0b101c; display: grid; place-items: center; }
.ph-head .av i svg { width: 8px; height: 8px; }
.ph-head .nm { font-size: .86rem; font-weight: 700; color: #f2f4fa; line-height: 1.2; }
.ph-head .vf { display: block; font-size: .68rem; color: #8f99bd; font-weight: 500; }
.ph-head .vf b { color: #35d0a6; font-weight: 600; }
.ph-head .more { margin-left: auto; width: 18px; height: 18px; color: #6b7597; }
.ph-thread { position: relative; flex: 1; min-height: 0; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; scroll-behavior: smooth; }
.ph-thread::-webkit-scrollbar { display: none; }
.ph-day { align-self: center; font-size: .62rem; font-weight: 600; color: #6b7597; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px 10px; margin-bottom: 2px; }
.msg { max-width: 92%; opacity: 0; transform: translateY(14px) scale(.98); }
.ph.play .msg { animation: msg-in .55s var(--ease) both; }
.ph.play .msg:nth-of-type(1) { animation-delay: .5s; } .ph.play .msg:nth-of-type(2) { animation-delay: 2.3s; }
.ph.play .msg:nth-of-type(3) { animation-delay: 4.6s; } .ph.play .msg:nth-of-type(4) { animation-delay: 6.6s; } .ph.play .msg:nth-of-type(5) { animation-delay: 8.6s; }
@keyframes msg-in { to { opacity: 1; transform: none; } }
.msg.is-dim { opacity: .22 !important; transition: opacity .2s; }
.tag { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px 2px; font-family: var(--mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.bub { position: relative; background: #1a2238; border-radius: 18px 18px 18px 6px; padding: 9px 12px 18px; font-size: .8rem; line-height: 1.45; color: #e8ecf8; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.bub b { font-weight: 700; color: #fff; }
.bub .code { display: inline-block; font-family: var(--mono); font-weight: 600; letter-spacing: .14em; color: #fff; background: rgba(255,255,255,.08); border-radius: 6px; padding: 1px 6px; }
.bub.wpp { background: #144a30; }
.bub.ai { background: linear-gradient(135deg, #2a2560, #1c2040); border: 1px solid rgba(154,123,255,.35); }
.tm { position: absolute; right: 10px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; font-size: .58rem; color: rgba(255,255,255,.55); }
.tm svg { width: 12px; height: 9px; color: #6f9bff; }
.wpp .tm svg { color: #53bdeb; }
.dlr { display: block; margin: 4px 0 0 4px; font-family: var(--mono); font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: #6b7597; }
.dlr b { color: #35d0a6; font-weight: 600; }
/* RCS rich card */
.rcs { background: #141a2e; border: 1px solid rgba(255,255,255,.08); border-radius: 18px 18px 18px 6px; overflow: hidden; }
.rcs .img { position: relative; height: 92px; background: #1b2140 url("../img/tiger.webp") center 30%/cover no-repeat; }
.rcs .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,0) 45%, rgba(10,14,26,.7) 100%); }
.rcs .img span { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-family: var(--mono); font-size: .56rem; letter-spacing: .12em; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); padding: 3px 7px; border-radius: 6px; }
.rcs .tx { padding: 10px 12px 9px; font-size: .78rem; line-height: 1.42; color: #e8ecf8; }
.rcs .tx b { display: block; font-size: .86rem; margin-bottom: 2px; color: #fff; }
.rcs .bt { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.08); }
.rcs .bt span { text-align: center; padding: 9px 6px; font-size: .74rem; font-weight: 600; color: #86a4ff; }
.rcs .bt span + span { border-left: 1px solid rgba(255,255,255,.08); }
.sug { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.sug span { font-size: .68rem; font-weight: 600; color: #cfe0ff; border: 1px solid rgba(134,164,255,.4); border-radius: 999px; padding: 4px 10px; }
/* Torpedo de voz */
.voz { position: relative; display: flex; align-items: center; gap: 10px; background: #1a2238; border-radius: 18px 18px 18px 6px; padding: 10px 12px 16px; }
.voz .pl { width: 32px; height: 32px; border-radius: 50%; background: var(--ch-voz); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
.voz .pl svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.voz .wv { flex: 1; display: flex; align-items: center; gap: 2.5px; height: 24px; }
.voz .wv i { width: 3px; border-radius: 2px; background: #6f9bff; height: 30%; transform-origin: center; }
.ph.play .voz .wv i { animation: wv 1.1s ease-in-out infinite alternate; }
.voz .wv i:nth-child(2n) { height: 70%; animation-delay: -.3s; } .voz .wv i:nth-child(3n) { height: 50%; animation-delay: -.6s; } .voz .wv i:nth-child(5n) { height: 92%; animation-delay: -.9s; }
@keyframes wv { from { transform: scaleY(.5); } to { transform: scaleY(1.1); } }
.voz .dur { font-family: var(--mono); font-size: .68rem; color: #aab4d6; }
.ph-input { display: flex; align-items: center; gap: 8px; margin: 8px 12px 0; height: 40px; border-radius: 999px; background: #161d30; border: 1px solid rgba(255,255,255,.08); padding: 0 6px 0 12px; font-size: .78rem; color: #6b7597; }
.ph-input svg { width: 18px; height: 18px; color: #6b7597; flex: none; }
.ph-input .snd { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.ph-input .snd svg { width: 14px; height: 14px; color: #fff; }
.ph-home { height: 22px; flex: none; position: relative; }
.ph-home::after { content: ""; position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 118px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); }

.lg-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; animation: lg-in .8s var(--ease) .4s both; }
.lg-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: #8d97bb; }
.lg-trust svg { width: 14px; height: 14px; color: #aab4d6; }
.lg-trust .copy { margin-left: auto; color: #5c6690; }

/* ---------- Responsivo ---------- */
@media (max-width: 1240px) { .lg { grid-template-columns: clamp(480px, 41vw, 540px) minmax(0, 1fr); } .lg-body { grid-template-columns: minmax(0, 1fr) 240px; } .lg-ch .d { display: none; } .ph { --s: .8; margin: -72px -30px; } .lg-copy h2 { font-size: 1.9rem; } }
@media (min-width: 1700px) { .lg-ch .j { display: block; } }
@media (max-width: 1080px) { .lg-body { grid-template-columns: minmax(0, 1fr); } .lg-phone-wrap { display: none; } .lg-rings { display: none; } .lg-ch .d { display: block; } }
@media (max-width: 900px) {
  /* Mobile: só topo (logo) + caixa de login. Painel da marca some por completo. */
  .lg { display: block; }
  .lg-brand { display: none; }
  body { background: var(--bg); }
  .lg-form-wrap {
    position: relative; min-height: 100vh; min-height: 100dvh; border-right: 0;
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  }
  .lg-form-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 320px; pointer-events: none; background: radial-gradient(70% 60% at 50% 0%, var(--ring), transparent 70%); opacity: .7; }
  .lg-form-head { position: relative; justify-content: center; min-height: 40px; padding: 8px 0 0; }
  .lg-logo { height: 34px; }
  .lg-form {
    position: relative; max-width: 440px; margin: auto; padding: 28px 22px 24px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 24px 60px -24px rgba(16,24,40,.35);
  }
  [data-theme="dark"] .lg-form { box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 70px -30px rgba(0,0,0,.9); }
  .lg-h1 { font-size: 1.6rem; }
  .lg-p { margin-bottom: 22px; }
  .lg-input { height: 52px; font-size: 16px; border-radius: 14px; }
  .lg-btn { height: 54px; border-radius: 14px; font-size: 1rem; }
  .lg-signup { margin-top: 20px; background: var(--surface-2); }
  .lg-foot { position: relative; max-width: 440px; margin: 20px auto 0; width: 100%; justify-content: center; gap: 10px 20px; }
}
@media (max-width: 900px) and (min-height: 760px) { .lg-form-head { padding-top: 16px; } }
@media (max-width: 380px) { .lg-form-wrap { padding-left: 14px; padding-right: 14px; } .lg-form { padding: 24px 18px 20px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .msg { opacity: 1; transform: none; }
  .ph { transform: none !important; }
}

/* ============================================================
   CADASTRO (mesma estrutura do login)
   ============================================================ */
.d-none { display: none !important; }
.lg-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .74rem; font-weight: 600; color: var(--muted-2); }
.lg-steps span { display: inline-flex; align-items: center; gap: 7px; }
.lg-steps i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-style: normal; font-weight: 700; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.lg-steps .sep { flex: 1; height: 1px; background: var(--border); }
.lg-steps span.on { color: var(--text); }
.lg-steps span.on i { background: var(--accent); color: #fff; border-color: var(--accent); }
.lg-form:has(#suStep2:not(.d-none)) .lg-steps .s1 { color: var(--muted); }
.lg-form:has(#suStep2:not(.d-none)) .lg-steps .s1 i { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-bd); }
.lg-form:has(#suStep2:not(.d-none)) .lg-steps .s2 { color: var(--text); }
.lg-form:has(#suStep2:not(.d-none)) .lg-steps .s2 i { background: var(--accent); color: #fff; border-color: var(--accent); }
.lg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-input.plain { padding-left: 14px; }
.lg-select { padding-right: 38px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b91a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
.lg-input.code { text-align: center; font-family: var(--mono); font-size: 1.25rem; letter-spacing: .32em; padding: 0 14px; height: 54px; }
.lg-input.code::placeholder { letter-spacing: .32em; color: var(--border-strong); }
.lg-ok { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: .78rem; color: var(--ok); font-weight: 500; }
.lg-ok svg { width: 14px; height: 14px; }
.lg-label .mask { font-weight: 400; color: var(--muted-2); font-size: .78rem; }
.lg-links { display: flex; justify-content: center; gap: 18px; margin-top: 14px; }
.lg-linkbtn { border: 0; background: transparent; padding: 6px 4px; font-size: .82rem; font-weight: 500; color: var(--accent); cursor: pointer; border-radius: 6px; }
.lg-linkbtn.muted { color: var(--muted); }
.lg-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg-linkbtn:disabled { opacity: .5; cursor: default; text-decoration: none; }
.lg-btn:disabled { pointer-events: none; opacity: .75; }
.lg-legal { margin: 14px 0 0; font-size: .74rem; color: var(--muted-2); line-height: 1.45; }
@media (max-width: 900px) { .lg-row2 { grid-template-columns: 1fr; gap: 0; } .lg-row2 > .lg-field { margin-bottom: 16px; } }
@media (max-width: 900px) { .lg-signup-page .lg-form { padding-top: 24px; } }
/* Selo do reCAPTCHA oculto (permitido pelo Google desde que o texto de disclosure esteja na página — está em .lg-legal). */
.grecaptcha-badge { visibility: hidden; }
/* Cadastro: formulário mais alto que o login — compacta o ritmo vertical no desktop. */
@media (min-width: 901px) {
  .lg-signup-page .lg-form { padding: 22px 0; }
  .lg-signup-page .lg-p { margin-bottom: 18px; }
  .lg-signup-page .lg-field { margin-bottom: 13px; }
  .lg-signup-page .lg-steps { margin-bottom: 14px; }
  .lg-signup-page .lg-legal { margin-top: 12px; font-size: .72rem; }
  .lg-signup-page .lg-signup { margin-top: 18px; }
}
/* ---------- Cadastro no mobile: botão "Continuar" na primeira tela ---------- */
@media (max-width: 900px) {
  .lg-signup-page .lg-form-wrap { padding-top: calc(14px + env(safe-area-inset-top)); }
  .lg-signup-page .lg-form-head { min-height: 32px; padding-top: 4px; }
  .lg-signup-page .lg-logo { height: 28px; }
  .lg-signup-page .lg-form { margin: 14px auto auto; padding: 18px 18px 16px; border-radius: 18px; }
  .lg-signup-page .lg-steps { margin-bottom: 10px; font-size: .7rem; }
  .lg-signup-page .lg-steps i { width: 18px; height: 18px; font-size: .62rem; }
  .lg-signup-page .lg-h1 { font-size: 1.35rem; margin-bottom: 10px; }
  .lg-signup-page #suStep1 .lg-p { display: none; }           /* subtítulo só no desktop */
  .lg-signup-page .lg-label { font-size: .76rem; margin-bottom: 4px; }
  .lg-signup-page .lg-field { margin-bottom: 9px; }
  .lg-signup-page .lg-input { height: 44px; border-radius: 11px; font-size: 16px; padding-left: 38px; }
  .lg-signup-page .lg-input.plain { padding-left: 12px; }
  .lg-signup-page .lg-input.code { height: 50px; }
  .lg-signup-page .lg-ctrl > svg.lead { left: 11px; width: 16px; height: 16px; }
  .lg-signup-page .lg-eye { width: 34px; height: 34px; right: 5px; }
  .lg-signup-page .lg-row2 { grid-template-columns: 1fr 1fr; gap: 10px; }  /* pares lado a lado */
  .lg-signup-page .lg-row2 > .lg-field { margin-bottom: 9px; min-width: 0; }
  .lg-signup-page .lg-row2 .lg-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .lg-signup-page .lg-btn { height: 48px; margin-top: 4px; border-radius: 11px; font-size: .95rem; }
  .lg-signup-page .lg-legal { margin-top: 10px; font-size: .68rem; line-height: 1.4; }
  .lg-signup-page .lg-signup { margin-top: 14px; padding: 10px 12px; font-size: .82rem; }
  .lg-signup-page .lg-foot { margin-top: 14px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .lg-signup-page .lg-form-head { min-height: 26px; padding-top: 0; } /* telas baixas: logo menor, sem indicador de etapas */
  .lg-signup-page .lg-logo { height: 24px; }
  .lg-signup-page .lg-form { margin-top: 10px; }
  .lg-signup-page .lg-steps { display: none; }
}
