/* ============================================================
   Probar Distribuciones — Login
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --probar-300: #5EBFF3;
  --probar-400: #2AA8EB;
  --probar-500: #1593D4;
  --probar-600: #0F77B0;
  --probar-700: #0D5F8E;
  --probar-800: #0E4A6E;
  --probar-900: #0F3651;

  --ink-100: #F1F5F9;
  --ink-200: #E2E8F0;
  --ink-300: #CBD5E1;
  --ink-500: #64748B;
  --ink-700: #334155;
  --ink-900: #0F172A;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-md: 0 10px 30px rgba(15, 54, 81, 0.10), 0 4px 10px rgba(15, 54, 81, 0.05);
  --shadow-lg: 0 24px 48px rgba(15, 54, 81, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------------- HERO (panel izquierdo) ---------------- */
.login-hero {
  flex: 1.2;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  background:
    radial-gradient(1200px 600px at 90% 110%, rgba(94, 191, 243, 0.45), transparent 60%),
    radial-gradient(800px 400px at 10% -10%, rgba(42, 168, 235, 0.35), transparent 55%),
    linear-gradient(135deg, var(--probar-800) 0%, var(--probar-900) 50%, #07273D 100%);
  overflow: hidden;
}

/* Patrón decorativo de círculos */
.login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.04) 0, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 0, transparent 2px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
  pointer-events: none;
}
.login-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(94, 191, 243, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px;
  max-width: 540px;
}

.hero-logo {
  height: 56px;
  width: auto;
  margin-bottom: 36px;
  background: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
}

.hero-content h2 {
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0;
}

.hero-features {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
}
.hero-feature i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--probar-300);
  flex-shrink: 0;
}

/* ---------------- PANEL DE LOGIN (derecha) ---------------- */
.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  position: relative;
  padding: 2rem 1.5rem;
}

.login-credits {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-500);
  opacity: 0.85;
}
.login-credits img { max-height: 24px; }
.login-credits-text { font-weight: 500; }

/* Login card */
.login-box {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-md);
}

.login-box h3 {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--ink-900);
}
.login-box .text-muted {
  color: var(--ink-500) !important;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.login-box label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
  display: block;
}

/* Input group */
.input-group {
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--ink-200);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group:focus-within {
  border-color: var(--probar-400);
  box-shadow: 0 0 0 4px rgba(42, 168, 235, 0.18);
}
.input-group-text {
  background: transparent !important;
  border: 0 !important;
  color: var(--ink-500) !important;
  padding-left: 0.95rem;
  padding-right: 0.4rem;
}

.form-control,
.input-group > input {
  height: 48px;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  font-family: inherit;
  color: var(--ink-900);
  box-shadow: none !important;
  padding-left: 0.3rem !important;
  flex: 1;
  outline: none !important;
}
.form-control::placeholder,
.input-group > input::placeholder { color: var(--ink-300); }
.form-control:focus,
.input-group > input:focus { outline: none; box-shadow: none; background: transparent; }

.password-group .btn,
.password-group .toggle-pass {
  border: 0 !important;
  background: transparent !important;
  color: var(--ink-500) !important;
  padding: 0 0.85rem;
  transition: color 0.15s ease;
}
.password-group .toggle-pass:hover { color: var(--probar-500) !important; }

/* Form check */
.form-check {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check-input {
  width: 1.05em;
  height: 1.05em;
  border: 1.5px solid var(--ink-300);
  margin: 0;
  cursor: pointer;
  background: white;
}
.form-check-input:checked {
  background-color: var(--probar-400);
  border-color: var(--probar-400);
}
.form-check-input:focus {
  border-color: var(--probar-400);
  box-shadow: 0 0 0 4px rgba(42, 168, 235, 0.2);
}
.form-check-label {
  font-size: 0.875rem;
  color: var(--ink-700);
  font-weight: 500;
  cursor: pointer;
}

/* Botón login */
.btn-login {
  background: var(--probar-400);
  color: white;
  border: 0;
  height: 48px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(42, 168, 235, 0.32);
}
.btn-login:hover {
  background: var(--probar-500);
  color: white;
  box-shadow: 0 8px 20px rgba(42, 168, 235, 0.42);
  transform: translateY(-1px);
}
.btn-login:active { transform: translateY(0); }
.btn-login:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 168, 235, 0.3);
}

/* Alertas */
.alert {
  border-radius: var(--radius-md);
  border: 0;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.alert-danger {
  background: #FBD9DD;
  color: #B92535;
  border-left: 3px solid #DC2D3F;
}

/* Brand mark sobre el form (mobile) */
.login-panel-brand {
  display: none;
  text-align: center;
  margin-bottom: 1.5rem;
}
.login-panel-brand img { height: 44px; }

/* Responsive */
@media (max-width: 991.98px) {
  .hero-content { padding: 60px 40px; }
  .hero-content h2 { font-size: 1.85rem; }
}

@media (max-width: 767.98px) {
  .login-wrapper { flex-direction: column; }
  .login-hero { display: none; }
  .login-panel { flex-direction: column; padding: 2rem 1rem; min-height: 100vh; }
  .login-panel-brand { display: block; }
  .login-box {
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .login-credits {
    position: static;
    margin-top: 1.5rem;
    justify-content: center;
  }
}
