/* =====================================================================
   auth.css — Pantallas de autenticación (login, registro, validación)
   ===================================================================== */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 32px 28px;
}
.auth-card.wide { max-width: 520px; }

/* Encabezado con el logo del sitio */
.auth-logo {
  text-align: center;
  margin-bottom: 22px;
}
.auth-logo img {
  display: inline-block;
  width: 230px;
  max-width: 80%;
  height: auto;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

/* Pie de la tarjeta (ligas secundarias) */
.auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* Liga "recordar"/"olvidé" en una fila */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
}
.checkline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.checkline input { width: auto; }
.checkline-block { display: flex; margin-bottom: 14px; }

/* Indicador de pasos (registro) */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.steps .step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.steps .dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #eef1f6;
  color: var(--muted);
  font-size: 13px;
}
.steps .step.active .dot { background: var(--brand); color: #fff; }
.steps .step.active { color: var(--ink); }
.steps .bar { width: 28px; height: 2px; background: var(--line); }

/* Estado de carga centrado (validar.html) */
.auth-loading {
  text-align: center;
  padding: 24px 0;
  color: var(--muted);
}
.auth-loading .spinner { width: 26px; height: 26px; border-width: 3px; margin-bottom: 10px; }

/* Bloque de éxito (cuenta registrada / concluida) */
.auth-success {
  text-align: center;
}
.auth-success .check {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid; place-items: center;
  font-size: 30px;
  font-weight: 700;
}

/* Responsivo */
@media (max-width: 480px) {
  .auth-card { padding: 24px 20px 22px; }
  .auth-logo img { width: 190px; }
}
