/* ═══════════════════════════════════════════════════════
   Login — Sistema Zoonosis · Secretaría de Salud Palmira
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #F1F5F9;
}

/* ── Layout principal ─────────────────────────────── */
.contenedor {
  min-height: 100vh;
  padding: 0;
}
.fila {
  min-height: 100vh;
  margin: 0;
}

/* ── Panel derecho: imagen de campaña ───────────── */
.panel-imagen {
  position: relative;
  padding: 0;
  background-image: url("../img/page_login1.png");
  background-size: cover;
  background-position: center top;
  min-height: 100vh;
}
.panel-imagen-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

/* Badge "One System FOR ALL" */
.one-system-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(60, 60, 60, 0.62);
  backdrop-filter: blur(3px);
  padding: 18px 36px 16px;
  border-radius: 0;
}
.one-system-line1 {
  display: block;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.one-system-line2 {
  display: block;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Panel derecho: formulario ────────────────────── */
.panel-form {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  min-height: 100vh;
  padding: 40px 24px;
}

#acceso {
  width: 100%;
  max-width: 360px;
}

/* Logo Zoonosis */
#img_titulo {
  text-align: center;
  margin-bottom: 8px;
}
#img_titulo img {
  max-height: 130px;
  width: auto;
}

/* Nombre del sistema */
.login-sistema-nombre {
  text-align: center;
  margin-bottom: 28px;
}
.login-sistema-nombre h5 {
  color: #0B2545;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 2px;
  line-height: 1.3;
}
.login-sistema-nombre p {
  color: #0891B2;
  font-size: 0.82rem;
  margin: 0;
  font-weight: 600;
}

/* Separador */
.login-divider {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 2px;
}
.login-divider::before { background: linear-gradient(to right, transparent, #0891B2); }
.login-divider::after  { background: linear-gradient(to left, transparent, #D97706); }
.login-divider span {
  padding: 0 12px;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Campos de texto */
.cuadro_texto {
  width: 100%;
  border: none;
  border-bottom: 2px solid #dee2e6;
  border-radius: 0;
  outline: none;
  padding: 8px 4px 8px 32px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #0B2545;
  background: transparent;
  transition: border-color 0.2s;
}
.cuadro_texto:focus {
  border-bottom-color: #0891B2;
}
.cuadro_texto::placeholder {
  color: #adb5bd;
  font-size: 0.88rem;
}
.campo-icono {
  position: relative;
}
.campo-icono .icono {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: #0891B2;
  font-size: 1.1rem;
}

/* Alerta de error */
.alerta-login {
  background: #fff3cd;
  border-left: 4px solid #D97706;
  color: #856404;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Botón */
#btn_ingreso {
  margin-top: 32px;
  margin-bottom: 16px;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0B2545 0%, #0891B2 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
  transition: opacity 0.2s, transform 0.1s;
}
#btn_ingreso:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
#btn_ingreso:active {
  transform: translateY(0);
}

/* Pie del formulario */
.wsi {
  font-size: 0.7rem;
  width: 100%;
  text-align: center;
  color: #adb5bd;
}

/* Modal */
.modal { z-index: 1030 !important; }
.modal-backdrop { z-index: 1020 !important; }

/* ── Responsive: ocultar imagen en móvil ─────────── */
@media screen and (max-width: 991px) {
  .panel-imagen { display: none; }
  .panel-form {
    min-height: 100vh;
    padding: 32px 20px;
  }
  .panel-form .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}
