/* css/paginas/login.css — estilos propios de login.html (antes estaban en un <style> dentro del HTML) */

:root {
  --morado-clr: var(--morado-light);
}

* { font-family: var(--fuente); }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--fondo-app);
}

.wrap { width: 100%; max-width: 420px; }

.logo { text-align: center; margin-bottom: 2rem; }
.logo img { height: 64px; width: auto; margin: 0 auto 6px; display: block; }
.logo-tagline { font-size: 13px; color: var(--gris-400); font-weight: 600; }

.card {
  background: var(--blanco);
  border-radius: 16px;
  border: 1px solid var(--borde-suave);
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--morado), var(--naranja));
  border-radius: 10px 10px 0 0;
  margin: -2rem -1.75rem 1.75rem;
}

.tabs {
  display: flex;
  border-bottom: 1.5px solid var(--borde-divisor);
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1; text-align: center; padding: .75rem;
  font-size: 15px; font-weight: 700; color: var(--texto-muted);
  cursor: pointer; border: none; background: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  transition: all .18s ease; font-family: var(--fuente);
}
.tab.on { color: var(--morado); border-bottom-color: var(--morado); }

.campo { margin-bottom: 1.1rem; }
.campo label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--gris-700-2); margin-bottom: 6px;
}
.campo input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--borde-input); border-radius: 10px;
  font-size: 15px; color: var(--texto-principal); background: var(--fondo-input);
  outline: none; transition: all .18s ease;
  font-family: var(--fuente);
}
.campo input:focus {
  border-color: var(--morado); background: var(--blanco);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.campo input.valido { border-color: var(--exito); }
.campo input.error  { border-color: var(--error); }
.campo .hint { font-size: 12px; color: var(--texto-muted); margin-top: 5px; }

.link-recuperar {
  font-size: 12px; color: var(--texto-muted); text-align: right;
  display: block; margin-top: 5px; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
.link-recuperar:hover { color: var(--morado); }

.btn-main {
  width: 100%; padding: 13px; background: var(--morado);
  color: var(--blanco); border: none; border-radius: 10px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; transition: all .18s ease;
  font-family: var(--fuente);
}
.btn-main:hover   { background: var(--morado-dk); }
.btn-main:active  { transform: scale(.99); }
.btn-main:disabled{ opacity: .6; cursor: not-allowed; }

.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--blanco); border-radius: 50%;
  animation: girar .6s linear infinite; display: none;
}
@keyframes girar { to { transform: rotate(360deg); } }

.alerta {
  border-radius: 10px; font-size: 13px; line-height: 1.5;
  margin-bottom: 1.1rem; display: none;
  padding: 11px 14px; font-weight: 600;
}
.alerta.error  { background:var(--error-light); border:1px solid var(--error-borde); color:var(--error-texto); display:block; }
.alerta.exito  { background:var(--exito-light); border:1px solid var(--exito-borde); color:var(--exito-texto); display:block; }
.alerta.aviso  { background:var(--aviso-light); border:1px solid var(--aviso-borde); color:var(--aviso-texto); display:block; }
.alerta ul { padding-left: 1.25rem; margin-top: 4px; }
.alerta li { margin-bottom: 2px; }

.bloqueo-box {
  background: var(--error-light); border: 1px solid var(--error-borde);
  border-radius: 10px; padding: 14px; text-align: center;
  display: none; margin-bottom: 1.1rem;
}
.bloqueo-box.visible { display: block; }
.bloqueo-icono { font-size: 28px; margin-bottom: 6px; }
.bloqueo-txt { font-size: 13px; font-weight: 700; color: var(--error-texto); margin-bottom: 4px; }
.bloqueo-sub { font-size: 12px; color: var(--error); }
.bloqueo-countdown { font-size: 20px; font-weight: 900; color: var(--error-texto); margin: 8px 0 4px; }

.intentos-aviso {
  font-size: 12px; color: var(--naranja-600-5); font-weight: 700;
  text-align: center; margin-top: 8px; display: none;
}

