@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --cyan: #00f7ff;
  --pink: #ff00d4;
  --purple: #7b00ff;
  --bg: #050816;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;

  font-family: "Rajdhani", sans-serif;

  background:
    radial-gradient(circle at top left, #30004f 0%, transparent 35%),
    radial-gradient(circle at bottom right, #001f4f 0%, transparent 35%),
    linear-gradient(135deg, #02040f, #060b1f, #0a1027);

  overflow-x: hidden;

  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;
}

/* PARTICULAS */

#particles {
  position: fixed;
  inset: 0;
  z-index: -10;
}

/* GRID */

.grid-bg {
  position: fixed;
  inset: 0;

  background:
    linear-gradient(rgba(0, 247, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 247, 255, 0.08) 1px, transparent 1px);

  background-size: 40px 40px;

  transform: perspective(700px) rotateX(75deg);

  animation: gridMove 12s linear infinite;

  opacity: 0.4;

  z-index: -9;
}

/* GLOWS */

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -8;
}

.glow1 {
  width: 300px;
  height: 300px;
  background: #ff00d4;
  left: -100px;
  top: 0;
  animation: float1 12s infinite alternate;
}

.glow2 {
  width: 350px;
  height: 350px;
  background: #00f7ff;
  right: -100px;
  bottom: 0;
  animation: float2 14s infinite alternate;
}

/* STATUS */

.system-status {
  position: fixed;

  top: 15px;
  right: 15px;

  font-family: "Orbitron", sans-serif;

  font-size: 0.8rem;

  color: #00ff88;

  letter-spacing: 2px;

  text-shadow:
    0 0 10px #00ff88,
    0 0 20px #00ff88;

  animation: blink 2s infinite;
}

/* NAVBAR */

.navbar {
  width: 100%;

  backdrop-filter: blur(20px);

  background: rgba(255, 255, 255, 0.03);

  border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.navbar-brand img {
  height: 75px;

  filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 25px var(--cyan));

  animation: pulseLogo 3s infinite;
}

/* CARD */

.login-container {
  width: 92%;
  max-width: 430px;

  margin-top: 50px;

  position: relative;

  padding: 35px 25px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(25px);

  overflow: hidden;

  transition: 0.2s;

  box-shadow:
    0 0 20px rgba(0, 247, 255, 0.15),
    0 0 60px rgba(255, 0, 212, 0.08);
}

.login-container::before {
  content: "";

  position: absolute;
  inset: -2px;

  background: linear-gradient(
    45deg,
    var(--cyan),
    var(--pink),
    var(--purple),
    var(--cyan)
  );

  background-size: 400% 400%;

  animation: borderFlow 6s linear infinite;

  z-index: -2;
}

.login-container::after {
  content: "";

  position: absolute;
  inset: 2px;

  border-radius: 28px;

  background: rgba(5, 8, 22, 0.95);

  z-index: -1;
}

/* SCANNER */

.scanner {
  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 3px;

  background: var(--cyan);

  box-shadow:
    0 0 10px var(--cyan),
    0 0 20px var(--cyan),
    0 0 40px var(--cyan);

  animation: scannerMove 4s linear infinite;
}

/* TITULO */

.cyber-title {
  text-align: center;

  margin-bottom: 30px;

  font-family: "Orbitron", sans-serif;

  letter-spacing: 4px;

  text-transform: uppercase;

  position: relative;

  text-shadow:
    0 0 10px var(--cyan),
    0 0 20px var(--cyan),
    0 0 40px var(--cyan);
}

.cyber-title::after {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );

  animation: titleScan 4s infinite;
}

/* FORM */

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

input {
  width: 100%;

  padding: 16px;

  border-radius: 15px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.05);

  color: white;

  outline: none;

  transition: 0.3s;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: var(--cyan);

  box-shadow:
    0 0 15px var(--cyan),
    0 0 25px rgba(0, 247, 255, 0.4);

  transform: translateY(-2px);
}

/* BOTON */

#boton {
  border: none;
  display:block;
  padding: 16px;

  border-radius: 15px;

  font-weight: 700;

  letter-spacing: 3px;

  color: white;

  background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));

  background-size: 300% 300%;

  animation: borderFlow 6s infinite;
  margin:0 auto;
  transition: 0.3s;
}

#boton:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 15px var(--pink),
    0 0 35px var(--cyan),
    0 0 70px rgba(0, 247, 255, 0.4);
}

.registro {
  text-align: center;

  margin-top: 10px;

  color: #cbd5e1;
}

.registro a {
  color: var(--cyan);

  text-decoration: none;

  font-weight: 700;
}

.registro a:hover {
  text-shadow:
    0 0 10px var(--cyan),
    0 0 20px var(--cyan);
}

#resultado {
  margin-top: 20px;

  text-align: center;

  color: #ff6b6b;

  font-weight: 700;
}

/* ANIMACIONES */

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scannerMove {
  0% {
    top: 0;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes pulseLogo {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes titleScan {
  from {
    left: -120%;
  }

  to {
    left: 120%;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes gridMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 40px;
  }
}

@keyframes float1 {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(200px);
  }
}

@keyframes float2 {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-200px);
  }
}
.cyber-alert {
  margin: 15px auto;
  padding: 12px;
  text-align: center;

  color: #00f7ff;

  border: 1px solid #00f7ff;

  border-radius: 10px;

  background: rgba(0, 247, 255, 0.08);

  text-shadow: 0 0 10px #00f7ff;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}
