/* =========================================================
   Pilofy — Cadastro (mesma linguagem do login da extensão:
   cyber-glass chanfrado, feixe neon na borda, sanfona, tilt)
   Card espelhado (chanfros sup-dir / inf-esq) sobre a sede vista de baixo.
   ========================================================= */
:root {
  /* ===== Paleta (triplas RGB). Valores base; o tema definitivo (Branco, Preto & Laranja) fica no fim do arquivo ===== */
  --a1: 56 189 248;     /* destaque principal */
  --a2: 103 232 249;    /* destaque claro */
  --a3: 14 165 233;     /* destaque profundo */
  --a4: 224 242 254;    /* brilho quase branco */
  --on: 4 17 31;        /* texto sobre o botão */
  --bg: 4 7 12;         /* fundo */
  --sky-1: #071526; --sky-2: #050b14;
  --g1: 13 20 32; --g2: 9 14 23; --g3: 12 22 35;   /* vidro do card */
  --f1: 16 24 38; --f2: 22 34 52;                    /* campos */
  --face-l1: #0b1a2d; --face-l2: #060d18; --face-r1: #11263f; --face-r2: #081322; /* prédio */
  --logo-f: hue-rotate(0deg);                        /* recolore a logo */

  --bg-0: rgb(var(--bg));
  --glass: linear-gradient(195deg, rgb(var(--g1) / 0.93) 0%, rgb(var(--g2) / 0.95) 60%, rgb(var(--g3) / 0.93) 100%);
  --glass-blur: saturate(170%) blur(22px);
  --hairline: rgba(255, 255, 255, 0.09);
  --field-bg: rgb(var(--f1) / 0.72);
  --field-bg-focus: rgb(var(--f2) / 0.9);
  --cyan-1: rgb(var(--a1));
  --cyan-2: rgb(var(--a2));
  --cyan-3: rgb(var(--a3));
  --cta-grad: linear-gradient(90deg, rgb(var(--a1)) 0%, rgb(var(--a2)) 50%, rgb(var(--a1)) 100%);
  --ring: 0 0 0 3px rgb(var(--a1) / 0.22), 0 0 22px -4px rgb(var(--a1) / 0.45);
  --text-1: #f8fafc;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --danger: #f87171;
  --ok: #4ade80;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-0); }
body {
  min-height: 100dvh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-1);
  background: var(--bg-0);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan-1); outline-offset: 2px; }
a { color: inherit; }

/* =========================================================
   Fundo: céu + aurora + prédio (SVG) + vinheta + spotlight
   ========================================================= */
.cx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cx-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 62% 0%, rgb(var(--a3) / 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 10%, rgb(var(--a1) / 0.1), transparent 70%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, rgb(var(--bg)) 100%);
}

.cx-tower {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.cx-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 62% at 50% 50%, rgb(var(--bg) / 0.6), transparent 78%),
    linear-gradient(90deg, rgb(var(--bg) / 0.55) 0%, transparent 30%),
    linear-gradient(0deg, rgb(var(--bg) / 0.75) 0%, transparent 30%);
}

