/* ============================================
   LOGIN & SIGNUP PAGES - BLACK & GOLD THEME
   ============================================ */

/* Auth Container - Full Screen Background */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 30% 10%, #0a0a0a 0%, #050505 100%);
  position: relative;
  overflow: hidden;
}

/* Animated Background Effect */
.auth-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  animation: rotateBg 20s linear infinite;
  z-index: 0;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 3D Auth Card */
.auth-card {
  background: linear-gradient(145deg, #121212, #0a0a0a);
  border-radius: 48px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  box-shadow:
    25px 25px 50px rgba(0, 0, 0, 0.8),
    -10px -10px 20px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    30px 30px 55px rgba(0, 0, 0, 0.9),
    -12px -12px 25px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Logo Section */
.auth-logo {
  text-align: center;
  margin-bottom: 35px;
}

.auth-logo i {
  font-size: 3.5rem;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  }
}

.auth-logo h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 10px;
  background: linear-gradient(135deg, #f5e7a3 0%, #d4af37 50%, #b8960c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.auth-logo p {
  color: #888;
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 500;
}

/* Form Labels */
.auth-card .form-label {
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* 3D Input Fields */
.auth-input {
  background: linear-gradient(145deg, #1a1a1a, #111111);
  border: none;
  border-radius: 20px;
  padding: 14px 18px;
  width: 100%;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.5),
    inset -3px -3px 8px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(212, 175, 55, 0.1);
}

.auth-input:focus {
  outline: none;
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.5),
    inset -3px -3px 8px rgba(255, 255, 255, 0.03),
    0 0 0 2px #d4af37;
  color: #ffffff;
}

.auth-input::placeholder {
  color: #555;
  font-weight: 400;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #d4af37;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.toggle-password:hover {
  color: #f5e7a3;
  transform: translateY(-50%) scale(1.1);
}

/* Checkbox Styling */
.auth-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
  cursor: pointer;
}

/* Remember Me & Forgot Password */
.auth-card .d-flex a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-card .d-flex a:hover {
  text-decoration: underline;
  color: #f5e7a3;
}

/* 3D Button */
.auth-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
  border: none;
  border-radius: 40px;
  padding: 14px;
  width: 100%;
  font-weight: 700;
  font-size: 1rem;
  color: #0a0a0a;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.auth-btn:hover::before {
  left: 100%;
}

.auth-btn:active {
  transform: translateY(2px);
}

/* Footer Links */
.auth-footer {
  text-align: center;
  margin-top: 25px;
  color: #888;
  font-size: 0.9rem;
}

.auth-footer a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #f5e7a3;
}

/* ========== SIGNUP PAGE SPECIFIC STYLES ========== */

/* Password Strength Meter */
.strength-meter {
  height: 4px;
  background: #2a2a2a;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

.strength-meter span {
  display: block;
  height: 100%;
  width: 0%;
  transition:
    width 0.3s ease,
    background 0.3s ease;
  border-radius: 4px;
}

#strengthText {
  font-size: 0.7rem;
  margin-top: 6px;
  display: block;
  color: #888;
}

/* Row Gap for Signup Form */
.auth-card .row.g-3 {
  margin-bottom: 5px;
}

/* Terms Checkbox Link */
.auth-card a[style*="color: #d4af37"] {
  color: #d4af37 !important;
  text-decoration: none;
}

.auth-card a[style*="color: #d4af37"]:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 25px;
    border-radius: 36px;
  }

  .auth-logo h2 {
    font-size: 2rem;
  }

  .auth-logo i {
    font-size: 2.8rem;
  }

  .auth-input {
    padding: 12px 16px;
  }

  .auth-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .social-btn {
    padding: 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 25px 20px;
  }

  .auth-logo h2 {
    font-size: 1.8rem;
  }
}

/* Animation for Form Elements */
.auth-input,
.auth-btn,
.social-btn {
  animation: fadeInUp 0.5s ease backwards;
}

.auth-input:nth-child(1) {
  animation-delay: 0.1s;
}
.auth-input:nth-child(2) {
  animation-delay: 0.2s;
}
.auth-btn {
  animation-delay: 0.3s;
}
.social-btn:nth-child(1) {
  animation-delay: 0.4s;
}
.social-btn:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error State for Inputs */
.auth-input.error {
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.5),
    inset -3px -3px 8px rgba(255, 255, 255, 0.03),
    0 0 0 2px #ff4444;
}

/* Success State for Inputs */
.auth-input.success {
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.5),
    inset -3px -3px 8px rgba(255, 255, 255, 0.03),
    0 0 0 2px #44ff44;
}

/* Loading State for Button */
.auth-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.auth-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  right: 20px;
  margin-top: -10px;
  border: 2px solid #0a0a0a;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
