*{margin:0;padding:0;box-sizing:border-box}
html,body{overflow-x:hidden}

body{
  font-family:'Poppins',sans-serif;
  color:#111;
}

:root{--verde:#0f6b3d; --azul:#0b3e8b;}

/* HEADER */
header{
  background:#000;
  border-bottom: #0f6b3d 2px solid;
  color:#fff;
  padding:7px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  position:relative;
  z-index:10;
}

header img{
  max-width:300px;
  height:auto;
}

nav a{
  color:#fff;
  margin-left:16px;
  text-decoration:none;
}

/* HERO COM VÍDEO */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;
}

/* VIDEO */
.hero-video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:1;
}

/* OVERLAY */
.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  z-index:2;
}

/* CONTEÚDO */
.hero-content{
  position:relative;
  z-index:3;
  max-width:1200px;
  margin:auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.hero-image img{
  width:100%;
  max-width:320px;
  border-radius:20px;
  box-shadow:0 15px 40px rgba(0,0,0,.4);
}

.hero-text h1{
  font-size:clamp(22px,4vw,42px);
  margin-bottom:20px;
}

.hero-text p{
  font-size:clamp(14px,2.5vw,18px);
  margin-bottom:30px;
}

.hero-text a{
  /* base */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 18px 40px;
  border-radius: 60px;

  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: #fff;

  /* glass + neon */
  background: linear-gradient(135deg, #000000);
  backdrop-filter: blur(8px);


  /* animações */
  transition: all 0.3s ease;
  animation: pulseWhatsapp 2s infinite;
  overflow: hidden;
}

/* brilho passando */
.hero-text a::before{
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.35);
  transform: skewX(-25deg);
  transition: 0.6s;
}

.hero-text a:hover::before{
  left: 130%;
}

/* hover */
.hero-text a:hover{
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 0 25px rgba(17, 37, 98, 0.9),
}

/* clique */
.hero-text a:active{
  transform: scale(0.94);
}

/* animação pulsante */
@keyframes pulseWhatsapp{
  0%{
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0.6),
      0 15px 40px rgba(0, 0, 0, 0);
  }
  70%{
    box-shadow:
      0 0 0 18px rgba(37, 211, 102, 0),
      0 15px 40px rgba(37, 211, 101, 0);
  }
  100%{
    box-shadow:
      0 0 0 0 rgba(37, 211, 102, 0),
      0 15px 40px rgba(37, 211, 102, 0.55);
  }
}

/* 📱 mobile-first */
@media (max-width: 768px){
  .hero-text a{
    width: 100%;
    max-width: 320px;
    padding: 16px 28px;
    font-size: 16px;
    justify-content: center;
  }
}

/* SECTION */
section{
  padding:60px 20px;
  max-width:1200px;
  margin:auto;
}

footer{
  background:#000;
  color:#fff;
  padding:30px;
  text-align:center;
}

/* WHATSAPP BOTÃO COM IMAGEM */
.whatsapp{
  position:fixed;
  bottom:20px;
  right:20px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  z-index:19;
  box-shadow:0 6px 18px rgba(0,0,0,.3);
  transition:.3s;
}

.whatsapp:hover{
  transform:scale(1.05);
}

.whatsapp img{
  width:28px;
  height:28px;
}

/* MOBILE */
@media(max-width:768px){
  header{
    justify-content:center;
    gap:10px;
  }

  nav a{
    margin:0 10px;
  }

  .hero{
    min-height:90vh;
  }

  .hero-content{
    grid-template-columns:1fr;
    text-align:center;
  }

  .whatsapp{
    width:46px;
    height:46px;
  }

  .whatsapp img{
    width:24px;
    height:24px;
  }
}

@media(max-width:480px){
  .hero-text h1{
    font-size:22px;
  }
}

/* =========================
   VARIÁVEIS – GESTÃO FIDELIDADE
========================= */
:root{
  --preto: #000000;
  --branco: #ffffff;
  --verde: #1fa463;
  --cinza-escuro: #121212;
  --cinza-input: #1e1e1e;
  --cinza-borda: #2a2a2a;
  --erro: #e53935;
}

