/* ===================================================================
   Cadastro / Signup Flow — Modern Design
   3-step wizard: URL → Dados → Sucesso
   =================================================================== */

:root {
  --cad-primaria: #10b981;
  --cad-primaria-hover: #059669;
  --cad-primaria-light: rgba(16, 185, 129, 0.08);
  --cad-perigo: #ef4444;
  --cad-info: #3b82f6;
  --cad-texto: #0f172a;
  --cad-texto-leve: #64748b;
  --cad-borda: #e2e8f0;
  --cad-fundo: #f8fafc;
  --cad-branco: #ffffff;
  --cad-fonte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--cad-fonte);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 50%, #1e293b 100%);
  -webkit-font-smoothing: antialiased;
  color: var(--cad-texto);
}

/* ===== Main Wrapper ===== */
.cad-wrapper {
  width: 100%;
  max-width: 520px;
  padding: 24px 16px;
}

.cad-wrapper.wide {
  max-width: 600px;
}

/* ===== Logo ===== */
.cad-logo {
  text-align: center;
  margin-bottom: 24px;
}

.cad-logo img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ===== Step Indicator ===== */
.cad-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.cad-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cad-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
}

.cad-step.active .cad-step-number {
  background: var(--cad-primaria);
  border-color: var(--cad-primaria);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.cad-step.done .cad-step-number {
  background: var(--cad-primaria);
  border-color: var(--cad-primaria);
  color: #fff;
}

.cad-step-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.3px;
}

.cad-step.active .cad-step-label {
  color: rgba(255, 255, 255, 0.9);
}

.cad-step.done .cad-step-label {
  color: rgba(255, 255, 255, 0.6);
}

.cad-step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 10px;
}

.cad-step-line.done {
  background: var(--cad-primaria);
}

/* ===== Card ===== */
.cad-card {
  background: var(--cad-branco);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cad-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--cad-texto);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.cad-card-subtitle {
  font-size: 13px;
  color: var(--cad-texto-leve);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ===== Section Divider ===== */
.cad-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
}

.cad-divider::before,
.cad-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cad-borda);
}

.cad-divider span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cad-texto-leve);
  white-space: nowrap;
}

/* ===== URL Preview ===== */
.cad-url-preview {
  background: var(--cad-fundo);
  border: 1px solid var(--cad-borda);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--cad-texto-leve);
  margin-bottom: 20px;
  word-break: break-all;
}

.cad-url-preview strong {
  color: var(--cad-primaria);
  font-weight: 700;
}

/* ===== Form Elements ===== */
.cad-form-group {
  margin-bottom: 14px;
}

.cad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cad-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--cad-texto-leve);
  margin-bottom: 5px;
}

.cad-input {
  width: 100%;
  border: 1px solid var(--cad-borda);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--cad-fonte);
  color: var(--cad-texto);
  background: var(--cad-fundo);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}

.cad-input:focus {
  border-color: var(--cad-primaria);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #fff;
}

.cad-input::placeholder {
  color: #b0b8c4;
}

.cad-input-hint {
  font-size: 11px;
  color: var(--cad-texto-leve);
  margin-top: 4px;
  line-height: 1.4;
}

/* URL input special */
.cad-url-input-wrapper {
  position: relative;
}

.cad-url-prefix {
  font-size: 12px;
  font-weight: 600;
  color: var(--cad-texto-leve);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cad-url-prefix i {
  color: var(--cad-info);
  font-size: 13px;
}

.cad-url-example {
  font-size: 12px;
  color: var(--cad-texto-leve);
  margin-top: 6px;
}

.cad-url-example strong {
  color: var(--cad-texto);
}

/* ===== Button ===== */
.cad-btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--cad-fonte);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
}

.cad-btn-primary {
  background: var(--cad-primaria);
  color: #fff;
}

.cad-btn-primary:hover {
  background: var(--cad-primaria-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  color: #fff;
}

.cad-btn-primary:active {
  transform: translateY(0);
}

/* ===== Error Message ===== */
.cad-error {
  background: rgba(239, 68, 68, 0.06);
  color: var(--cad-perigo);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
  border: 1px solid rgba(239, 68, 68, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ===== Success Page ===== */
.cad-success-icon {
  text-align: center;
  margin-bottom: 16px;
}

.cad-success-icon i {
  font-size: 48px;
  color: var(--cad-primaria);
}

.cad-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cad-primaria-light);
  color: var(--cad-primaria);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 16px;
}

.cad-status-active {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  text-align: center;
  margin-bottom: 16px;
}

.cad-status-pending {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  text-align: center;
  margin-bottom: 16px;
}

/* Access URLs */
.cad-access-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.cad-access-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cad-borda);
  font-size: 13px;
}

.cad-access-item:last-child {
  border-bottom: none;
}

.cad-access-item i {
  color: var(--cad-primaria);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 14px;
  width: 18px;
  text-align: center;
}

