@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.video-background video {
  /* Estilos base para pantallas grandes */
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  /* Ajustes para relaciones de aspecto específicas */
  @media (min-aspect-ratio: 16/9) {
    width: 100%;
    height: auto;
  }
  
  @media (max-aspect-ratio: 16/9) {
    width: auto;
    height: 100%;
  }
  
  /* Ajustes para dispositivos móviles en orientación vertical */
  @media (max-width: 768px) and (orientation: portrait) {
    width: auto;
    height: 100%;
  }
  
  /* Ajustes para tablets y móviles en orientación horizontal */
  @media (max-width: 1024px) and (orientation: landscape) {
    width: 100%;
    height: auto;
  }
}

/* Media queries para el contenedor principal en dispositivos pequeños */
@media (max-width: 768px) {
  .box {
    width: 90%;
    height: 180px;
  }
  
  .box:hover {
    width: 90%;
    height: 400px;
  }
  
  .login-title {
    font-size: 1.2em;
  }
  
  .loginBx {
    width: 90%;
    gap: 15px;
  }
  
  .corner-img {
    height: 40px;
  }
}

/* Ajustes para pantallas muy pequeñas (ej. móviles en vertical) */
@media (max-width: 480px) {
  .box {
    height: 150px;
  }
  
  .box:hover {
    height: 350px;
  }
  
  .loginBx input {
    padding: 10px 15px 10px 40px;
    font-size: 0.9em;
  }
  
  .group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .initial-text p {
    font-size: 1em;
  }
}

.corner-images {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  z-index: 1000;
  pointer-events: none; /* Permite hacer clic a través de las imágenes */
}

.corner-img {
  height: 60px; /* Ajusta este valor según necesites */
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.corner-img:hover {
  opacity: 1;
}

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.box {
  position: relative;
  width: 400px;
  height: 200px;
  background: repeating-conic-gradient(
    from var(--a),
    #ff2770 0%,
    #ff2770 5%,
    transparent 5%,
    transparent 40%,
    #ff2770 50%
  );
  filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.5));
  animation: rotating 4s linear infinite;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.box:hover {
  width: 450px;
  height: 500px;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7));
}

@keyframes rotating {
  0% { --a: 0deg; }
  100% { --a: 360deg; }
}

.box::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-conic-gradient(
    from var(--a),
    #45f3ff 0%,
    #45f3ff 5%,
    transparent 5%,
    transparent 40%,
    #45f3ff 50%
  );
  filter: drop-shadow(0 15px 50px #000);
  border-radius: 20px;
  animation: rotating 4s linear infinite;
  animation-delay: -1s;
}

.box::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: rgba(45, 45, 57, 1); /* 100% visible (sin transparencia) */
  border-radius: 15px;
  border: 8px solid rgba(37, 37, 43, 1); /* 100% visible (sin transparencia) */
}

.login {
  position: absolute;
  inset: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); /* Más transparente */
  backdrop-filter: blur(10px); /* Aumentado el blur */
  z-index: 1000;
  box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
}

.initial-text {
  position: absolute;
  color: #fff;
  font-size: 1.3em;
  text-align: center;
  z-index: 1001;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 1;
  visibility: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.initial-text p {
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.arrow-down {
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

.box:hover .initial-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
}

.login-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
}

.box:hover .login-content {
  opacity: 1;
}

.login-title {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #fff;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 25px;
  z-index: 1001;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-title i {
  color: #ff2770;
  text-shadow: 0 0 10px #ff2770, 0 0 30px #ff2770;
  margin: 0 10px;
}

.loginBx {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 25px;
  width: 80%;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.box:hover .loginBx {
  opacity: 1;
  transform: translateY(0);
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.loginBx input {
  width: 100%;
  padding: 12px 20px 12px 50px;
  outline: none;
  font-size: 1em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.loginBx input:focus {
  border-color: #45f3ff;
  background: rgba(69, 243, 255, 0.1);
}

.loginBx input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.loginBx input[type="submit"] {
  background: linear-gradient(45deg, #45f3ff, #2b8aff);
  border: none;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  padding: 12px 20px;
  letter-spacing: 1px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.loginBx input[type="submit"]:hover {
  box-shadow: 0 0 15px #45f3ff, 0 0 30px #45f3ff;
  transform: translateY(-2px);
}

.group {
  display: flex;
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}

.group a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.group a:hover {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.group a:nth-child(2) {
  color: #ff2770;
  font-weight: 600;
}

.admin-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, #ff2770, #ff5e8a);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 39, 112, 0.3);
}

.admin-fab:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 39, 112, 0.5);
}

/* Estilos específicos para login de administrador */
.login-admin .login-title i:first-child {
  color: #45f3ff;
  text-shadow: 0 0 10px #45f3ff, 0 0 30px #45f3ff;
}

.login-admin .login-title i:last-child {
  color: #ff2770;
  text-shadow: 0 0 10px #ff2770, 0 0 30px #ff2770;
}

.login-admin .loginBx input[type="submit"] {
  background: linear-gradient(45deg, #ff2770, #ff5e8a);
  margin-top: 15px;
}

.login-admin .loginBx input[type="submit"]:hover {
  box-shadow: 0 0 15px #ff2770, 0 0 30px #ff2770;
}

.error-msg {
  color: #ff2770;
  background: rgba(255, 39, 112, 0.1);
  padding: 10px 15px;
  border-radius: 30px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9em;
  border: 1px solid rgba(255, 39, 112, 0.3);
}

.user-fab {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, #45f3ff, #2b8aff);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-decoration: none;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(69, 243, 255, 0.3);
}

.user-fab:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(69, 243, 255, 0.5);
}

/* Ajustes para el texto inicial en admin */
.login-admin .initial-text p {
  color: #45f3ff;
  text-shadow: 0 0 5px #45f3ff;
}