/* Estilo base */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

/* Classe para impedir rolagem quando modal está aberto */
body.modal-aberto { 
  overflow: hidden;
}

/* Cabeçalho com logo e botão */
.topo {
  display: flex;
  justify-content: center; /* Centraliza o container dentro do topo */
  align-items: center;
  width: 100%;
  height: 70px;
  position: fixed;
  background-color: white;
  padding: 0 16px;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.container-topo {
  display: flex;
  justify-content: space-between; /* Alinha logo à esquerda e botões à direita */
  align-items: center;
  width: 100%;
  max-width: 1200px; /* ou o valor que desejar */
}

.logo {
  height: 50px;
  padding-bottom: 0;
}

.botoes-topo {
  display: flex;
  gap: 12px;
}

.btn-acesso, .btn-whatsapp {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0098B3;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.btn-acesso:hover, .btn-whatsapp:hover {
  background: #002D55;
}

/* ===== ESTILOS PARA PAINEL DE LOGIN ===== */

/* Fundo escurecido ao abrir login */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 900;
}

/* Painel lateral de login */
.login-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
}

/* Quando ativo, painel entra na tela */
.login-panel.ativo {
  transform: translateX(0);
}

/* Cabeçalho do painel de login */
.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-header h2 {
  margin: 0;
  color: #0098B3;
}

/* Estilo para a checkbox "Manter-me conectado" */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  color: #333;
  font-family: 'Roboto', sans-serif;
}

.checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0098B3; /* azul claro da sua paleta */
  cursor: pointer;
}

.checkbox-container label {
  cursor: pointer;
}

/* ===== ESTILOS PARA PAINEL DE CADASTRO ===== */

/* Fundo escurecido ao abrir cadastro */
.overlay-cadastro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 900;
}

/* Painel lateral de cadastro */
.cadastro-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;  /* Permite rolagem no painel de cadastro */
}

/* Quando ativo, painel entra na tela */
.cadastro-panel.ativo {
  transform: translateX(0);
}

/* Cabeçalho do painel de cadastro */
.cadastro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cadastro-header h2 {
  margin: 0;
  color: #0098B3;
}

/* ===== ESTILOS PARA PAINEL DE RECUPERAÇÃO DE SENHA ===== */

/* Fundo escurecido ao abrir recuperação */
.overlay-recuperacao {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 900;
}

/* Painel lateral de recuperação */
.recuperacao-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;  /* Permite rolagem se necessário */
}

/* Quando ativo, painel entra na tela */
.recuperacao-panel.ativo {
  transform: translateX(0);
}

/* Cabeçalho do painel de recuperação */
.recuperacao-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.recuperacao-header h2 {
  margin: 0;
  color: #0098B3;
}

/* ===== ESTILOS COMPARTILHADOS DOS PAINÉIS ===== */

/* Botão de fechar (X) */
.fechar {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #0098B3;
}

.fechar:hover {
  color: #002D55;
}

/* Formulários */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
  font-weight: bold;
  color: #002D55;
}