.fuerza-barra {
  height: 3px; border-radius: 2px; background: var(--borde-divisor);
  margin: 6px 0 4px; overflow: hidden;
}
.fuerza-fill {
  height: 100%; border-radius: 2px; width: 0;
  transition: width .3s ease, background .3s ease;
}
.fuerza-txt { font-size: 11px; font-weight: 700; }

.terminos {
  font-size: 12px; color: var(--texto-hint); text-align: center;
  margin-top: .875rem; line-height: 1.6;
}
.terminos a { color: var(--gris-400); text-decoration: underline; }

.footer-txt {
  text-align: center; font-size: 12px;
  color: var(--texto-hint); margin-top: 1.25rem;
}
.footer-txt a { color: var(--gris-400); }

/* ══ SELECTS ══ */
.campo-grupo { margin-bottom: 1.1rem; }
.campo-grupo label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--gris-700-2); margin-bottom: 6px;
}
.campo-grupo select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--borde-input); border-radius: 10px;
  font-size: 15px; color: var(--texto-principal); background: var(--fondo-input);
  outline: none; transition: all .18s ease;
  font-family: var(--fuente);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23999' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px; cursor: pointer;
}
.campo-grupo select:focus {
  border-color: var(--morado); background-color: var(--blanco);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.campo-grupo select:disabled {
  background-color: var(--fondo-hover); color: var(--texto-muted); cursor: not-allowed;
}

/* ══ MODAL ══ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.modal-visible { opacity: 1; pointer-events: all; }
.modal {
  background: var(--blanco); border-radius: 20px;
  padding: 2.25rem 2rem; max-width: 400px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.15);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.modal-overlay.modal-visible .modal { transform: translateY(0) scale(1); }
.modal-logo { height: 48px; width: auto; margin: 0 auto 1.25rem; display: block; }
.modal-icono { font-size: 52px; display: block; margin-bottom: 1rem; }
.modal h2 { font-size: 21px; font-weight: 900; color: var(--texto-principal); margin-bottom: .4rem; }
.modal-desc { font-size: 14px; color: var(--gris-500-2); line-height: 1.7; margin-bottom: 1.25rem; }
.modal-email-box {
  background: var(--morado-clr); border: 1.5px solid rgba(124,58,237,.2);
  border-radius: 10px; padding: 10px 14px; font-size: 13px;
  color: var(--morado-dk); font-weight: 800; margin-bottom: 1.5rem;
}
.modal-steps { text-align: left; margin-bottom: 1.75rem; border-top: 1px solid var(--fondo-hover); padding-top: 1.25rem; }
.modal-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: .75rem; }
.modal-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--morado); color: var(--blanco); font-size: 11px;
  font-weight: 800; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.modal-step-txt { font-size: 13px; color: var(--texto-secundario); line-height: 1.5; }
.modal-step-txt strong { color: var(--gris-800-2); }
.btn-modal {
  width: 100%; padding: 13px; background: var(--morado);
  color: var(--blanco); border: none; border-radius: 10px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: var(--fuente); transition: background .18s;
  margin-bottom: .75rem;
}
.btn-modal:hover { background: var(--morado-dk); }

/* ── Spam y reenvío — color oscuro legible */
.modal-spam {
  font-size: 12px;
  color: var(--texto-secundario);        /* oscuro — antes era var(--gris-200) y no se veía */
  font-weight: 600;
  margin-bottom: 6px;
}
.modal-spam a {
  color: var(--morado);
  font-weight: 700;
  text-decoration: underline;
}
.modal-reenvio-msg {
  font-size: 12px;
  font-weight: 600;
  min-height: 16px;
  text-align: center;
}

/* ── Estilos que antes estaban en atributos style="" del HTML */
.login-trampa-bots {
  position:absolute;
  left:-9999px;
  top:-9999px;
  opacity:0;
  pointer-events:none;
}
.login-que-es,
.footer-txt .login-que-es {
  color:var(--morado);
  font-weight:800;
  text-decoration:none;
  font-size:13px;
}

/* ── Ocultos al cargar (antes style="display:none" en el HTML); el JS los muestra */
#fReg { display: none; }