/* =========================
   RESET
========================= */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   FORMULÁRIO (TRANSLÚCIDO)
========================= */
#loginForm{
  width: 100%;
  max-width: 380px;
  margin: auto;
  padding: 26px;

  /* GLASS EFFECT */
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* =========================
   CAMPOS
========================= */
.field{
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label{
  font-size: 14px;
  font-weight: 600;
  color: var(--branco);
  margin-bottom: 6px;
}

/* =========================
   INPUT BOX
========================= */
.input-box{
  position: relative;
}

.input-box input{
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--cinza-borda);
  background: rgba(30,30,30,0.75);
  color: var(--branco);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-box input::placeholder{
  color: #9e9e9e;
}

.input-box input:focus{
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 2px rgba(31,164,99,0.35);
}

/* =========================
   TOGGLE SENHA
========================= */
.password-box input{
  padding-right: 42px;
}

.toggle-password{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.toggle-password:hover{
  opacity: 1;
}

/* =========================
   VALIDAÇÃO VISUAL
========================= */
input.error{
  border-color: var(--erro);
  animation: shake 0.35s;
}

input.success{
  border-color: var(--verde);
  box-shadow: 0 0 8px rgba(31,164,99,0.6);
}

/* =========================
   ANIMAÇÃO ERRO
========================= */
@keyframes shake{
  0%{transform: translateX(0);}
  25%{transform: translateX(-4px);}
  50%{transform: translateX(4px);}
  75%{transform: translateX(-4px);}
  100%{transform: translateX(0);}
}

/* =========================
   AÇÕES / BOTÕES
========================= */
.actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.btn{
  height: 46px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

/* BOTÃO ENTRAR */
.btn-primary{
  background: var(--verde);
  color: var(--branco);
}

.btn-primary:hover{
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(31,164,99,0.5);
}

/* BOTÃO ESQUECI SENHA */
.btn-secondary{
  background: transparent;
  color: var(--branco);
  border: 1px solid var(--cinza-borda);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.05);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 480px){
  #loginForm{
    padding: 22px;
  }
}

#msg{
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.msg-error{
  background: rgba(229,57,53,0.15);
  color: #ff6b6b;
  border: 1px solid rgba(229,57,53,0.4);
}

.msg-success{
  background: rgba(31,164,99,0.15);
  color: #4caf50;
  border: 1px solid rgba(31,164,99,0.4);
}

@keyframes fadeIn{
  from{opacity:0; transform: translateY(-4px);}
  to{opacity:1; transform: translateY(0);}
}

/* =========================
   MOBILE – LABELS À ESQUERDA
========================= */
@media (max-width: 768px){

  #loginForm label{
    text-align: left;
    width: 100%;
    display: block;
  }

}

/* =========================
   ANIMAÇÃO DO ÍCONE
========================= */
.toggle-password.pulse{
  animation: pulse 0.25s ease;
}

@keyframes pulse{
  0%   { transform: translateY(-50%) scale(1); }
  50%  { transform: translateY(-50%) scale(1.25); }
  100% { transform: translateY(-50%) scale(1); }
}

/* =========================
   APROXIMAR FORM DO HEADER
========================= */
.hero{
  align-items: flex-start;
}

.hero-content{
  margin-top: 1px; /* diminua se quiser mais perto */
}


/* HERO */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* IMAGEM DE FUNDO */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
}

/* CONTEÚDO */
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 5vw, 30px);
  gap: 20px;
}

/* CONTEÚDO LATERAL */
.hero-text,
#loginForm {
  max-width: 480px;
  width: 100%;
}

/* ==========================
   MOBILE
========================== */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* ==========================
   MOBILE PEQUENO
========================== */
@media (max-width: 480px) {
  .hero {
    min-height: 100dvh; /* corrige bug de barra do celular */
  }

  .hero-content {
    padding: 20px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }
}
