/* ============================================================
   LOGIN PRO — diseño split con fondo wallpaper + capa oscura
   ============================================================ */

:root {
  --lp-primary: #0ea5e9;
  --lp-primary-dark: #0284c7;
  --lp-accent: #ff6f00;
  --lp-text: #202124;
  --lp-text-muted: #5f6368;
  --lp-border: #e0e0e0;
  --lp-bg: #f5f7fb;
  --lp-radius: 14px;
  --lp-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
}

/* Reset del wrapper original */
body.login-pro-active,
.login-pro-active body {
  background: var(--lp-bg) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Oculta elementos antiguos (#fondP) y resetea el contenedor original */
.login-pro #fondP,
.login-pro .fnd { display: none !important; }
.login-pro .log-cont { all: unset; }

.login-pro {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  inset: 0;
  background: var(--lp-bg);
  overflow: auto;
  z-index: 1;
}

/* === Lado izquierdo: panel de formulario === */
.login-pro__panel {
  flex: 0 0 460px;
  max-width: 460px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  z-index: 2;
  box-shadow: var(--lp-shadow-lg);
}

.login-pro__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.login-pro__brand img {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}
.login-pro__brand-fallback {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lp-primary);
  letter-spacing: .5px;
}

.login-pro__welcome {
  margin-bottom: 28px;
}
.login-pro__welcome h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.login-pro__welcome p {
  font-size: 0.95rem;
  color: var(--lp-text-muted);
  margin: 0;
}

/* === Inputs flotantes === */
.login-pro .form-group {
  position: relative;
  margin-bottom: 20px;
}
.login-pro .form-group input.form-control {
  width: 100%;
  height: 54px;
  padding: 16px 16px 16px 48px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lp-text);
  background: #fafafa;
  border: 2px solid var(--lp-border);
  border-radius: 10px;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}
.login-pro .form-group input.form-control:focus {
  border-color: var(--lp-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}
.login-pro .form-group input.form-control::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}
.login-pro .form-control-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lp-text-muted);
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}
.login-pro .form-group input.form-control:focus + .form-control-icon,
.login-pro .form-group input.form-control:focus ~ .form-control-icon {
  color: var(--lp-primary);
}

/* Toggle ojo de password */
.login-pro__toggle-pwd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--lp-text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.login-pro__toggle-pwd:hover { color: var(--lp-primary); background: rgba(14,165,233,.08); }

/* Caps lock warning */
.login-pro__caps {
  display: none;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #e65100;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-top: -8px;
  margin-bottom: 16px;
}
.login-pro__caps.show { display: flex; align-items: center; gap: 6px; }

/* Botón de submit */
.login-pro .btn-flat,
.login-pro #logUser {
  width: 100% !important;
  height: 52px !important;
  margin-top: 8px !important;
  background: var(--lp-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, .35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.login-pro .btn-flat:hover,
.login-pro #logUser:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, .45) !important;
  filter: brightness(1.06) !important;
}
.login-pro .btn-flat:active,
.login-pro #logUser:active { transform: translateY(0) !important; }

.login-pro .row { margin: 0; }
.login-pro .content-fluid { padding: 0; }

.login-pro__verify {
  margin-top: 28px;
  text-align: center;
  opacity: .72;
  transition: opacity .2s ease;
}
.login-pro__verify:hover { opacity: 1; }
.login-pro__verify img { max-height: 44px; }

.login-pro__footer {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--lp-text-muted);
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.login-pro__softhard {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(14,165,233,.06);
  border: 1px solid rgba(14,165,233,.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.login-pro__softhard-label {
  font-size: 0.72rem;
  color: var(--lp-text-muted);
  font-weight: 500;
  letter-spacing: .2px;
}
.login-pro__softhard-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.login-pro__softhard-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.login-pro__softhard-link.wa {
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(37,211,102,.32);
}
.login-pro__softhard-link.wa:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(37,211,102,.42);
}
.login-pro__softhard-link.mail {
  background: #fff;
  color: var(--lp-primary) !important;
  border: 1px solid rgba(14,165,233,.25);
}
.login-pro__softhard-link.mail:hover {
  transform: translateY(-1px);
  background: var(--lp-primary);
  color: #fff !important;
  border-color: var(--lp-primary);
  box-shadow: 0 6px 14px rgba(14,165,233,.32);
}
.login-pro__softhard-link i { font-size: .9rem; }
.login-pro__softhard-brand {
  font-size: 0.7rem;
  color: var(--lp-text-muted);
  opacity: .85;
}
.login-pro__softhard-brand strong { color: var(--lp-primary); }
.login-pro__softhard-web {
  color: var(--lp-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s ease, color .15s ease;
}
.login-pro__softhard-web:hover,
.login-pro__softhard-web:focus {
  color: var(--lp-primary-dark);
  border-bottom-color: var(--lp-primary-dark);
  text-decoration: none;
}

@media (max-width: 480px) {
  .login-pro__softhard-links { flex-direction: column; width: 100%; }
  .login-pro__softhard-link { justify-content: center; }
}

/* === Lado derecho: hero con wallpaper === */
.login-pro__hero {
  flex: 1;
  position: relative;
  background-image: url('../img/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-pro__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(2, 132, 199, 0.82);
  z-index: 1;
}
.login-pro__hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 540px;
  padding: 40px 50px;
}
.login-pro__hero-content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 18px 0;
  line-height: 1.15;
  letter-spacing: -.5px;
}
.login-pro__hero-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: .9;
  margin: 0 0 32px 0;
}
.login-pro__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.login-pro__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.88rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px 14px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}
.login-pro__feature:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.14);
}
.login-pro__feature i {
  font-size: 1.1rem;
  color: #ffd54f;
  margin-top: 2px;
  flex-shrink: 0;
}
.login-pro__feature strong { display: block; font-weight: 600; margin-bottom: 2px; }
.login-pro__feature span { opacity: .85; font-size: .8rem; }

/* === Responsive === */
@media (max-width: 992px) {
  .login-pro__panel { flex: 0 0 420px; max-width: 420px; padding: 40px 44px; }
  .login-pro__hero-content { padding: 32px 36px; }
  .login-pro__hero-content h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .login-pro { flex-direction: column; position: relative; }
  .login-pro__panel {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 32px 24px;
    box-shadow: none;
    order: 2;
  }
  .login-pro__hero {
    flex: none;
    min-height: 220px;
    order: 1;
  }
  .login-pro__hero-content {
    padding: 24px 24px;
  }
  .login-pro__hero-content h2 { font-size: 1.4rem; margin-bottom: 8px; }
  .login-pro__hero-content p { font-size: 0.85rem; margin-bottom: 0; }
  .login-pro__features { display: none; }
}
@media (max-width: 480px) {
  .login-pro__panel { padding: 24px 18px; }
  .login-pro__welcome h1 { font-size: 1.4rem; }
}

/* Loading state */
.login-pro #logUser.is-loading {
  pointer-events: none;
  filter: brightness(.85) !important;
}
.login-pro #logUser.is-loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin .7s linear infinite;
  margin-left: 4px;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }
