/* Transparent Glass Box (no dark background) */
.glass-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: fadeIn 1s ease-out;
}

/* Header Fully Transparent Glass */
.header-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Neon Input Animation */
.neon-input {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 12px;
  color: black;
  transition: 0.4s;
  outline: none;
  animation: glow 3s infinite ease-in-out;
}

/* Neon Glow */
@keyframes glow {
  0% {
    box-shadow: 0 0 10px #00ffe1;
  }

  50% {
    box-shadow: 0 0 25px #00ff9c;
  }

  100% {
    box-shadow: 0 0 10px #00ffe1;
  }
}

/* Input Focus */
.neon-input:focus {
  transform: scale(1.05);
  border-color: #00ffc8;
  box-shadow: 0 0 25px #00ffe7, 0 0 40px #00ffae;
}

/* Input Icons */
.input-box img {
  width: 22px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* High Visibility Glow Text */
.text-glow {
  text-shadow: 0 0 12px #000, 0 0 20px #000;
}

/* Button Glow */
.glow-btn {
  box-shadow: 0 0 12px #00ffe7;
  transition: 0.3s;
}

.glow-btn:hover {
  box-shadow: 0 0 30px #00ffe7, 0 0 50px #00ffb0;
  transform: scale(1.03);
}
/* Wrapper creates 3D space */
.bg-3d-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1800px;
  overflow: hidden;
  z-index: -20;
}

/* Image styling */
.bg-3d {
  width: 110%;
  height: 110%;
  object-fit: cover;

  /* 3D Transform Base */
  transform-style: preserve-3d;
  backface-visibility: hidden;

  /* Smooth edges */
  filter: brightness(1.05) contrast(1.05);

  /* Core animations */
  animation: cinematicZoom 20s ease-in-out infinite,
    lightPulse 14s ease-in-out infinite, atmosphere 18s ease-in-out infinite;
}

/* Cinematic zoom in/out */
@keyframes cinematicZoom {
  0% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.12) rotateY(0deg);
  }
  100% {
    transform: scale(1) rotateY(0deg);
  }
}

/* Ambient lighting */
@keyframes lightPulse {
  0% {
    filter: brightness(1) saturate(1.05);
  }
  50% {
    filter: brightness(1.18) saturate(1.15);
  }
  100% {
    filter: brightness(1) saturate(1.05);
  }
}

/* Soft atmospheric motion */
@keyframes atmosphere {
  0% {
    filter: blur(0px);
  }
  50% {
    filter: blur(2px);
  }
  100% {
    filter: blur(0px);
  }
}
/* ================= LOGIN LOADER ================= */
.login-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  background:
    radial-gradient(circle at center,
      rgba(34,211,238,0.18),
      rgba(3,15,22,0.95)
    );

  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-loader.hidden {
  display: none;
}

.loader-box {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 22px;

  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.05)
  );

  border: 1px solid rgba(56,189,248,0.35);

  box-shadow:
    0 30px 90px rgba(0,0,0,0.65),
    inset 0 0 30px rgba(56,189,248,0.2);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #e6fbff;
  animation: loaderPop 0.6s ease;
}

/* ================= SVG RING ================= */
.loader-ring {
  position: absolute;
  width: 190px;
  height: 190px;
}

.loader-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  stroke-linecap: round;
  animation: spinRing 2.6s linear infinite;
}

.loader-ring circle:nth-child(1) {
  stroke: #38bdf8;
}

.loader-ring circle:nth-child(2) {
  stroke: #4ade80;
  animation-delay: -1.2s;
}

/* ================= CENTER ICON ================= */
.loader-center {
  font-size: 3rem;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(74,222,128,0.6));
  animation: pulse 2s ease-in-out infinite;
}

/* ================= TEXT ================= */
.loader-box h3 {
  margin-top: 90px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.loader-box p {
  font-size: 0.78rem;
  opacity: 0.8;
}

/* ================= CO₂ FLOAT ================= */
.co2-login span {
  position: absolute;
  bottom: 18px;
  font-size: 0.7rem;
  color: rgba(147,197,253,0.7);
  animation: co2Rise 6s linear infinite;
}

.co2-login span:nth-child(1) { left: 25%; }
.co2-login span:nth-child(2) { left: 50%; animation-delay: 2s; }
.co2-login span:nth-child(3) { left: 75%; animation-delay: 4s; }

/* ================= ANIMATIONS ================= */
@keyframes spinRing {
  0% {
    stroke-dashoffset: 290;
    transform: rotate(0deg);
  }
  100% {
    stroke-dashoffset: 0;
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes co2Rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% { opacity: 0.9; }
  100% {
    transform: translateY(-140px);
    opacity: 0;
  }
}

@keyframes loaderPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .loader-box {
    width: 230px;
    height: 230px;
  }
  .loader-center {
    font-size: 2.7rem;
  }
}