/* ---------- Elementos do prédio (gerados em cadastro-fx.js) ---------- */
.tw-face-l { fill: url(#twFaceL); }
.tw-face-r { fill: url(#twFaceR); }
.tw-floor { stroke: rgb(var(--a1) / 0.16); stroke-width: 1; fill: none; }
.tw-mull { stroke: rgb(var(--a1) / 0.12); stroke-width: 1; fill: none; }
.tw-edge { stroke: rgb(var(--a2) / 0.8); stroke-width: 2; fill: none; filter: url(#twGlow); }
.tw-roof { stroke: rgb(var(--a2) / 0.9); stroke-width: 2.4; fill: none; filter: url(#twGlow); }
.tw-win { fill: rgb(var(--a1) / 0.0); }
.tw-win.lit { fill: rgb(var(--a1) / 0.2); }
.tw-win.warm { fill: rgb(var(--a2) / 0.3); }
.tw-beacon { fill: rgb(var(--a4)); filter: url(#twGlow); }
@keyframes twBeacon { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes twBeacon { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* =========================================================
   Marca + shell
   ========================================================= */
.cx-brand {
  position: fixed; top: 22px; left: 28px; z-index: 5;
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: #fff;
}
.cx-brand span { color: var(--cyan-1); }

.cx-shell {
  position: relative; z-index: 2; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

/* =========================================================
   Card chanfrado espelhado
   ========================================================= */
.cx-frame {
  position: relative; width: min(540px, 100%);
  animation: cxCardIn 0.8s var(--ease-out) 0.15s backwards;
  filter: drop-shadow(0 28px 65px rgba(0, 0, 0, 0.78)) drop-shadow(-18px 0 42px rgb(var(--a3) / 0.14));
}
@keyframes cxCardIn { from { opacity: 0; transform: perspective(1200px) translateY(36px) rotateX(9deg) scale(0.97); filter: blur(8px); } to { opacity: 1; transform: none; } }

.cx-shard, .cx-slice { position: absolute; pointer-events: none; }
.cx-shard { width: 46px; height: 46px; z-index: 4; transition: transform 0.55s var(--ease-spring) 0s; }
.cx-slice { width: 64px; height: 64px; z-index: 3; transition: transform 0.55s var(--ease-spring) 0.07s; }
.cx-shard svg, .cx-slice svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cx-shard path, .cx-slice path { fill: rgb(var(--g1) / 0.85); stroke: rgb(var(--a1) / 0.5); stroke-width: 1.2; }
.h-tr, .s-tr { top: 0; right: 0; }
.h-bl, .s-bl { bottom: 0; left: 0; }
.cx-frame:hover .cx-slice { transition-delay: 0s; }
.cx-frame:hover .cx-shard { transition-delay: 0.07s; }
.cx-frame:hover .s-tr { transform: translate(3px, -3px); }
.cx-frame:hover .s-bl { transform: translate(-3px, 3px); }
.cx-frame:hover .h-tr { transform: translate(6px, -6px) scale(1.02); }
.cx-frame:hover .h-bl { transform: translate(-6px, 6px) scale(1.02); }
.cx-frame:hover .cx-shard path, .cx-frame:hover .cx-slice path { stroke-dasharray: 100; animation: cxDraw 0.7s var(--ease-out) both; }
@keyframes cxDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.cx-card {
  position: relative; width: 100%;
  padding: 22px 30px 18px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 26px; overflow: hidden;
  /* clip-path real é aplicado pelo cadastro-fx.js (acompanha o tamanho) */
  clip-path: polygon(26px 0, calc(100% - 67px) 0, 100% 67px, 100% calc(100% - 26px), calc(100% - 26px) 100%, 67px 100%, 0 calc(100% - 67px), 0 26px);
}
.cx-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 18%; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--a1) / 0.45), transparent);
}
.cx-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(440px circle at var(--cx, 50%) var(--cy, 0%), rgb(var(--a2) / 0.12), transparent 50%);
  transition: opacity 0.35s var(--ease-out);
}
.cx-card:hover::after { opacity: 1; }
.cx-border { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.cx-content { position: relative; z-index: 3; }

/* Entrada em cascata do conteúdo (de baixo + da direita, diferente do login) */
.cx-content > * { animation: cxRise 0.6s var(--ease-out) backwards; }
.cx-content > :nth-child(1) { animation-delay: 0.3s; }
.cx-content > :nth-child(2) { animation-delay: 0.38s; }
.cx-content > :nth-child(3) { animation-delay: 0.46s; }
.cx-content > :nth-child(4) { animation-delay: 0.54s; }
.cx-content > :nth-child(5) { animation-delay: 0.6s; }
.cx-content > :nth-child(6) { animation-delay: 0.62s; }
.cx-content > :nth-child(n+7) { animation-delay: 0.7s; }
@keyframes cxRise { from { opacity: 0; transform: translate(14px, 10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Cabeçalho centralizado: só a logo + título + subtítulo ---------- */
.cx-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 14px; }
.cx-logo {
  position: relative; display: grid; place-items: center; margin-bottom: 8px;
  animation: cxLogoIn 0.9s var(--ease-spring) 0.2s backwards;
}
.cx-logo img {
  position: relative; z-index: 1; width: 64px; height: auto; display: block; user-select: none;
  filter: var(--logo-f) drop-shadow(0 3px 12px rgb(var(--a1) / 0.4));
  animation: cxLogoFloat 5s ease-in-out 1.1s infinite;
  transition: filter 0.3s var(--ease-out);
}
.cx-frame:hover .cx-logo img { filter: var(--logo-f) drop-shadow(0 4px 18px rgb(var(--a2) / 0.6)); }
/* Halo de energia pulsando atrás da logo */
.cx-logo-halo {
  position: absolute; width: 74px; height: 50px; border-radius: 50%;
  background: radial-gradient(ellipse, rgb(var(--a1) / 0.35), rgb(var(--a1) / 0) 70%);
  filter: blur(8px); animation: cxHalo 3.2s ease-in-out 1s infinite;
}
@keyframes cxLogoIn { from { opacity: 0; transform: scale(0.4) rotate(-20deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cxLogoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cxHalo { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes cxSpin { to { transform: rotate(360deg); } }
#cx-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
#cx-title .w { display: inline-block; animation: cxWord 0.7s var(--ease-out) backwards; }
#cx-title .w1 { animation-delay: 0.4s; }
#cx-title .w2 { animation-delay: 0.55s; }
#cx-title .cyan {
  background: linear-gradient(90deg, rgb(var(--a1)), rgb(var(--a2)), rgb(var(--a4)), rgb(var(--a2)), rgb(var(--a1))); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cxWord 0.7s var(--ease-out) 0.55s backwards, cxShimmer 5s linear 1.4s infinite;
}
@keyframes cxWord { from { opacity: 0; transform: translateY(12px); filter: blur(6px); letter-spacing: 0.08em; } to { opacity: 1; transform: none; filter: none; } }
@keyframes cxShimmer { from { background-position: 0% 0; } to { background-position: -166.667% 0; } }
.cx-sub { font-size: 12.5px; line-height: 1.4; color: var(--text-2); margin-top: 4px; }

/* ---------- Plano ---------- */
.cx-plan {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; margin-bottom: 12px; border-radius: 12px; overflow: hidden; min-height: 44px;
  background: linear-gradient(120deg, rgb(var(--a3) / 0.12), rgb(var(--a3) / 0.03));
  border: 1px solid rgb(var(--a1) / 0.25);
}
.cx-plan::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--a2) / 0.12), transparent);
  transform: translateX(-120%) skewX(-20deg); animation: cxSheen 6s var(--ease-out) 2s infinite;
}
.cx-plan-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.cx-plan-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.cx-plan-line strong { font-size: 15px; font-weight: 800; }
.cx-plan-line span { font-size: 12.5px; color: var(--cyan-2); font-weight: 600; }
.cx-link {
  font-size: 11.5px; font-weight: 600; color: var(--cyan-1); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.25s var(--ease-out), color 0.2s;
}
.cx-link:hover { color: var(--cyan-2); background-size: 100% 1px; }
.cx-switch { position: relative; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hairline); }
.cx-switch[hidden] { display: none; }
.cx-switch button { position: relative; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--text-2); transition: color 0.2s, background 0.25s var(--ease-out), box-shadow 0.25s; }
.cx-switch button.active { color: rgb(var(--on)); background: var(--cta-grad); box-shadow: 0 0 14px -2px rgb(var(--a1) / 0.6); }

/* ---------- Barra de verificação (5 segmentos) ---------- */
.cx-progress { margin-bottom: 12px; }
.cx-progress-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
#cx-progress-count { color: var(--cyan-1); font-variant-numeric: tabular-nums; }
.cx-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.cx-segs i {
  position: relative; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.07);
  transform: skewX(-20deg);
}
.cx-segs i::before {
  content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, rgb(var(--a3)), rgb(var(--a2))); box-shadow: 0 0 10px rgb(var(--a1));
  transition: transform 0.5s var(--ease-out);
}
.cx-segs i.on::before { transform: scaleX(1); }
.cx-segs i.on::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: cxSegRun 2.4s var(--ease-io) infinite;
}
.cx-segs.all i::before { background: linear-gradient(90deg, #22c55e, #4ade80); box-shadow: 0 0 10px #4ade80; }
@keyframes cxSegRun { from { left: -40%; } to { left: 110%; } }

/* ---------- Mensagens ---------- */
.cx-msg { display: none; margin-bottom: 12px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.45; }
.cx-msg.show { display: block; animation: cxRise 0.25s var(--ease-out) both; }
.cx-msg.error { color: #fecaca; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.cx-msg.info { color: rgb(var(--a4)); background: rgb(var(--a1) / 0.1); border: 1px solid rgb(var(--a1) / 0.3); }

/* ---------- Formulário (2 colunas) ---------- */
#signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
#signup-form .full { grid-column: 1 / -1; }
.cx-field label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: #cbd5e1; transition: color 0.2s; }
.cx-input { position: relative; }
.cx-input > svg {
  position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  fill: none; stroke: #64748b; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  transition: stroke 0.2s, transform 0.3s var(--ease-spring);
}
.cx-input input {
  width: 100%; height: 40px; padding: 0 14px 0 38px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--field-bg); color: var(--text-1);
  font: 400 13.5px/1.2 inherit; outline: none;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.cx-input.has-toggle input { padding-right: 40px; }
.cx-input input::placeholder { color: #64748b; }
.cx-input input:hover { border-color: rgba(255, 255, 255, 0.18); background: rgb(var(--f2) / 0.82); }
.cx-input input:focus { border-color: rgb(var(--a1) / 0.65); background: var(--field-bg-focus); box-shadow: var(--ring); }
.cx-input:focus-within > svg { stroke: var(--cyan-1); transform: translateY(-50%) scale(1.08); }
.cx-input input:-webkit-autofill { -webkit-text-fill-color: var(--text-1); transition: background-color 9999s; caret-color: var(--text-1); }
/* Campo verificado: ícone verde + traço de luz na base */
.cx-field.valid .cx-input > svg { stroke: var(--ok); }
.cx-field.valid .cx-input::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.8), transparent);
  animation: cxValid 0.6s var(--ease-out) both;
}
@keyframes cxValid { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.cx-input input[aria-invalid="true"] { border-color: var(--danger); }
.cx-field.shake .cx-input { animation: cxShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes cxShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.cx-hint { display: flex; align-items: center; gap: 6px; margin-top: -3px; font-size: 11.5px; color: var(--text-3); }
.cx-hint svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: var(--cyan-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cx-eye { position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; transform: translateY(-50%); border-radius: 7px; display: grid; place-items: center; color: #64748b; transition: background 0.2s, color 0.2s; }
.cx-eye:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-1); }
.cx-eye[aria-pressed="true"] { color: var(--cyan-1); }
.cx-eye svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.15s, transform 0.15s; }
.cx-eye .off, .cx-eye[aria-pressed="true"] .on { opacity: 0; transform: scale(0.6); }
.cx-eye[aria-pressed="true"] .off { opacity: 1; transform: none; }

.cx-rules { list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px 10px; margin-top: 7px; }
.cx-rules li { position: relative; padding-left: 16px; font-size: 11.5px; color: var(--text-3); transition: color 0.25s var(--ease-out); }
.cx-rules li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; border: 1.5px solid #475569; transition: all 0.3s var(--ease-spring);
}
.cx-rules li.ok { color: #86efac; }
.cx-rules li.ok::before { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 6px rgba(74, 222, 128, 0.7); transform: scale(1.15); }

.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Termos ---------- */
.cx-check { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-2); cursor: pointer; user-select: none; }
.cx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx-check .box {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; border-radius: 4px; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cx-check .box svg { width: 11px; height: 11px; fill: none; stroke: rgb(var(--on)); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 0.22s var(--ease-out); }
.cx-check:hover .box { border-color: var(--cyan-1); }
.cx-check input:checked + .box { background: var(--cyan-1); border-color: var(--cyan-1); box-shadow: 0 0 12px rgb(var(--a1) / 0.45); animation: cxPop 0.3s var(--ease-spring); }
.cx-check input:checked + .box svg { stroke-dashoffset: 0; }
.cx-check input:focus-visible + .box { box-shadow: var(--ring); }
@keyframes cxPop { 50% { transform: scale(1.18); } }

/* ---------- Botão principal ---------- */
.cx-btn {
  position: relative; overflow: hidden; height: 44px; margin-top: 2px; border-radius: 10px;
  color: rgb(var(--on)); font-size: 14.5px; font-weight: 700; letter-spacing: 0.01em;
  background: var(--cta-grad); background-size: 200% 100%;
  box-shadow: 0 8px 26px -6px rgb(var(--a1) / 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.28s var(--ease-spring), background-position 0.5s var(--ease-out), box-shadow 0.28s var(--ease-out), opacity 0.2s;
}
.cx-btn::after {
  content: ""; position: absolute; top: 0; left: 0; width: 38%; height: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-160%) skewX(-20deg); animation: cxSheen 5.5s var(--ease-out) 1.5s infinite;
}
@keyframes cxSheen { 0% { transform: translateX(-160%) skewX(-20deg); } 35%, 100% { transform: translateX(380%) skewX(-20deg); } }
.cx-btn:hover:not(:disabled) { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 12px 32px -6px rgb(var(--a1) / 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.cx-btn:active:not(:disabled) { transform: scale(0.98); transition-duration: 0.1s; }
.cx-btn:disabled { opacity: 0.7; cursor: wait; }
.cx-btn-label { display: inline-flex; align-items: center; gap: 7px; transition: opacity 0.15s; }
.cx-btn-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-spring); }
.cx-btn:hover:not(:disabled) .cx-btn-label svg { transform: translateX(3px); }
.cx-spinner { display: none; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgb(var(--on) / 0.25); border-top-color: rgb(var(--on)); animation: cxSpin 0.7s linear infinite; }
.cx-btn.is-loading .cx-btn-label { opacity: 0; }
.cx-btn.is-loading .cx-spinner { display: block; }

.cx-secure { margin-top: 10px; text-align: center; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.cx-foot { white-space: nowrap; }

/* =========================================================
   Responsivo
   ========================================================= */
/* Computador: tudo em uma tela (o card se ajusta à altura em cadastro-fx.js) */
@media (min-width: 561px) { html, body { height: 100%; overflow: hidden; } }
@media (max-width: 900px) {
  .cx-shell { padding: 64px 16px 24px; }
  .cx-vignette { background: rgb(var(--bg) / 0.55); }
}
@media (max-width: 560px) {
  .cx-card { padding: 24px 18px 20px; }
  #signup-form { grid-template-columns: 1fr; }
  #cx-title { font-size: 23px; }
  .cx-rules { grid-template-columns: 1fr 1fr; }
  .cx-foot { white-space: normal; }
  .cx-brand { top: 18px; left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   TEMA DEFINITIVO — Branco, Preto & Laranja
   Fundo e prédio PRETOS · card BRANCO · destaques LARANJA
   ========================================================= */
:root {
  --a1: 249 115 22; --a2: 251 146 60; --a3: 234 88 12; --a4: 255 237 213; --on: 255 255 255; --bg: 8 8 9;
  --sky-1: #1a120b; --sky-2: #0c0a09; --g1: 255 255 255; --g2: 255 255 255; --g3: 255 249 243; --f1: 255 255 255; --f2: 255 247 238;
  --face-l1: #1c1916; --face-l2: #0b0a09; --face-r1: #27221d; --face-r2: #121110; --logo-f: saturate(1);
  --text-1: #0f172a; --text-2: #475569; --text-3: #64748b;
  --hairline: rgba(15, 23, 42, 0.12);
  --cta-grad: linear-gradient(90deg, #ea580c 0%, #f97316 50%, #ea580c 100%);
  --glass-blur: saturate(140%) blur(18px);
}
.cx-brand { color: #fff; }
.cx-frame { filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(249, 115, 22, 0.14)); }
.cx-card { background: linear-gradient(195deg, #ffffff 0%, #ffffff 60%, #fffaf5 100%); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12); }
#cx-title .cyan { background-image: linear-gradient(90deg, #ea580c, #f97316, #fb923c, #f97316, #ea580c); }
.cx-field label { color: #334155; }
.cx-input > svg { stroke: #94a3b8; }
.cx-input input::placeholder { color: #94a3b8; }
.cx-input input:hover { border-color: rgba(15, 23, 42, 0.22); }
.cx-input input:focus { border-color: rgba(249, 115, 22, 0.7); }
.cx-eye { color: #94a3b8; }
.cx-eye:hover { background: rgba(15, 23, 42, 0.06); color: #0f172a; }
.cx-segs i { background: rgba(15, 23, 42, 0.08); }
.cx-segs i::before { box-shadow: 0 0 8px rgba(249, 115, 22, 0.5); }
.cx-rules li::before { border-color: #cbd5e1; }
.cx-rules li.ok { color: #16a34a; }
.cx-check .box { border-color: rgba(15, 23, 42, 0.28); background: #fff; }
.cx-msg.error { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.cx-msg.info { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.cx-shard path, .cx-slice path { fill: rgba(255, 255, 255, 0.92); stroke: rgba(249, 115, 22, 0.55); }
.tw-floor { stroke: rgba(249, 115, 22, 0.13); }
.tw-mull { stroke: rgba(249, 115, 22, 0.09); }
.tw-win.lit { fill: rgba(249, 115, 22, 0.32); }
.tw-win.warm { fill: rgba(251, 146, 60, 0.35); }
.cx-btn { box-shadow: 0 10px 26px -8px rgba(234, 88, 12, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cx-btn:hover:not(:disabled) { box-shadow: 0 14px 32px -8px rgba(234, 88, 12, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
/* Pontas da sanfona: ponta branca, faixa laranja (o vão preto vira listra proposital) */
.cx-shard path { fill: #ffffff; stroke: rgba(249, 115, 22, 0.45); stroke-width: 1.2; }
.cx-slice path { fill: #f97316; stroke: none; }
.cx-frame:hover .cx-slice path { animation: none; }
/* Logo já é laranja (assets/logo-laranja.png): halo suave */
.cx-logo img { width: 60px; filter: drop-shadow(0 4px 10px rgba(234, 88, 12, 0.28)); }
.cx-frame:hover .cx-logo img { filter: drop-shadow(0 6px 14px rgba(234, 88, 12, 0.4)); }
.cx-logo-halo { background: radial-gradient(ellipse, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0) 70%); }
/* Cadeado do rodapé (ícone no lugar do emoji) */
.cx-secure { display: block; }
.cx-lock { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; fill: none; stroke: #f97316; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Barra de verificação e foco no laranja */
.cx-segs i::before { background: linear-gradient(90deg, #ea580c, #fb923c); }
.cx-input input:focus { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16); }
.cx-check input:checked + .box { background: #f97316; border-color: #f97316; box-shadow: 0 0 10px rgba(249, 115, 22, 0.35); }
.cx-card::after { background: radial-gradient(440px circle at var(--cx, 50%) var(--cy, 0%), rgba(249, 115, 22, 0.06), transparent 50%); }
.cx-card::before { background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.5), transparent); }

/* =========================================================
   Páginas de status (obrigado.html, email-confirmado.html) — mesmo tema
   ========================================================= */
.cx-frame.narrow { width: min(480px, 100%); }
.cx-status {
  position: relative; width: 58px; height: 58px; margin: 6px auto 12px; display: grid; place-items: center;
  border-radius: 18px; color: #ea580c; background: #fff7ed; border: 1px solid #fed7aa;
  box-shadow: 0 8px 22px -8px rgba(234, 88, 12, 0.45);
  animation: cxLogoIn 0.9s var(--ease-spring) 0.25s backwards;
}
.cx-status svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-status::after {
  content: ""; position: absolute; inset: -5px; border-radius: 22px; border: 1.5px solid rgba(249, 115, 22, 0.35);
  animation: cxPulseRing 2.4s var(--ease-out) 1.2s infinite;
}
@keyframes cxPulseRing { from { transform: scale(0.92); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.cx-steps { list-style: none; display: grid; gap: 10px; margin: 16px 0 18px; text-align: left; }
.cx-steps li {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; color: #334155; background: #fafafa; border: 1px solid rgba(15, 23, 42, 0.08);
}
.cx-steps li b {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ea580c, #fb923c);
  box-shadow: 0 4px 10px -3px rgba(234, 88, 12, 0.6);
}
.cx-steps strong { color: #0f172a; }
.cx-steps a { color: #ea580c; font-weight: 600; }
a.cx-btn { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.cx-btn.ghost { margin-top: 10px; color: #0f172a; background: #fff; border: 1px solid rgba(15, 23, 42, 0.14); box-shadow: none; }
.cx-btn.ghost::after { display: none; }
.cx-btn.ghost:hover:not(:disabled) { border-color: rgba(249, 115, 22, 0.6); color: #ea580c; box-shadow: none; }
.cx-btn.test { margin-bottom: 4px; background: #0f172a; color: #fff; }

/* =========================================================
   TEMA ALTERNATIVO — Verde-água & Preto
   Ativo quando a página tem <html data-theme="agua">.
   (Sem o atributo, vale o Branco, Preto & Laranja acima.)
   Fundo, prédio e card PRETOS · destaques VERDE-ÁGUA
   ========================================================= */
html[data-theme="agua"] {
  --a1: 20 184 166; --a2: 45 212 191; --a3: 13 148 136; --a4: 204 251 241; --on: 4 47 46; --bg: 5 6 6;
  --sky-1: #08201d; --sky-2: #060a09; --g1: 13 17 16; --g2: 8 10 10; --g3: 11 18 17; --f1: 17 22 21; --f2: 21 30 29;
  --face-l1: #131817; --face-l2: #070908; --face-r1: #1b2120; --face-r2: #0c0f0e;
  --text-1: #f1f5f9; --text-2: #9ca3af; --text-3: #6b7280;
  --hairline: rgba(255, 255, 255, 0.09);
  --cta-grad: linear-gradient(90deg, #14b8a6 0%, #2dd4bf 50%, #14b8a6 100%);
  --glass-blur: saturate(160%) blur(20px);
}
html[data-theme="agua"] .cx-frame { filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 44px rgba(20, 184, 166, 0.16)); }
html[data-theme="agua"] .cx-card { background: linear-gradient(195deg, #0e1312 0%, #090b0b 60%, #0b1312 100%); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.14); }
html[data-theme="agua"] .cx-card::before { background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.55), transparent); }
html[data-theme="agua"] .cx-card::after { background: radial-gradient(440px circle at var(--cx, 50%) var(--cy, 0%), rgba(45, 212, 191, 0.08), transparent 50%); }
html[data-theme="agua"] #cx-title .cyan { background-image: linear-gradient(90deg, #14b8a6, #2dd4bf, #99f6e4, #2dd4bf, #14b8a6); }
html[data-theme="agua"] .cx-logo img { content: url("assets/logo-agua.png"); filter: drop-shadow(0 4px 12px rgba(20, 184, 166, 0.35)); }
html[data-theme="agua"] .cx-frame:hover .cx-logo img { filter: drop-shadow(0 6px 16px rgba(45, 212, 191, 0.5)); }
html[data-theme="agua"] .cx-logo-halo { background: radial-gradient(ellipse, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 70%); }
/* Campos */
html[data-theme="agua"] .cx-field label { color: #d1d5db; }
html[data-theme="agua"] .cx-input > svg { stroke: #6b7280; }
html[data-theme="agua"] .cx-input input::placeholder { color: #6b7280; }
html[data-theme="agua"] .cx-input input:hover { border-color: rgba(255, 255, 255, 0.18); }
html[data-theme="agua"] .cx-input input:focus { border-color: rgba(45, 212, 191, 0.7); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16), 0 0 20px -6px rgba(45, 212, 191, 0.5); }
html[data-theme="agua"] .cx-eye { color: #6b7280; }
html[data-theme="agua"] .cx-eye:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
html[data-theme="agua"] .cx-hint svg, html[data-theme="agua"] .cx-lock { stroke: #2dd4bf; }
/* Verificação, regras, termos */
html[data-theme="agua"] .cx-segs i { background: rgba(255, 255, 255, 0.08); }
html[data-theme="agua"] .cx-segs i::before { background: linear-gradient(90deg, #0d9488, #5eead4); box-shadow: 0 0 10px rgba(45, 212, 191, 0.55); }
html[data-theme="agua"] .cx-rules li::before { border-color: #4b5563; }
html[data-theme="agua"] .cx-rules li.ok { color: #5eead4; }
html[data-theme="agua"] .cx-check .box { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.03); }
html[data-theme="agua"] .cx-check input:checked + .box { background: #2dd4bf; border-color: #2dd4bf; box-shadow: 0 0 12px rgba(45, 212, 191, 0.45); }
html[data-theme="agua"] .cx-msg.error { color: #fecaca; background: rgba(239, 68, 68, 0.1); border-color: rgba(248, 113, 113, 0.3); }
html[data-theme="agua"] .cx-msg.info { color: #99f6e4; background: rgba(20, 184, 166, 0.1); border-color: rgba(45, 212, 191, 0.3); }
/* Botões */
html[data-theme="agua"] .cx-btn { color: #042f2e; box-shadow: 0 10px 28px -8px rgba(20, 184, 166, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
html[data-theme="agua"] .cx-btn:hover:not(:disabled) { box-shadow: 0 14px 34px -8px rgba(45, 212, 191, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
html[data-theme="agua"] .cx-btn.ghost { color: #e5e7eb; background: transparent; border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
html[data-theme="agua"] .cx-btn.ghost:hover:not(:disabled) { color: #2dd4bf; border-color: rgba(45, 212, 191, 0.6); }
html[data-theme="agua"] .cx-btn.test { background: #1f2937; color: #fff; }
/* Pontas: ponta preta com contorno verde-água + faixa verde-água */
html[data-theme="agua"] .cx-shard path { fill: #0e1312; stroke: rgba(45, 212, 191, 0.55); }
html[data-theme="agua"] .cx-slice path { fill: #14b8a6; }
/* Prédio */
html[data-theme="agua"] .tw-floor { stroke: rgba(45, 212, 191, 0.13); }
html[data-theme="agua"] .tw-mull { stroke: rgba(45, 212, 191, 0.09); }
html[data-theme="agua"] .tw-win.lit { fill: rgba(45, 212, 191, 0.26); }
html[data-theme="agua"] .tw-win.warm { fill: rgba(94, 234, 212, 0.32); }
/* Páginas de status */
html[data-theme="agua"] .cx-status { color: #2dd4bf; background: rgba(20, 184, 166, 0.1); border-color: rgba(45, 212, 191, 0.35); box-shadow: 0 8px 22px -8px rgba(20, 184, 166, 0.5); }
html[data-theme="agua"] .cx-status::after { border-color: rgba(45, 212, 191, 0.35); }
html[data-theme="agua"] .cx-steps li { color: #cbd5e1; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="agua"] .cx-steps li b { color: #042f2e; background: linear-gradient(135deg, #14b8a6, #5eead4); box-shadow: 0 4px 10px -3px rgba(20, 184, 166, 0.6); }
html[data-theme="agua"] .cx-steps strong { color: #fff; }
html[data-theme="agua"] .cx-steps a { color: #2dd4bf; }

/* Links dos termos dentro do checkbox */
.cx-check a { color: var(--cyan-1, #2dd4bf); text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="agua"] .cx-check a { color: #5eead4; }
