/* ==================== LOGIN NAOSA ==================== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

/* === HERO CON VIDEO === */
.login-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* VIDEO */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* === CARD LOGIN === */
.login-card {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  width: 45vh;
  height: 55vh;

  /* 🎨 Fondo blanco translúcido difuminado */
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(0, 96, 156, 0.25);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.4s ease;
}

/* === LOGO === */
.login-logo {
  width: 13vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.4rem;
  z-index: 15;
}
.login-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 96, 156, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.login-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(0, 96, 156, 0.9));
}

/* === FORMULARIO === */
.login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1.2rem;
  margin-top: 0.8rem;
  z-index: 20;
}

.login-form input {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid rgba(0, 96, 156, 0.8);
  background: transparent;
  color: #00324f;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.login-form input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
.login-form input:focus {
  border-color: #004b70;
}

/* === BOTÓN === */
.login-form button {
  margin-top: 1.2rem;
  background: #00609c;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 96, 156, 0.45);
  z-index: 25;
}
.login-form button:hover {
  background: #004b70;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 96, 156, 0.6);
}

/* === TEXTO INFERIOR === */
.login-bottom-text {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #004b70;
  text-transform: uppercase;
  opacity: 0.9;
  z-index: 30;
}

/* === EFECTO DE BORDE === */
.login-border {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 96, 156, 0.2);
  opacity: 0;
  transform: rotate(10deg);
  transition: all 0.5s ease-in-out;
}
.login-card:hover .login-border {
  inset: 15px;
  opacity: 1;
  transform: rotate(0deg);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .login-card {
    width: 45vh;
    height: 60vh;
    padding: 1.8rem;
  }
}
@media (max-width: 480px) {
  .login-card {
    width: 80%;
    padding: 1.2rem;
  }
}

#login-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  text-align: center;
}

#login-loader img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
  animation: pulse 1.5s infinite;
  filter: drop-shadow(0 0 10px rgba(0,96,156,0.4));
}

#login-loader p {
  font-size: 1.2rem;
  color: #004b70;
  font-weight: 600;
  letter-spacing: 0.5px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .8; }
}

