@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --cyan: #00f7ff;
  --pink: #ff00d4;
  --purple: #7b00ff;
}

* {
  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);

  color: white;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow-x: hidden;
}

/* STARS */

#stars {
  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.35;

  z-index: -9;
}

/* GLOWS */

.glow {
  position: fixed;
  filter: blur(120px);
  border-radius: 50%;
  z-index: -8;
}

.glow1 {
  width: 300px;
  height: 300px;
  background: #ff00d4;
  left: -120px;
  top: 0;
  animation: float1 12s infinite alternate;
}

.glow2 {
  width: 350px;
  height: 350px;
  background: #00f7ff;
  right: -120px;
  bottom: 0;
  animation: float2 14s infinite alternate;
}

/* 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: 70px;
  filter: drop-shadow(0 0 10px var(--cyan)) drop-shadow(0 0 25px var(--cyan));
}

/* CARD */

.register-card {
  width: 92%;
  max-width: 430px;

  margin-top: 40px;

  position: relative;

  padding: 35px 25px;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.04);

  backdrop-filter: blur(25px);

  overflow: hidden;

  box-shadow: 0 0 25px rgba(0, 247, 255, 0.15);
}

/* BORDER ANIM */

.register-card::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;
}

.register-card::after {
  content: "";
  position: absolute;
  inset: 2px;

  background: rgba(5, 8, 22, 0.95);
  border-radius: 28px;

  z-index: -1;
}

/* SCANNER */

.scanner {
  position: absolute;
  left: 0;
  top: 0;

  width: 100%;
  height: 3px;

  background: var(--cyan);

  box-shadow: 0 0 15px var(--cyan);

  animation: scannerMove 4s linear infinite;
}

/* TITLE */

.cyber-title {
  text-align: center;
  margin-bottom: 25px;

  font-family: "Orbitron", sans-serif;

  letter-spacing: 4px;

  text-shadow: 0 0 15px var(--cyan);
}

/* INPUTS */

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;
}

/* PASSWORD */

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--cyan);
  font-size: 1.2rem;
}

/* STRENGTH */

.strength-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

#strengthBar {
  height: 100%;
  width: 0%;
  transition: 0.3s;
}

#strengthText {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* MATCH */

#passwordMatch {
  font-size: 0.9rem;
  min-height: 20px;
}

.match-ok {
  color: #00ff88;
}
.match-error {
  color: #ff4d6d;
}

/* BUTTON */

#boton {
  width: 100%;
  border: none;
  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;
}

/* ANIM */

@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 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);
  }
}