input {
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input:focus {
  outline: none;
  border-color: #0098B3;
  box-shadow: 0 0 5px rgba(0, 94, 255, 0.3);
}

/* Links */
.link {
  margin-top: 10px;
  font-size: 13px;
  color: #0098B3;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Botões */
.btn-login, .btn-cadastro, .btn-recuperacao {
  margin-top: 20px;
  padding: 10px;
  background-color: #0098B3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-login:hover, .btn-cadastro:hover, .btn-recuperacao:hover {
  background-color: #002D55;
}

.btn-cadastro {
  margin-bottom: 40px; /* Espaço extra no final do formulário de cadastro */
}

/* ===== SEÇÃO HERO ===== */

/* HERO COM IMAGEM DE FUNDO E TEXTO FIXO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* altura total da tela */
  overflow: hidden;
}

.hero picture,
.hero-bg {
  margin-top: 70px;
  width: 100%;
  height: -70vh;
  display: block;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
}

/* Texto fixo sobre a imagem */
.hero-overlay {
  position: absolute;
  top: 120px; /* Posição vertical para desktop */
  left: 60px;  /* Posição horizontal para desktop */
  color: white;
  max-width: 600px;
  z-index: 10;
}

/* Título principal */
.hero-overlay h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

/* Destaque: CRM.Net */
.destaque {
  display: block;
  font-size: 60px;
  font-weight: 900;
  margin-top: 0px;
  letter-spacing: -0.5px;
}

/* Subtexto */
.subtexto {
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  color: white;
}

/* ===== SEÇÃO FEATURES ===== */

/* Features */
.features {
  padding: 40px 0;
}

.feature {
  text-align: center;
  margin-bottom: 40px;
}

.feature img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

.feature h2 {
  margin-top: 20px;
  color: #0098B3;
}

.feature p {
  /* Espaçamento interno apenas nas laterais (horizontal) */
  padding: 0 190px; /* 0 em cima e embaixo, 20px à esquerda e direita */
}

/* ===== RODAPÉ ===== */

/* Rodapé principal */
footer.rodape {
  height: 80px;
  width: auto;
  background-color: #0098B3;
  color: white;
  text-align: center;
  padding: 40px 120px;
  font-family: 'Roboto', sans-serif;
}

/* Área principal com dois blocos lado a lado */
.rodape-conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Modo lado a lado para telas maiores */
.rodape-conteudo.alinhado {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  text-align: left;
}

/* Bloco da logo (à esquerda) */
.rodape-bloco-logo {
  display: flex;
  flex-direction: column;
  align-items: center; /* alinhado à esquerda */
  text-align: center;
  max-width: 375px;
  flex: 1;
  min-width: 250px;
}

.logo-footer {
  height: 60px;
  margin-bottom: 15px;
}

.descricao {
  font-size: 13px;
  color: #ccc;
  margin: 0;
}

/* Bloco da política (à direita) */
.rodape-politica {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 250px;
  text-align: right;
}

.politica-linha {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #ccc;
}

.politica-linha a {
  color: #ccc;
  text-decoration: none;
  margin-left: 6px;
}

.politica-linha a:hover {
  text-decoration: underline;
}

.icon-lock {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  color: #ccc;
}

/* Versículo e copyright */
.versiculo {
  font-size: 12px;
  color: #575750;
  margin-top: 40px;
  padding: 0 20px;
}

.copyright {
  font-size: 14px;
  color: #575750;
  margin-top: 20px;
}

/* ===== RESPONSIVIDADE ===== */

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .login-panel, .cadastro-panel, .recuperacao-panel {
    width: 90%;
    transform: translateX(100%);
  }
  
  /* Correção do banner Hero para mobile */
  .hero {
    height: 100%; /* Mantém altura total da tela */
    min-height: 100vh; /* Garante altura mínima */
  }

  .hero picture,
  .hero-bg {
    margin-top: 70px;
    width: 105%;
    height: calc(100vh - 70px); /* Subtrai a altura do cabeçalho fixo */
    display: block;
  }

  .hero-bg {
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    top: 80%; /* Centraliza verticalmente */
    transform: translateY(-50%); /* Ajusta para centralização perfeita */
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px); /* Considera o padding lateral */
  }

  .hero-overlay h2 {
    font-size: 18px;
  }

  .destaque {
    font-size: 36px;
  }

  .subtexto {
    font-size: 14px;
  }

  
  .container-topo {
    padding: 0 10px;
  }
  
  .btn-acesso, .btn-whatsapp{
    margin: 10px;
    padding: 8px 16px;
    font-size: 14px;
    width: 70px;
    height: 33px;
  }

  
.feature p {
  /* Espaçamento interno apenas nas laterais (horizontal) */
  padding: 0 20px; /* 0 em cima e embaixo, 20px à esquerda e direita */
}

/* Rodapé principal */
footer.rodape {
    padding: 40px 10px;
  
}

.rodape-politica {
    justify-content: center; /* <-- muda para esquerda no mobile */
  }
}

/* Botão voltar específico para recuperação de senha */
.btn-voltar {
  margin-top: 20px;
  padding: 10px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex: 1;
}

.btn-voltar:hover {
  background-color: #5a6268;
}

/* Ajustes para o campo de código */
#codigo-recuperacao {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: bold;
}

/* Estilos para botões desabilitados */
.btn-recuperacao:disabled,
.btn-voltar:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

