/* =========================
   AUTH PAGES (Login/Register)
========================= */

body {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(168, 85, 247, 0.16), transparent 72%),
    linear-gradient(180deg, #070b1a 0%, #020617 75%);
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Fira Sans', sans-serif;
}

/* 3D Scene Background */
.auth-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(30, 27, 75, 0.75) 0%, rgba(2, 6, 23, 0.92) 100%);
  perspective: 1000px;
  overflow: hidden;
}

.cube-container {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotateScene 30s linear infinite;
}

/* Floating Cubes */
.cube {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(5px);
  transform-style: preserve-3d;
  animation: floatCube 10s ease-in-out infinite;
}

.cube:nth-child(1) {
  top: 20%;
  left: 20%;
  transform: rotateX(45deg) rotateY(45deg) translateZ(-100px);
  animation-delay: 0s;
}

.cube:nth-child(2) {
  top: 60%;
  left: 80%;
  width: 120px;
  height: 120px;
  transform: rotateX(60deg) rotateY(-30deg) translateZ(50px);
  animation-delay: -2s;
}

.cube:nth-child(3) {
  top: 80%;
  left: 30%;
  width: 60px;
  height: 60px;
  transform: rotateX(-30deg) rotateY(20deg) translateZ(-50px);
  animation-delay: -5s;
}

.cube:nth-child(4) {
  top: 10%;
  left: 70%;
  width: 100px;
  height: 100px;
  transform: rotateX(10deg) rotateY(10deg) translateZ(100px);
  animation-delay: -3s;
}

.cube:nth-child(5) {
  top: 40%;
  left: 50%;
  width: 150px;
  height: 150px;
  opacity: 0.3;
  transform: rotateX(90deg) translateZ(-200px);
  animation-delay: -7s;
}

@keyframes rotateScene {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

@keyframes floatCube {

  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }

  50% {
    transform: translateY(-30px) rotateX(10deg) rotateY(10deg);
  }
}

/* Auth Container */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* Glass Card */
.login-card {
  width: 400px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.login-logo {
  width: 60px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.login-card h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Inputs */
.input-group {
  margin-bottom: 1.5rem;
  position: relative;
  display: block !important;
}

.input-group input,
.input-group .form-input {
  width: 100% !important;
  padding: 14px 16px 14px 45px !important;
  /* Space for icon */
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(0, 0, 0, 0.3) !important;
  color: white !important;
  outline: none;
  font-family: 'Fira Sans', sans-serif;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group .form-input:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 4px rgba(202, 138, 4, 0.1) !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: 0.3s;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-group input:focus+.input-icon,
.input-group .form-input:focus+.input-icon {
  color: var(--brand-accent);
}

/* Button */
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--brand-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Links */
.register-link {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.register-link a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: 0.3s;
}

.register-link a:hover {
  color: #fff;
}

@media (max-width: 480px) {
  .login-card {
    width: 90%;
    padding: 2rem;
  }
}