@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");

/* BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
}
#LoginDialog:hover i {
  border: 7px solid var(--clr);
  filter: drop-shadow(0 0 10px var(--clr));
}

#LoginDialog:hover input {
  filter: drop-shadow(0 0 5px white);
}
/* BACKGROUND GALAXY CON ANIMAZIONE LUMINOSA */
body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 40%, #0a0e1a, #050813 60%, #000);
  overflow: hidden;
  position: relative;
}

  /* Glow orbitante dietro ai cerchi */
  body::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient( from 0deg, #ff0057, #00ff0a, #fff172, #00e0ff, #ff0057 );
    filter: blur(180px);
    opacity: 0.1;
    animation: rotateGlow 40s linear infinite;
    z-index: 0;
  }

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* CERCHI ANIMATI PIÙ GRANDI */
.ring {
  position: relative;
  width: 650px; /* prima 500px */
  height: 650px; /* prima 500px */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transform: scale(1.05);
}

  .ring i {
    position: absolute;
    inset: -10px; /* leggera espansione esterna */
    border: 2px solid rgba(255,255,255,0.7);
    transition: 0.5s;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
  }

    .ring i:nth-child(1) {
      border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
      animation: animate 8s linear infinite, glowPulse 4s ease-in-out infinite alternate;
    }

    .ring i:nth-child(2) {
      border-radius: 41% 44% 56% 59% / 38% 62% 63% 37%;
      animation: animate 12s linear infinite reverse, glowPulse 6s ease-in-out infinite alternate;
    }

    .ring i:nth-child(3) {
      border-radius: 41% 44% 56% 59% / 38% 62% 63% 37%;
      animation: animate2 16s linear infinite, glowPulse 5s ease-in-out infinite alternate;
    }

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate2 {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes glowPulse {
  0%,100% {
    filter: drop-shadow(0 0 10px #00e0ff) drop-shadow(0 0 25px #ff0057);
  }

  50% {
    filter: drop-shadow(0 0 35px #ff0057) drop-shadow(0 0 60px #fff172);
  }
}

/* LOGIN FORM */
.login {
  position: absolute;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  border-radius: 20px;
  padding: 25px 25px 30px;
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 40px rgba(255,255,255,0.05), inset 0 0 20px rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
}

  .login h2 {
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
  }

  .login .inputBx input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    color: #fff;
    outline: none;
    font-size: 1em;
    transition: 0.3s;
  }

    .login .inputBx input:focus {
      border-color: #00e0ff;
      box-shadow: 0 0 10px #00e0ff80;
    }

    .login .inputBx input::placeholder {
      color: rgba(255, 255, 255, 0.65);
    }

    .login .inputBx input[type="submit"] {
      background: linear-gradient(45deg, #ff357a, #fff172);
      color: #111;
      font-weight: bold;
      cursor: pointer;
      border: none;
      transition: 0.4s;
    }

      .login .inputBx input[type="submit"]:hover {
        filter: brightness(1.2);
        box-shadow: 0 0 10px #ff357a, 0 0 20px #fff172;
      }

  .login .links {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 0.9em;
  }

    .login .links a {
      color: #fff;
      text-decoration: none;
      font-weight: 500;
      transition: 0.3s;
    }

      .login .links a:hover {
        text-shadow: 0 0 10px #ff357a;
      }

/* POPUP 2FA */
#Auth {
  animation: fadeInAuth 0.6s ease forwards;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.85);
  color: #fff;
  border: 2px solid #0f0;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 0 20px rgba(0,255,0,0.3);
  padding: 20px;
  text-align: center;
  z-index: 999;
}

@keyframes fadeInAuth {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
