/* Se da diseño a register,login,reset-password,legal*/

/* =========================
   1. VARIABLES (MARCA)
========================= */
:root{
  --gold:#D4AF37;
  --gold-light:#F5D77A;
  --bg:#000;
  --card:#0b0b0b;

  --error:#ff6b6b;
  --success:#7CFC98;
}

/* =========================
   2. RESET + BASE
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:var(--bg);
  color:#fff;
  font-family:'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   3. LAYOUT BASE
========================= */
.auth-body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* =========================
   4. HEADER
========================= */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

header img{
  height:65px;
}

/* =========================
   5. BOTONES GENERALES
========================= */
.btn-outline{
  border:1px solid var(--gold);
  padding:6px 12px;
  border-radius:8px;
  color:var(--gold-light);
  text-decoration:none;
  font-size:12px;
  transition: all 0.2s ease;
}

.btn-outline:hover{
  background:rgba(212,175,55,0.1);
}

/* =========================
   6. CONTENEDOR CENTRAL
========================= */
.auth-container{
  min-height:calc(100vh - 80px);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:60px 20px;
}

/* =========================
   7. CARD PRINCIPAL
========================= */
.auth-card{
  width:100%;
  max-width:380px;

  background:var(--card);
  border:1px solid rgba(212,175,55,0.3);
  border-radius:16px;

  padding:22px;

  text-align:center;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    0 0 10px rgba(212,175,55,0.08);

  overflow:hidden;
}

/* =========================
   8. TITULOS
========================= */
.auth-card h2{
  font-size:18px;
  margin-bottom:16px;
}

/* =========================
   9. INPUTS
========================= */
.auth-card input{
  width:100%;
  box-sizing:border-box; /* 🔥 FIX */

  padding:12px;
  margin-bottom:10px;

  border-radius:10px;
  border:1px solid rgba(255,255,255,0.1);

  background:#111;
  color:#fff;

  font-size:14px;
  transition: all 0.2s ease;
}

/* 🔥 FIX DATE INPUT */
input[type="date"]{
  width:100%;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;

  color:rgba(255,255,255,0.7); /* 🔥 mejora visual */
}

/* FOCUS */
.auth-card input:focus{
  outline:none;
  border-color:var(--gold-light);
  box-shadow: 0 0 6px rgba(245,215,122,0.4);
}

/* PLACEHOLDER */
.auth-card input::placeholder{
  color:rgba(255,255,255,0.4);
}

/* LABEL FECHA */
.fecha-label{
  display:block;
  width:100%;

  font-size:12px;
  opacity:0.7;

  margin:8px 0 4px;
  text-align:left;
}

/* =========================
   10. ERRORES
========================= */
.error-text{
  font-size:11px;
  color:var(--error);
  display:block;
  margin:-6px 0 6px;
  text-align:left;
}

.auth-success{
  color:var(--success);
  font-size:13px;
  margin-top:12px;
}

.auth-error{
  color:var(--error);
  font-size:13px;
  margin-top:12px;
}

/* =========================
   11. CHECKBOX
========================= */
.auth-card label{
  display:flex;
  align-items:center;
  gap:10px;

  width:100%;

  font-size:13px;
  margin-bottom:10px;
}

/* checkbox */
.auth-card input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  flex-shrink:0;
}

/* texto */
.auth-card label span{
  line-height:1.4;
}

/* =========================
   12. CAPTCHA
========================= */
.cf-turnstile{
  display:flex;
  justify-content:center;
  margin:12px 0;
}

/* =========================
   13. BOTÓN
========================= */
.auth-card button{
  width:100%;
  padding:12px;

  border:none;
  border-radius:10px;

  background:linear-gradient(145deg,var(--gold),var(--gold-light));
  color:#000;

  font-weight:600;
  font-size:14px;

  margin-top:10px;

  cursor:pointer;
  transition: all 0.2s ease;
}

.auth-card button:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 15px rgba(212,175,55,0.4);
}

.auth-card button:active{
  transform:scale(0.97);
}

/* =========================
   14. LINKS
========================= */
.auth-links{
  margin-top:14px;
  font-size:12px;
  opacity:0.8;
}

.auth-links a{
  color:var(--gold-light);
  text-decoration:none;
}

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

/* 🔥 FIX TERMINOS Y CONDICIONES */
.auth-card a{
  color:var(--gold-light);
  text-decoration:none;
}

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

/* =========================
   15. WHATSAPP
========================= */
.whatsapp-float{
  position:fixed;
  bottom:18px;
  right:18px;

  width:60px;
  height:60px;

  z-index:9999;
}

.whatsapp-float img{
  width:100%;
  height:100%;
  object-fit:contain;

  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.whatsapp-float::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;

  animation: whatsappPulse 3s infinite;
}

@keyframes whatsappPulse{
  0%{
    transform: scale(1);
    opacity:0.4;
    box-shadow: 0 0 0 0 rgba(37,211,102,0.4);
  }
  70%{
    transform: scale(1.4);
    opacity:0;
    box-shadow: 0 0 0 12px rgba(37,211,102,0);
  }
  100%{
    transform: scale(1);
    opacity:0;
  }
}

/* =========================
   16. RESPONSIVE
========================= */
@media (min-width:769px){

  header img{
    height:80px;
  }

  .auth-card{
    max-width:420px;
    padding:28px;
  }

  .auth-card h2{
    font-size:20px;
  }

  .auth-card input{
    font-size:15px;
  }

  .auth-card button{
    font-size:15px;
  }
}