/* =====================================================================
   auth-modern.css — Unifica login/registro (Stackgo) con la identidad
   "Soft rounded" azul del backend. Cargar después de style.css en auth.php.
   Solo afecta a las pantallas de auth (scope .sign-in).
   ===================================================================== */

.sign-in {
  --a-accent: #2563eb;
  --a-accent-600: #1d4ed8;
  --a-tint: #eff6ff;
  --a-app: #f6f8fc;
  --a-field: #f5f8fa;
  /* fondo del input = sp-gray-100 del backend */
  --a-border: #e8ecf3;
  /* borde = --m-border del backend */
  --a-ink: #1e293b;
  --a-muted: #64748b;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--a-app);
}

/* Columna del formulario — como card centrada con aire.
   OJO: el form (login.php) vive en un `.row.justify-content-center > .col-xl-7`
   DENTRO de esta columna, lo que dejaba el ancho efectivo en ~257px → todo
   amontonado y "Remember Me" partido en 2 líneas. Se centra el bloque y se
   ANULA la restricción del col interno para que ocupe un ancho cómodo. */
.sign-in .row > .col-lg-6:first-child { display: flex; align-items: center; }
.sign-in .row > .col-lg-6:first-child > .row {
  width: 100%;
  max-width: 420px;
  margin: auto;
}
.sign-in .row > .col-lg-6:first-child > .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* Marca / logo */
.sign-in .navbar-brand img.logo { max-height: 40px; }
.sign-in nav.navbar { padding-left: 0; margin-bottom: 30px; }

/* Títulos */
.sign-in .section-title .sub-title {
  color: var(--a-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
}
.sign-in .section-title .title {
  color: var(--a-ink);
  font-weight: 750;
  letter-spacing: -.02em;
  font-size: 26px;
  margin-top: 8px;
  margin-bottom: 0;
}
.sign-in .section-title { margin-bottom: 26px !important; }

/* Inputs: de subrayado a rellenos redondeados */
.sign-in .form-group { position: relative; margin-bottom: 18px; }
.sign-in .form-group .focus-border { display: none !important; }
.sign-in .form-control,
.sign-in .form-select,
.sign-in textarea {
  background: var(--a-field);
  border: 1px solid var(--a-border) !important;
  border-radius: 14px !important;
  /* mismo radio moderno que el backend */
  padding: 12px 16px !important;
  height: auto !important;
  font-size: 14px;
  color: var(--a-ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sign-in .form-control:focus,
.sign-in .form-select:focus,
.sign-in textarea:focus {
  background: #fff;
  border-color: var(--a-accent) !important;
  box-shadow: 0 0 0 4px var(--a-tint) !important;
}
.sign-in .form-control::placeholder,
.sign-in textarea::placeholder { color: #94a3b8; }

/* Fila "Remember me" + "Forgot password" en UNA sola línea, con aire arriba y
   antes del botón (antes se partía y quedaba pegada). */
.sign-in form > .d-flex.justify-content-between {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 4px 0 24px !important;
}
.sign-in form > .d-flex.justify-content-between .form-group.form-check {
  margin: 0 !important;
  align-items: center;
}
.sign-in .form-check-label { white-space: nowrap; }
.sign-in form > .d-flex.justify-content-between a { margin: 0 !important; white-space: nowrap; }

/* Checkbox moderno (igual al backend): 18px, redondeado, azul al marcar */
.sign-in .form-check-input {
  width: 18px;
  height: 18px;
  margin-top: .12em;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sign-in .form-check-input:hover { border-color: #94a3b8; }
.sign-in .form-check-input:focus { border-color: var(--a-accent); box-shadow: 0 0 0 4px var(--a-tint); }
.sign-in .form-check-input:checked {
  background-color: var(--a-accent);
  border-color: var(--a-accent);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.sign-in .form-check-label { color: var(--a-ink); cursor: pointer; }

/* Enlaces */
.sign-in a { color: var(--a-accent); text-decoration: none; font-weight: 500; }
.sign-in a:hover { color: var(--a-accent-600); }

/* Botón principal — píldora + sombra de marca, igual que los btn del backend */
.sign-in .btn-primary {
  background: var(--a-accent) !important;
  border-color: var(--a-accent) !important;
  border-radius: 999px !important;
  padding: 13px !important;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .28) !important;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.sign-in .btn-primary:hover {
  background: var(--a-accent-600) !important;
  border-color: var(--a-accent-600) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35) !important;
  transform: translateY(-1px);
}
.sign-in .btn-primary:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(37, 99, 235, .28) !important; }

/* Botones sociales — misma píldora, neutros con borde */
.sign-in .btn-social {
  border-radius: 999px !important;
  border: 1px solid var(--a-border) !important;
  padding: 11px !important;
  font-weight: 600;
  align-items: center;
  transition: background .15s ease, box-shadow .15s ease;
}
.sign-in .btn-social:hover { background: #fff; box-shadow: 0 6px 20px rgba(15, 23, 42, .07); }
.sign-in hr { border-color: var(--a-border); opacity: .7; }

/* ---------------- Panel derecho: gradiente + pitch ---------------- */
.sign-in .auth-hero {
  background: linear-gradient(150deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%) !important;
  position: relative;
  overflow: hidden;
}
.sign-in .auth-hero::after,
.sign-in .auth-hero::before {
  content: ""; position: absolute; border-radius: 50%;
}
.sign-in .auth-hero::after { width: 420px; height: 420px; background: rgba(255,255,255,.10); right: -140px; bottom: -140px; }
.sign-in .auth-hero::before { width: 260px; height: 260px; background: rgba(255,255,255,.08); left: -90px; top: -70px; }
.sign-in .auth-hero .hero-inner { position: relative; z-index: 1; max-width: 480px; }

/* En español los títulos van en oración, no Title Case (el theme fuerza
   text-transform: capitalize en TODOS los h1-h6 → se veía robótico). */
.sign-in h1, .sign-in h2, .sign-in h3, .sign-in h4, .sign-in h5, .sign-in h6,
.sign-in .title, .sign-in .sub-title { text-transform: none !important; }

.sign-in .auth-hero h1 { font-weight: 750 !important; letter-spacing: -.02em; line-height: 1.15; }

/* Eyebrow (píldora de vidrio arriba del título) */
.sign-in .auth-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Fila de iconos de redes */
.sign-in .auth-hero .hero-networks {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.sign-in .auth-hero .hero-networks i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 18px;
}

/* Stats en tira de vidrio con divisores (antes flotaban sueltos) */
.sign-in .auth-hero .hero-stats {
  display: inline-flex;
  gap: 0;
  margin-top: 38px;
  padding: 16px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.sign-in .auth-hero .hero-stats > div { position: relative; padding: 2px 26px; }
.sign-in .auth-hero .hero-stats > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: rgba(255, 255, 255, .22);
}
.sign-in .auth-hero .hero-stats b { display: block; font-size: 24px; font-weight: 750; line-height: 1; }
.sign-in .auth-hero .hero-stats span { font-size: 12px; color: rgba(255,255,255,.82); }
