body {
  border-top: 15px solid #fff; /* Línea superior roja */
  font-family: 'Arial', sans-serif;
  margin: 30px; /* margen en toda la página */
  padding: 0;
  background: #f2f2f2; /* Color liso de fondo */
  color: #333;
  min-height: 100vh;
}

/* Carrusel centrado */
.carousel-container {
  width: 80vw;
  max-width: none;
  margin: 0 auto -30px auto;
}

.carousel-img {
  width: auto;
  height: 550px; /* Ajusta la altura según tus necesidades */
  object-fit: cover;
  border-radius: 15px;
}

/* Contenedor del login y logo */
.login-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.barra-azul-vertical {
    width: 4px;
    height: 100px;
    background: #084685;
    border-radius: 4px;
}

/* Logo lateral */
#logo-form img {
  display: block;
  border-radius: 100px;
  width: 200px;
  height: 115px;
}

.login-content {
    position: relative;
    width: 250px; /* Ajusta según tu diseño */
    height: 100px; /* Igual que el logo y la barra */
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipos-texto {
    font-size: 1.7rem;
    color: #084685; /* Azul */
    font-weight: bold;
    transition: opacity 0.3s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    margin-left: 0px;
    white-space: nowrap; /* Mantiene el texto en una sola línea */
}

.login-box, .equipos-texto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Cuando el login está visible, habilita interacción */
.login-box[style*="opacity: 1"] {
    pointer-events: auto;
}

/* Cuando el texto está oculto, deshabilita interacción */
.equipos-texto[style*="opacity: 0"] {
    pointer-events: none;
}

.login-box form {
  display: flex;
  flex-direction: column;
}

.login-box input {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

.login-box button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #084685;
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-box button:hover {
  background: #cc0000;
}

#show_password {
  cursor: pointer;
  color: #ff3333;
  font-size: 0.9em;
  text-align: center;
  margin-bottom: 10px;
  display: block;
}

/* Loader */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000; /* opcional, negro de fondo */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loading-overlay.active {
  display: flex;
}

.loading-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* hace que se adapte a la pantalla sin deformarse */
}


/* Responsive */
@media (max-width: 768px) {
  body {
    margin: 15px;
  }

  .login-box {
    padding: 20px;
  }

  .login-box button {
    font-size: 1em;
  }

  #show_password {
    font-size: 0.8em;
  }

  #logo-form img {
    width: 70px;
    height: 70px;
  }

  .carousel-img {
    height: 220px;
  }
}
