@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #111111;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  background: url('fundologin.jpg.png') center center / cover no-repeat fixed;
}

/* CONTAINER PRINCIPAL */
.page-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 40px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* LADO ESQUERDO - TEXTO */
.hero {
  position: relative;
  padding: 0 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-tag {
  display: none; /* já não usamos */
}

/* Título maior, conforme pedido */
.hero-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 15px;
  max-width: 450px;
  margin-bottom: 18px;
  opacity: 0.98;
  color: #ffffff;
}

.hero-list {
  font-size: 13px;
  list-style: none;
}

.hero-list li {
  margin-bottom: 6px;
}

.hero-list li::before {
  content: "✔";
  margin-right: 6px;
  color: #ffffff;
  font-size: 11px;
}

/* LADO DIREITO - FORMULÁRIO */

.form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-150px); /* desloca o formulário levemente para a esquerda */
}

.form-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 26px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Remover visualmente o texto "Acesse com seus dados" */
.form-title {
  display: none;
}

.form-subtitle {
  font-size: 11px;
  color: #555555;
  text-align: left;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 10px;
}

label {
  display: block;
  font-size: 11px;
  color: #222222;
  margin-bottom: 4px;
}

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  font-size: 12px;
  outline: none;
  transition: all 0.18s ease;
  font-family: 'Poppins', Arial, sans-serif;
  background: #ffffff;
  color: #111111;
}

input::placeholder {
  color: #c0c0c0;
}

input:focus {
  border-color: #d50000;
  box-shadow: 0 0 0 2px rgba(213, 0, 24, 0.12);
}

/* BOTÕES */

/* Conecte-se */
.submit-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  background: #d50000;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(213, 0, 24, 0.2);
  transition: all 0.18s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Cadastre-se para participar */
.register-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #d50000;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(213, 0, 24, 0.2);
  transition: all 0.18s ease;
}

.register-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Esqueci minha senha */
.extra-links {
  text-align: center;
  margin-top: 8px;
}

.extra-links .forgot {
  font-size: 10px;
  color: #d50000;
  text-decoration: none;
}

.extra-links .forgot:hover {
  text-decoration: underline;
}

/* Regulamento */
.regulamento {
  font-size: 9px;
  text-align: center;
  margin-top: 8px;
  color: #555555;
}

.regulamento a {
  color: #d50000;
  text-decoration: none;
  font-weight: 500;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  body {
    align-items: flex-start;
  }

  .page-wrapper {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 20px auto;
  }

  .hero {
    padding: 32px 24px 16px;
  }

  .hero-subtitle {
    max-width: 100%;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.aberto {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh; /* aumenta a altura máxima */
  padding: 20px 24px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  overflow-y: auto; /* ativa rolagem vertical */
  position: relative;
  font-size: 14px;
}

.modal-box h3 {
  color: #c40000;
  margin-bottom: 10px;
  font-weight: 700;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.modal-close:hover {
  color: #c40000;
}

/* modal específico de cadastro */
.modal-box-cadastro {
  max-width: 480px; /* aumenta um pouco a largura */
  width: 95%;
  font-size: 12px;
  max-height: 85vh; /* garante altura suficiente */
  overflow-y: auto; /* importante para permitir rolar */
}

.modal-box-cadastro h3 {
  text-align: center;
  margin-bottom: 15px;
}

.modal-box-cadastro h4 {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.modal-box-cadastro .form-group {
  margin-bottom: 10px;
}

.modal-box-cadastro input,
.modal-box-cadastro select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  box-sizing: border-box;
}

.modal-box-cadastro button.submit-btn {
  margin-top: 10px;
}

/* ===== PAINEL INDICADOR (layout tipo Adventista, em vermelho/ branco) ===== */

.painel-layout {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  background: #f3f4f8 !important;
}

/* Topbar */

.painel-topbar {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 40px;
  background: #d50000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.painel-brand-title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.painel-brand-sub {
  font-size: 11px;
  opacity: 0.9;
}

.painel-userbox {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.painel-logout {
  padding: 6px 14px;
  background: #ffffff;
  color: #d50000;
  border-radius: 20px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.painel-logout:hover {
  background: #ffe5e5;
}

/* Grid principal */

.painel-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  padding: 22px 40px 32px;
  box-sizing: border-box;
}

/* Cards genéricos */

.painel-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  box-sizing: border-box;
}

.painel-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.painel-card-sub {
  font-size: 10px;
  margin-bottom: 8px;
  color: #666;
}

/* Sidebar esquerda */

.campanha-card {
  margin-bottom: 12px;
}

.campanha-info {
  font-size: 10px;
  color: #666;
}

.painel-form-card .form-group {
  margin-bottom: 8px;
}

.painel-form-card label {
  display: block;
  font-size: 9px;
  color: #444;
  margin-bottom: 3px;
}

.painel-form-card input,
.painel-form-card textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 11px;
  box-sizing: border-box;
}

.btn-enviar-indicacao {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: #d50000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn-enviar-indicacao:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.termo-indicacao {
  margin-top: 6px;
  font-size: 8.5px;
  color: #777;
}

/* Main direita */

/*.painel-main {}*/

/* Cards resumo */

.painel-resumo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.resumo-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
}

.resumo-label {
  color: #777;
  margin-bottom: 3px;
}

.resumo-num {
  font-size: 17px;
  font-weight: 700;
  color: #d50000;
}

.resumo-ok .resumo-num {
  color: #0a9a4a;
}

.resumo-pendente .resumo-num {
  color: #f6a800;
}

.resumo-negado .resumo-num {
  color: #b00020;
}

/* Lista de indicações */

.painel-lista-card {
  margin-top: 4px;
}

.sem-indicacoes {
  font-size: 10px;
  color: #666;
}

.tabela-scroll {
  margin-top: 6px;
  overflow-x: auto;
}

.tabela-indicacoes {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
}

.tabela-indicacoes th,
.tabela-indicacoes td {
  padding: 5px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.tabela-indicacoes th {
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #888;
}

/* Status pills */

.status-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 7.5px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-ok {
  background: #e4f8ec;
  color: #0a9a4a;
}

.status-pendente {
  background: #fff6dd;
  color: #f6a800;
}

.status-negado {
  background: #ffe5e5;
  color: #b00020;
}

/* Responsivo básico */

@media (max-width: 900px) {
  .painel-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .painel-resumo-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

 .painel-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  padding: 10px 22px;
  background: #d50000; /* vermelho */
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.painel-toast.mostrar {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

   .cpf-msg {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.cpf-msg-ok {
  color: #0a7a2a;
}

.cpf-msg-erro {
  color: #c51212;
}
.input-cpf-erro {
  border-color: #c51212 !important;
}
.cpf-msg {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.cpf-msg-ok {
  color: #0a7a2a;
}

.cpf-msg-erro {
  color: #c51212;
}

.input-cpf-erro {
  border-color: #c51212 !important;
}
/* POPUP CPF JÁ CADASTRADO */
.cpf-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.cpf-popup-overlay.mostrar {
  display: flex;
}

.cpf-popup-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-align: center;
  font-size: 13px;
}

.cpf-popup-box h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #c51212;
  font-size: 16px;
  font-weight: 700;
}

.cpf-popup-box p {
  margin: 0 0 16px;
  color: #444;
  font-size: 13px;
}

.cpf-popup-box button {
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  background: #c51212;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

.cpf-popup-box button:hover {
  background: #a40f0f;
}
.login-erro-msg {
  color: #c51212;
  font-size: 11px;
  margin-top: -5px;
  margin-bottom: 10px;
  display: none;
}
