/* =========================================================
   ESTILOS COMPLETO DO CADASTRO - COM CARD BRANCO NO LADO ROXO
   ========================================================= */

.escondido {
  display: none !important;
}

/* ---------------------------------------------------------
   1. PAINEL ROXO (ESQUERDO) - ALINHAMENTO E CARD BRANCO LGPD
   --------------------------------------------------------- */
.side-consumidor,
.split-lado-direito.side-consumidor {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  padding: 80px 30px 40px 30px !important;
  box-sizing: border-box !important;
}

.conteudo-painel-roxo {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 440px !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.simbolo-wrapper {
  margin-bottom: 25px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.simbolo-wrapper img,
.simbolo-png {
  width: 85px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.conteudo-painel-roxo h2 {
  font-size: 26px !important;
  line-height: 1.3 !important;
  margin-bottom: 15px !important;
  text-align: center !important;
}

.conteudo-painel-roxo p {
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.lista-beneficios-lado-roxo {
  text-align: left !important;
  margin-top: 30px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 360px !important;
}

.item-beneficio-roxo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #eff6ff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* CARD BRANCO DE SEGURANÇA E LGPD (IGUAL À SEGUNDA IMAGEM) */
.banner-seguranca-lgpd-roxo {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  margin-top: 35px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.info-seguranca-texto-roxo {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.ico-cadeado-svg-roxo {
  width: 46px !important;
  height: 46px !important;
  background-color: #eff6ff !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--cor-primaria) !important;
  flex-shrink: 0 !important;
}

.ico-cadeado-svg-roxo svg {
  stroke: var(--cor-primaria) !important;
}

.info-seguranca-texto-roxo h4 {
  font-size: 14px !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  margin-bottom: 3px !important;
}

.info-seguranca-texto-roxo p {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

.selo-lgpd-roxo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.ico-escudo-svg-roxo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.selo-lgpd-roxo strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.selo-lgpd-roxo small {
  display: block !important;
  color: #16a34a !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}


/* ---------------------------------------------------------
   2. ESTRUTURA DO FORMULÁRIO E AUMENTO DA IMAGEM (DIREITO)
   --------------------------------------------------------- */
.split-topo-form-amplo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  width: 100%;
  margin: 0 auto 25px auto;
  padding: 0 10px;
}

.split-form-wrapper-amplo {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

.bloco-principal-cadastro {
  display: grid !important;
  grid-template-columns: minmax(320px, 420px) 1fr !important;
  gap: 30px !important;
  align-items: center !important;
  margin-bottom: 40px !important;
}

.auth-form-amplo {
  width: 100% !important;
  max-width: 100% !important;
}

.auth-cabecalho-split h1 {
  font-size: 26px !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
  margin-bottom: 10px !important;
}

.auth-cabecalho-split p {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  margin-bottom: 20px !important;
}

.campo-form {
  width: 100% !important;
  margin-bottom: 18px !important;
}

.campo-form label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 8px !important;
}

.campo-form input[type="text"],
.campo-form input[type="email"],
.campo-form input[type="tel"],
.campo-form input[type="password"],
.campo-form select {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background-color: #f8fafc !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.campo-form input:focus,
.campo-form select:focus {
  border-color: var(--cor-primaria) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.btn-auth {
  width: 100% !important;
  height: 48px !important;
  background-color: var(--cor-primaria) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-auth:hover {
  background-color: #2563eb !important;
}

.troca-perfil-rodape {
  margin-top: 20px !important;
  text-align: center !important;
}


/* ---------------------------------------------------------
   3. IMAGEM DA BONECA
   --------------------------------------------------------- */
/* CONTAINER DA ILUSTRAÇÃO SIMPLES */
.ilustracao-lado-form {
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
}

/* IMAGEM DA BONECA (TAMANHO CORRETO E ALINHADA AO BOTÃO) */
.img-ilustracao-consumidor {
  width: 360px !important;       /* Garante o tamanho grande e bonito */
  height: auto !important;
  display: block !important;
  margin-top: 45px !important;   /* Empurra a imagem para baixo alinhando a base com o botão */
}


/* ---------------------------------------------------------
   4. SEÇÃO "POR QUE CRIAR SUA CONTA?"
   --------------------------------------------------------- */
.secao-porque-criar {
  border-top: 1px solid #f1f5f9;
  padding-top: 35px;
  margin-bottom: 35px;
}

.secao-porque-criar h3 {
  font-size: 18px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 25px;
}

.grid-porque-criar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card-motivo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-motivo h4 {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-motivo p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.ico-motivo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ico-motivo.roxo { background-color: #eff6ff; color: var(--cor-primaria); }
.ico-motivo.azul { background-color: #e0e7ff; color: #4338ca; }
.ico-motivo.roxo-claro { background-color: #eff6ff; color: var(--cor-primaria); }


/* ---------------------------------------------------------
   5. MÉTRICAS DE PROVA SOCIAL
   --------------------------------------------------------- */
.grid-metricas-cadastro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid #f1f5f9;
  padding-top: 30px;
}

.item-metrica {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ico-metrica-direto {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-metrica strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.item-metrica small {
  display: block;
  font-size: 12px;
  color: #64748b;
}


/* ---------------------------------------------------------
   6. MODAL DE SUCESSO CENTRALIZADO
   --------------------------------------------------------- */
.modal-sucesso-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.card-sucesso-centro {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  border: 1px solid #bbf7d0;
}

.icone-check-grande {
  width: 65px;
  height: 65px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.card-sucesso-centro h3 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 10px;
}

.card-sucesso-centro p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   7. RESPONSIVIDADE
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .bloco-principal-cadastro {
    grid-template-columns: 1fr !important;
  }
  .ilustracao-lado-form {
    display: none;
  }
  .grid-porque-criar {
    grid-template-columns: 1fr;
  }
  .grid-metricas-cadastro {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mensagem-cpf {
  display: none;
  margin-top: 7px;
  color: #b42318;
  font-size: 12px;
  font-weight: 600;
}

.mensagem-cpf.visivel {
  display: block;
}

.campo-form label.campo-obrigatorio::after {
  content: "Obrigatório";
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b6ffb;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.campo-obrigatorio-nota {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.campo-obrigatorio-nota::before {
  content: "Obrigatório";
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.mensagem-cadastro-api { color: #a52a35; background: #fff0f1; padding: 12px; border-radius: 8px; line-height: 1.5; }
.mensagem-cadastro-api a { color: #a52a35; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mensagem-cadastro-api:empty { display: none; }
button.link-passo-anterior { border: 0; background: transparent; font: inherit; cursor: pointer; }
button.link-passo-anterior[hidden] { display: none; }
#btnFinalizarCadastro:disabled { opacity: .65; cursor: wait; }

/* Etapa inicial: mais espaço para o personagem e formulário compacto. */
.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px!important}
.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)) .ilustracao-lado-form{min-width:0!important;align-items:center!important}
.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)) .img-ilustracao-consumidor{width:100%!important;max-width:340px!important;height:auto!important;margin-top:0!important}
#etapaCpf .campo-form,#etapaCpf .btn-auth{width:100%!important;max-width:300px!important}
#etapaCpf input{min-height:44px!important;padding:10px 14px!important}
#etapaCpf .btn-auth{min-height:44px!important;height:auto!important;padding:10px 14px!important}
@media(max-width:600px){.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)){grid-template-columns:minmax(0,1fr)!important}.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)) .img-ilustracao-consumidor{max-width:260px!important}#etapaCpf .campo-form,#etapaCpf .btn-auth{max-width:100%!important}}

/* Personagem ampliado, com base alinhada ao formulário inicial. */
.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)){grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;gap:16px!important;align-items:end!important}
.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)) .img-ilustracao-consumidor{max-width:380px!important}
#etapaCpf .campo-form,#etapaCpf .btn-auth{max-width:270px!important}
@media(max-width:600px){.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)){grid-template-columns:minmax(0,1fr)!important}.bloco-principal-cadastro:has(#etapaCpf:not(.escondido)) .img-ilustracao-consumidor{max-width:280px!important}#etapaCpf .campo-form,#etapaCpf .btn-auth{max-width:100%!important}}