.cad-access-item-label {
  font-weight: 600;
  color: var(--cad-texto);
  display: block;
  font-size: 12px;
  margin-bottom: 1px;
}

.cad-access-item-url {
  color: var(--cad-info);
  font-size: 12px;
  word-break: break-all;
}

.cad-credentials {
  background: var(--cad-fundo);
  border: 1px solid var(--cad-borda);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 4px;
}

.cad-credentials-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
}

.cad-credentials-row + .cad-credentials-row {
  border-top: 1px solid var(--cad-borda);
  margin-top: 4px;
  padding-top: 8px;
}

.cad-credentials-label {
  font-weight: 600;
  color: var(--cad-texto);
}

.cad-credentials-value {
  color: var(--cad-info);
  font-weight: 500;
}

/* ===== Footer ===== */
.cad-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 540px) {
  .cad-wrapper {
    padding: 16px 12px;
  }

  .cad-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .cad-form-row {
    grid-template-columns: 1fr;
  }

  .cad-step-label {
    display: none;
  }

  .cad-step-line {
    width: 28px;
    margin: 0 6px;
  }

  .cad-logo img {
    max-width: 140px;
  }
}

/* ===== Melhorias de cadastro 2026-04-25 ===== */

/* Honeypot — invisível para humanos, visível para bots */
.cad-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; height: 0; overflow: hidden; }

/* Required asterisk */
.cad-required { color: var(--cad-perigo); }

