/* ==========================================================================
   AUTENTICAÇÃO (LOGIN, CRIAR CONTA E SELEÇÃO DE PERFIL)
   ========================================================================== */

/* ================= 1. ESTRUTURA E CENTRALIZAÇÃO GERAL ================= */
.main-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px); /* Centraliza verticalmente entre topo e rodapé */
  padding: 40px 20px;
}

.auth-section {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-container {
  background-color: var(--cor-branca, #ffffff);
  border: 1px solid var(--cor-borda, #e2e8f0);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* ================= 2. CABEÇALHO DOS FORMULÁRIOS ================= */
.auth-cabecalho {
  text-align: center;
  margin-bottom: 28px;
}

.auth-cabecalho h1 {
  font-size: 24px;
  color: var(--cor-texto-escuro, #0b1736);
  margin-bottom: 8px;
}

.auth-cabecalho p {
  font-size: 13px;
  color: var(--cor-texto-suave, #64748b);
  line-height: 1.4;
}

/* ================= 3. CAMPOS E INPUTS DOS FORMULÁRIOS ================= */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campo-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo-form label {
  font-size: 13px;
  font-weight: bold;
  color: var(--cor-texto-escuro, #0b1736);
}

.campo-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

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

/* ================= 4. CAMPO COM ÍCONE (OLHO DA SENHA MODERNO) E LINK ABAIXO ================= */
.input-senha-wrapper,
.input-com-icone {
  position: relative;
  width: 100%;
}

.input-senha-wrapper input,
.input-com-icone input {
  width: 100%;
  padding-right: 42px !important; /* Espaço interno para o texto não ficar em cima do olho */
}

/* Botão do ícone de alternar senha (SVG) */
.btn-toggle-senha {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.btn-toggle-senha:hover svg {
  stroke: var(--cor-primaria); /* Destaque roxo suave ao passar o mouse */
}

.icone-olho {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.icone-olho:hover {
  color: #0b1736;
}

/* Link de recuperação de senha posicionado abaixo da caixa de texto */
.link-esqueci-abaixo {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #1d60be; /* Tom azul limpo igual ao padrão da imagem */
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.link-esqueci-abaixo:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ================= 5. OPÇÕES EXTRAS (CHECKBOX E COMPATIBILIDADE) ================= */
.auth-opcoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.lembrar-mim {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cor-texto-suave, #64748b);
  cursor: pointer;
}

.lembrar-mim input[type="checkbox"] {
  accent-color: var(--cor-primaria, var(--cor-primaria));
  cursor: pointer;
}

/* ================= 6. BOTÃO DE ENVIO (FORMULÁRIOS) ================= */
.btn-auth {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background-color: var(--cor-primaria, var(--cor-primaria));
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-auth:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
}

.btn-auth:active {
  transform: translateY(0);
}

.auth-rodape-texto {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--cor-borda, #e2e8f0);
}

.auth-rodape-texto p {
  font-size: 13px;
  color: var(--cor-texto-suave, #64748b);
}

.auth-rodape-texto a {
  color: var(--cor-primaria, var(--cor-primaria));
  font-weight: bold;
  text-decoration: none;
}

.auth-rodape-texto a:hover {
  text-decoration: underline;
}

/* ================= 7. TELA DE SELEÇÃO DE PERFIL (CARDS) ================= */
.perfil-section {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.titulo-perfil {
  font-size: 26px;
  font-weight: 700;
  color: var(--cor-texto-escuro, #0b1736);
  margin-bottom: 35px;
}

.cards-perfil-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card-perfil {
  background-color: var(--cor-branca, #ffffff);
  border: 1px solid var(--cor-borda, #e2e8f0);
  border-radius: 20px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-perfil h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Texto dos Cards */
.card-perfil p {
  font-size: 15px;
  color: #475569;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 30px;
  flex-grow: 1;
}

/* Ícones Base dos Cards */
.icone-perfil-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.25s ease;
}

.icone-perfil-wrapper svg {
  width: 44px;
  height: 44px;
}

/* ---------------- 7.1 PERFIL CONSUMIDOR (PADRÃO ROXO) ---------------- */
.card-perfil.consumidor h2 {
  color: var(--cor-primaria);
}

.icone-perfil-wrapper.consumidor {
  background-color: #eff6ff;
  color: var(--cor-primaria);
}

.btn-consumidor {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--cor-primaria);
  border: 1px solid var(--cor-primaria);
  background-color: transparent;
  transition: all 0.2s ease;
  display: block;
}

/* Hover Consumidor */
.card-perfil.consumidor:hover {
  transform: translateY(-5px);
  border-color: var(--cor-primaria);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}

.card-perfil.consumidor:hover .icone-perfil-wrapper {
  background-color: var(--cor-primaria);
  color: #ffffff;
}

.btn-consumidor:hover {
  background-color: var(--cor-primaria);
  color: #ffffff;
}

/* ---------------- 7.2 PERFIL EMPRESA (PADRÃO AZUL) ---------------- */
.card-perfil.empresa h2 {
  color: #1d60be;
}

.icone-perfil-wrapper.empresa {
  background-color: #e3f2fd;
  color: #1d60be;
}

.btn-empresa {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #1d60be;
  border: 1px solid #1d60be;
  background-color: transparent;
  transition: all 0.2s ease;
  display: block;
}

/* Hover Empresa */
.card-perfil.empresa:hover {
  transform: translateY(-5px);
  border-color: #1d60be;
  box-shadow: 0 12px 30px rgba(29, 96, 190, 0.12);
}

.card-perfil.empresa:hover .icone-perfil-wrapper {
  background-color: #1d60be;
  color: #ffffff;
}

.btn-empresa:hover {
  background-color: #1d60be;
  color: #ffffff;
}

/* ================= 8. TEXTO DE CADASTRO ABAIXO DOS CARDS ================= */
.opcao-cadastro-perfil {
  text-align: center;
  margin-top: 40px;
}

.opcao-cadastro-perfil p {
  font-size: 16px;
  color: #475569;
  font-weight: 500;
}

.opcao-cadastro-perfil a {
  color: #1d60be;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: opacity 0.2s ease;
}

.opcao-cadastro-perfil a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ================= 9. RESPONSIVIDADE (CELULARES) ================= */
@media (max-width: 768px) {
  .cards-perfil-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-perfil {
    padding: 30px 20px;
  }

  .auth-container {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   TELA SPLIT (LOGIN CONSUMIDOR / EMPRESA)
   ========================================================================== */

.body-split {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* LADO ESQUERDO */
.split-lado-esquerdo {
  flex: 1;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
}

.split-topo-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

/* LOGO COM TAMANHO PROPORCIONAL E HARMONIOSO */
.logo-split img {
  width: 160px;
  height: auto;
  display: block;
}

.link-voltar {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-voltar:hover {
  color: var(--cor-primaria);
}

.split-form-wrapper {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.auth-cabecalho-split h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0b1736;
  margin-bottom: 8px;
}

.auth-cabecalho-split p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 30px;
}

/* BOTÃO DE SUBMIT - CONSUMIDOR (ROXO) */
.btn-consumidor-submit {
  background-color: var(--cor-primaria);
  margin-top: 10px;
}

.btn-consumidor-submit:hover {
  background-color: #2563eb;
}

/* BOTÃO DE SUBMIT - EMPRESA (AZUL) */
.btn-empresa-submit {
  background-color: #1d60be;
  margin-top: 10px;
}

.btn-empresa-submit:hover {
  background-color: #154a96;
}

/* Divisor "OU" */
.divisor-ou {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
}

.divisor-ou::before,
.divisor-ou::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.divisor-ou span {
  padding: 0 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

/* Botão Google */
.btn-google {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background-color: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-google:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

/* Rodapé do Form */
.troca-perfil-rodape {
  margin-top: 35px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.troca-perfil-rodape a {
  color: var(--cor-primaria);
  font-weight: 700;
  text-decoration: none;
}

.troca-perfil-rodape a:hover {
  text-decoration: underline;
}

/* LADO DIREITO (ROXO DA MARCA) */
.split-lado-direito {
  flex: 1;
  background: linear-gradient(135deg, var(--cor-primaria) 0%, #1e3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #ffffff;
}

/* LADO DIREITO (AZUL OPCIONAL PARA A TELA DE EMPRESA) */
.split-lado-direito.side-empresa {
  background: linear-gradient(135deg, #1d60be 0%, #0d3878 100%);
}

.conteudo-painel-roxo {
  max-width: 420px;
  text-align: center;
}

.simbolo-wrapper {
  margin-bottom: 25px;
}

.simbolo-png {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.conteudo-painel-roxo h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.conteudo-painel-roxo p {
  font-size: 15px;
  color: #eff6ff;
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-cadastre-se-out {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
}

.btn-cadastre-se-out:hover {
  background-color: #ffffff;
  color: var(--cor-primaria);
  transform: translateY(-2px);
}

.split-lado-direito.side-empresa .btn-cadastre-se-out:hover {
  color: #1d60be;
}

/* RESPONSIVIDADE TELA SPLIT */
@media (max-width: 900px) {
  .split-container {
    flex-direction: column;
  }

  .split-lado-esquerdo {
    padding: 30px 20px;
  }

  .split-lado-direito {
    padding: 50px 20px;
  }
}

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

.mensagem-login.visivel {
  display: block;
}
/* Botões de retorno padronizados. */
a.link-voltar, .link-passo-anterior, .rapidas-voltar, .perguntas-voltar, .reclamacoes-voltar-lista, .publicacoes-voltar { display:inline-flex;align-items:center;justify-content:center;width:fit-content;padding:8px 14px;border:1px solid #dbeafe;border-radius:8px;background:#fff;color:var(--cor-primaria);font:inherit;font-size:13px;text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s; }
a.link-voltar:hover, .link-passo-anterior:hover, .rapidas-voltar:hover, .perguntas-voltar:hover, .reclamacoes-voltar-lista:hover, .publicacoes-voltar:hover { background:#eff6ff;border-color:#93c5fd;text-decoration:none; }
.auth-voltar{position:fixed;top:20px;left:20px;z-index:20;padding:9px 17px;background:#fff;border:1px solid #dbeafe;border-radius:8px;color:#0b6ffb;text-decoration:none;font-size:14px;line-height:1.4;transition:background-color .2s}.auth-voltar:hover{background:#eff6ff}.auth-voltar:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}

/* Navegação discreta sobre os fundos de acesso. */
.auth-voltar{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 17px;border:1px solid rgba(37, 99, 235,.14);border-radius:18px;background:rgba(255,255,255,.82);color:#2563eb;font-family:Arial,Helvetica,sans-serif;font-size:13px;font-weight:500;line-height:1.4;text-decoration:none;box-shadow:0 2px 8px rgba(30, 58, 138,.05);backdrop-filter:blur(10px);cursor:pointer;transition:background-color .2s,border-color .2s,box-shadow .2s}
.auth-voltar:hover{background:rgba(255,255,255,.94);border-color:rgba(37, 99, 235,.26);box-shadow:0 3px 10px rgba(30, 58, 138,.09)}

.btn-toggle-senha,.icone-olho{background:transparent;border:0;box-shadow:none;filter:none;color:#64748b;transition:color .15s}.btn-toggle-senha:hover,.icone-olho:hover{background:transparent;border:0;box-shadow:none;filter:none;color:#47638c}.btn-toggle-senha svg,.btn-toggle-senha:hover svg{stroke:currentColor}.btn-toggle-senha:focus-visible{outline:2px solid #93b5ff;outline-offset:4px}
