/* =========================================================
   LOGIN & REGISTER ESTILO - Jansy Beat 2025
   Archivo: login_register.css
========================================================= */

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../assets/img/fondos/fondo.webp') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  color: #fff;
}

/* ===== CONTENEDOR ===== */
.container {
  background: rgba(255, 255, 255, 0.1);
  padding: 32px 28px;
  border-radius: 12px;
  border: 1px solid #ffffff;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.6s ease-out;
  backdrop-filter: blur(6px);
  margin: 40px 0;
}

/* ===== TÍTULO ===== */
h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
}

h2 i {
  color: #FFB703;
  margin-right: 8px;
}

/* ===== FORMULARIO ===== */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== INPUTS ===== */
form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #000;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  font-size: 14px;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

form input:focus {
  border-color: #FFB703;
  background: #fff;
  outline: none;
  box-shadow: 0 0 6px rgba(255, 183, 3, 0.5);
}

/* ===== CHECKBOX TÉRMINOS ===== */
.terminos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 24px;
  font-size: 14px;
  color: #ccc;
}

.terminos input[type="checkbox"] {
  accent-color: #FFB703;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}

.terminos label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  line-height: 1.4;
}

.terminos a {
  color: #FFB703;
  font-weight: 600;
  text-decoration: none;
}

.terminos a:hover {
  text-decoration: underline;
}

/* ===== BOTÓN ===== */
button {
  width: 100%;
  padding: 12px;
  background: #FFB703;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: #e0a800;
  transform: translateY(-2px);
}

button:disabled:hover {
  background: #FFB703;
  transform: none;
}

/* ===== MENSAJES ===== */
.msg {
  margin-top: 12px;
  color: #e74c3c;
  font-weight: 600;
}

/* ===== LINKS ===== */
p {
  margin-top: 14px;
  font-size: 14px;
  color: #ccc;
}

a {
  color: #FFB703;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

a.recuperar {
  color: #FFB703;
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: flex-start;
  }

  .container {
    max-width: 90%;
    padding: 28px 22px;
  }

  h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 20px;
    border-radius: 10px;
  }

  h2 {
    font-size: 18px;
  }

  form input {
    font-size: 13px;
  }

  button {
    font-size: 14px;
  }

  .terminos {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  h2 {
    font-size: 16px;
  }

  .container {
    padding: 20px 16px;
  }

  form input,
  button {
    font-size: 12px;
    padding: 10px;
  }
}

/* =========================================================
   EXTRA PRO REGISTER (Confirm + Ojito + Reglas)
========================================================= */

/* Contenedor password */
.pass-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 14px;
}

.pass-wrap input {
  width: 100%;
  padding-right: 46px;
  margin-bottom: 0;
}

/* 🔥 FIX DEFINITIVO OJITO */
.toggle-pass {
  all: unset;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  color: #FFB703;
  font-size: 18px;
}

.toggle-pass i {
  pointer-events: none;
}

.toggle-pass:hover {
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.5));
}

/* ✅ Reglas password (TU PEDIDO) */
.rules {
  width: 100%;
  text-align: left;
  margin: 6px 0 14px;
  font-size: 13px;
  color: #fff;       /* ✅ blancas */
  line-height: 1.4;
}

.rule {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  color: #fff;       /* ✅ por defecto blanco */
}

.rule i {
  width: 16px;
  text-align: center;
}

/* ✅ Cumple: texto dorado + check verde */
.rule.ok {
  color: #FFB703;    /* ✅ dorado */
}
.rule.ok i {
  color: #37d67a;    /* ✅ check verde */
}

/* ✅ No cumple: texto blanco + X rojo */
.rule.bad {
  color: #fff;       /* ✅ blanco */
}
.rule.bad i {
  color: #ff6b6b;    /* ✅ X rojo */
}

/* Hint */
.hint {
  width: 100%;
  margin: -4px 0 12px;
  font-size: 13px;
  color: #ff6b6b;
  display: none;
}

/* Botón bloqueado */
.btn-disabled {
  opacity: 0.65;
  pointer-events: none;
  transform: none !important;
}

/* ===== BOTÓN REENVIAR EMAIL (si usas botón en otras pantallas) ===== */
.btn-resend{
  background: transparent;
  border: none;
  color: #FFB703;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  opacity: .9;
}

.btn-resend:disabled{
  cursor: not-allowed;
  opacity: .55;
  text-decoration: none;
}

/* Responsive ojito */
@media (max-width: 480px) {
  .toggle-pass {
    font-size: 16px;
    right: 8px;
  }
}

/* ===== FIX FINAL OJITO CUADRADO ===== */
.toggle-pass{
  -webkit-appearance: none;
  appearance: none;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  border-radius: 8px;
}

/* Evita que agarre estilos del hover global de button */
.toggle-pass:hover{
  background: transparent !important;
  transform: translateY(-50%) !important;
}

/* ===== FIX ESPACIO TÉRMINOS ===== */
.terminos label {
  display: flex;          /* en vez de inline-flex */
  align-items: center;
  gap: 6px;               /* controla el espacio real */
  flex-wrap: wrap;        /* evita que se rompa en mobile */
}

/* separa el link del texto */
.terminos a {
  margin-left: 4px;
}

/* =========================================================
   ✅ NECESARIO PARA "REENVIAR" COMO TEXTO + CONTADOR (NUEVO)
   (solo lo necesario, no rompe nada)
========================================================= */

.resend-row{
  margin-top: 10px;
  text-align: center;
}

/* Link simple (texto) */
.resend-link{
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease, opacity .2s ease;
}

/* hover: dorado (no blanco) */
.resend-link:hover{
  color: #FFB703;
  text-decoration: none; /* lo dejamos clean */
}

/* cuando está deshabilitado */
.resend-link.is-disabled{
  pointer-events: none;
  opacity: .55;
}

/* el contador que no "salte" de ancho */
.resend-link #countdown{
  display: inline-block;
  min-width: 20px;
  text-align: right;
}
