.login-container {
  display: flex;
  min-height: 100vh;
  font-family: 'Saira Condensed', sans-serif;
  align-items: stretch; /* fuerza que las dos columnas tengan la misma altura */
}

.login-left {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;       /* apila verticalmente */
  align-items: center;          /* centra horizontalmente */
  justify-content: flex-start;  /* contenido pegado arriba */
  padding: 30px;
  gap: 25px; /* separación uniforme entre elementos hijos */
  flex-shrink: 0; /* evita que se colapse cuando el derecho es más corto */
}

.login-left img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.login-form-table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Contenedor de pestañas */
.tabs {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.tabs .tab-header {
  display: flex;
  justify-content: flex-start;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
  padding-left: 0;
}

.tabs .tab-header li {
  list-style: none;
  padding: 10px 16px;
  cursor: pointer;
  color: #b30000;
  border-bottom: 2px solid transparent;
  font-weight: bold;
}

.tabs .tab-header li.active {
  border-color: #b30000;
}

.tab-body {
  width: 100%;
  overflow: visible; /* asegura que los formularios se muestren completos */
}

.tab-body .tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 300px; /* altura mínima para evitar saltos visuales */
}

.tab-body .tab-pane.active {
  display: block;
  opacity: 1;
}

/* Responsivo */
@media (max-width: 992px) {
  .login-container { flex-direction: column; }
  .login-right { border-left: none; }
}

/* Logo empresa */
.logo-empresa {
  max-width: 200px;
  max-height: 150px;
  height: auto;
  margin-bottom: 5px;
}

/* Banner */
.banner-login {
  max-width: 100%;
  width: 800px;
  height: auto;
  display: block;
  min-height: 200px; /* altura mínima para estabilizar */
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    align-items: center;
  }

  .login-left {
    justify-content: flex-start;
    padding-top: 20px;
    margin-bottom: 20px;
  }

  .login-right {
    width: 100%;
    padding-top: 0;
  }

  .logo-empresa {
    max-width: 120px;
    margin-bottom: 10px;
  }

  .banner-login {
    max-width: 90%;
    margin-bottom: 15px;
    min-height: 150px; /* altura mínima también en móviles */
  }

  .tab-body .tab-pane {
    min-height: 250px; /* asegura espacio estable en móviles */
  }
}

@media (min-width: 1200px) {
  .logo-empresa {
    max-width: 140px;
    margin-bottom: 30px;
  }
}

.login-right input[type="image"] {
  max-width: 100%;
  height: auto;
}