/* Toggle de senha */
.cad-password-wrap { position: relative; }
.cad-password-wrap .cad-input { padding-right: 44px; }
.cad-password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 6px;
  color: var(--cad-texto-leve); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.cad-password-toggle:hover { background: #f1f5f9; color: var(--cad-texto); }

/* Hint de validação inline */
.cad-input-hint.cad-hint-error { color: var(--cad-perigo); font-weight: 500; }
.cad-input-hint.cad-hint-error i { color: var(--cad-perigo); }
.cad-input-hint.cad-hint-ok { color: #10b981; font-weight: 500; }
.cad-input-hint.cad-hint-ok i { color: #10b981; }
.cad-url-example.cad-hint-error { color: var(--cad-perigo); font-weight: 500; }
.cad-url-example.cad-hint-ok { color: #10b981; font-weight: 500; }

/* Reassurance box (garantias) */
.cad-reassurance {
  margin-top: 24px; padding: 18px 18px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5; border-radius: 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
}
.cad-reassurance.compact { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
.cad-reassurance-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #065f46; line-height: 1.45; }
.cad-reassurance-item i { color: #10b981; font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.cad-reassurance-item strong { font-weight: 700; color: #064e3b; }

/* Prova social */
.cad-social-proof {
  margin-top: 14px; padding: 12px 16px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  font-size: 13px; color: #9a3412; text-align: center; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cad-social-proof i { color: #ea580c; font-size: 14px; }
.cad-social-proof strong { font-weight: 700; color: #7c2d12; }

/* Checklist de próximos passos (sucesso) */
.cad-checklist { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 6px; }
.cad-checklist-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; background: #f8fafc;
  border: 1px solid var(--cad-borda); border-radius: 10px;
  transition: border 0.15s, background 0.15s;
}
.cad-checklist-item:hover { border-color: var(--cad-primaria); background: #fff; }
.cad-checklist-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cad-primaria), #f97316);
  color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cad-checklist-title { font-weight: 700; font-size: 14px; color: var(--cad-texto); margin-bottom: 2px; }
.cad-checklist-desc { font-size: 12px; color: var(--cad-texto-leve); line-height: 1.45; }

/* Mobile */
@media (max-width: 540px) {
  .cad-reassurance:not(.compact) { grid-template-columns: 1fr; }
  .cad-checklist-item { padding: 12px 14px; }
  .cad-checklist-num { width: 26px; height: 26px; font-size: 12px; }
  .cad-checklist-title { font-size: 13px; }
}

/* ===== Layout 2 colunas (split) — 2026-04-25 ===== */
body {
  background: #fff;
  display: block;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
}

.split-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
}

/* Coluna esquerda: institucional + valor (~52%, padrão da tela de login) */
.split-aside {
  flex: 1;
  max-width: 52%;
  background: linear-gradient(135deg, #dc2626 0%, #1a0a0a 100%);
  color: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-aside::before {
  content:''; position: absolute; top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.split-aside::after {
  content:''; position: absolute; bottom: -150px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.split-aside-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 480px; margin: 0 auto;
  width: 100%;
}
.split-aside-brand { display: inline-block; }
.split-aside-brand img { max-width: 130px; height: auto; filter: brightness(0) invert(1); }
.split-aside-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  padding: 6px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  width: fit-content;
  backdrop-filter: blur(8px);
}
.split-aside-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.split-aside-title {
  font-size: 34px; font-weight: 900;
  line-height: 1.1; letter-spacing: -0.025em;
  color: #fff; margin: 0;
}
.split-aside-title .hl {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.split-aside-lead {
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.85); margin: 0;
}
.split-aside-benefits {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.split-aside-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.92);
  line-height: 1.5;
}
.split-aside-benefits li i {
  color: #4ade80; font-size: 13px; padding-top: 4px; flex-shrink: 0;
}
.split-aside-benefits li strong { color: #fff; font-weight: 700; }
.split-aside-proof {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px; line-height: 1.4;
}
.split-aside-proof i { color: #fed7aa; font-size: 15px; flex-shrink: 0; }
.split-aside-proof strong { color: #fed7aa; font-weight: 700; }
.split-aside-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
}
.split-aside-foot a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s;
}
.split-aside-foot a:hover { color: #fff; }
.split-aside-foot i { font-size: 11px; margin-right: 4px; }

/* Coluna direita: form (~48%) */
.split-main {
  flex: 1;
  background: var(--cad-fundo);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 48px;
  min-height: 100vh;
}

/* Esconder logo e footer dos partials (já estão no aside) */
.split-main .cad-logo { display: none; }
.split-main .cad-footer { display: none; }
.split-main .cad-wrapper { margin: 0; width: 100%; max-width: 540px; }
.split-main .cad-wrapper.wide { max-width: 600px; }
.split-main .cad-card {
  padding: 36px 36px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

/* Em desktop com aside, esconder reassurance/proof duplicados dos partials */
@media (min-width: 901px) {
  .split-main .cad-reassurance,
  .split-main .cad-social-proof { display: none; }
}

/* Mobile: collapse para single column.
   Aside fica compacto (brand + 1 linha) pra nao empurrar o form pra fora da tela. */
@media (max-width: 900px) {
  body { min-height: auto; }
  .split-page { flex-direction: column; min-height: auto; }

  .split-aside {
    flex: 0 0 auto;
    max-width: none;
    padding: 14px 16px;
    justify-content: flex-start;
  }
  .split-aside::before, .split-aside::after { display: none; }
  .split-aside-inner {
    max-width: none;
    gap: 8px;
    flex-direction: row;
    align-items: center;
  }
  .split-aside-brand img { max-width: 72px; }
  .split-aside-eyebrow { display: none; }
  .split-aside-title {
    font-size: 14px;
    line-height: 1.25;
    flex: 1;
    margin: 0;
    font-weight: 700;
  }
  .split-aside-title br { display: none; }
  .split-aside-title .hl { -webkit-text-fill-color: #fed7aa; }
  .split-aside-lead { display: none; }
  .split-aside-benefits { display: none; }
  .split-aside-proof { display: none; }
  .split-aside-foot { display: none; }

  .split-main {
    flex: 1 1 auto;
    padding: 18px 14px;
    align-items: flex-start;
    min-height: auto;
  }
  .split-main .cad-card { padding: 22px 18px; }
}

/* Summary de dados do lead (passo 3) */
.cad-summary {
  background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.cad-summary-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: #065f46;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.cad-summary-head > span {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.cad-summary-head i { color: #10b981; font-size: 14px; }
.cad-summary-edit {
  font-size: 11px; color: #059669; text-transform: none; letter-spacing: 0;
  font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.cad-summary-edit:hover { text-decoration: underline; }
.cad-summary-edit i { font-size: 10px; }
.cad-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  font-size: 13px; color: #134e4a;
}
.cad-summary-grid > div { line-height: 1.45; }
.cad-summary-grid span { color: #047857; font-weight: 500; }
.cad-summary-grid strong { color: #064e3b; font-weight: 600; }

/* Consent LGPD (passo 1) */
.cad-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 10px 0 18px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--cad-borda);
  border-radius: 10px;
  font-size: 13px; color: var(--cad-texto-leve);
  line-height: 1.5;
  cursor: pointer;
  transition: border 0.15s, background 0.15s;
}
.cad-consent:hover { background: #fff; border-color: var(--cad-primaria); }
.cad-consent input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--cad-primaria);
  cursor: pointer;
}
.cad-consent a { color: var(--cad-primaria); font-weight: 600; }
.cad-consent a:hover { text-decoration: underline; }

@media (max-width: 540px) {
  .cad-summary-grid { grid-template-columns: 1fr; }
}

/* ===== Steps em fundo claro (sobrescreve cores brancas legadas) ===== */
.split-main .cad-step-number {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #fff;
}
.split-main .cad-step.active .cad-step-number {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(220,38,38,0.18);
}
.split-main .cad-step.done .cad-step-number {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.split-main .cad-step-label {
  color: #94a3b8;
  font-weight: 600;
}
.split-main .cad-step.active .cad-step-label {
  color: #0f172a;
  font-weight: 700;
}
.split-main .cad-step.done .cad-step-label {
  color: #475569;
}
.split-main .cad-step-line {
  background: #e2e8f0;
}
.split-main .cad-step-line.done {
  background: #dc2626;
}
