/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(to bottom, #0a0a0f 0%, #1a1a2e 100%);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  color: #ffffff;
}

/* Simple Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 40%, rgba(120, 115, 245, 0.15), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 110, 196, 0.1), transparent 50%);
  animation: softPulse 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes softPulse {
  0%, 100% { 
    opacity: 0.5;
  }
  50% { 
    opacity: 0.8;
  }
}

.auth-wrapper {
  position: relative;
  z-index: 1;
}

/* Back Button */
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-family: 'Quantico', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a1a1ff;
  text-decoration: none;
  border: 1px solid rgba(161, 161, 255, 0.3);
  border-radius: 8px;
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  z-index: 10; /* Ensure it’s clickable */
}

.back-btn svg {
  margin-right: 8px;
}

.back-btn:hover {
  color: #ffffff;
  border-color: #a1a1ff;
  background: rgba(161, 161, 255, 0.1);
  box-shadow: 0 0 15px rgba(161, 161, 255, 0.3);
}

/* Auth Container */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  perspective: 1000px;
}

.auth-content {
  width: 420px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2),
              inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-align: center;
  transform: translateZ(0);
  animation: fadeIn 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

.auth-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.auth-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff; /* Solid white, no gradient */
}

.auth-subtitle {
  font-family: 'Quantico', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 25px;
  border: none;
  background: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #ffffff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ff6ec4, #7873f5);
  border-radius: 2px;
}

.tab-btn:hover {
  color: #ffffff;
}

/* Forms */
.auth-form {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.auth-form.active {
  display: flex;
}

/* ... (keep all previous styles unchanged until .avatar-section) ... */

/* Avatar Section */
.avatar-section {
  display: flex;
  justify-content: center; /* Center horizontally */
  margin-bottom: 20px;
}

.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.avatar-wrapper:hover {
  border-color: #7873f5;
  box-shadow: 0 0 15px rgba(120, 115, 245, 0.5);
}

.avatar-preview {
  width: 100%; /* Fill the wrapper */
  height: 100%; /* Fill the wrapper */
  object-fit: cover; /* Scale and crop to fit */
  object-position: center; /* Center the image */
  border-radius: 50%; /* Ensure the image itself is circular */
  display: block; /* Remove any inline spacing */
}

.avatar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center text perfectly */
  font-family: 'Quantico', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  pointer-events: none; /* Prevents text from blocking clicks */
  transition: opacity 0.3s ease;
}

/* Hide text when an image is uploaded */
.avatar-wrapper.uploaded .avatar-text {
  opacity: 0;
}

/* ... (keep all styles below unchanged) ... */

/* Input Fields */
.input-container {
  position: relative;
  width: 100%;
}

.input-container input {
  width: 100%;
  padding: 14px 20px;
  font-family: 'Quantico', sans-serif;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}

.input-container input:focus {
  border-color: #7873f5;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(120, 115, 245, 0.3);
}

.input-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(120, 115, 245, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.input-container input:focus + .input-glow {
  opacity: 1;
}

/* Button */
.auth-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(45deg, #ff6ec4, #7873f5);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  background: linear-gradient(45deg, #ff8ed4, #9a95ff);
  box-shadow: 0 0 20px rgba(120, 115, 245, 0.5);
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
  transition: all 0.5s ease;
}

.auth-btn:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg) scale(0.5);
}