/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #00ffff;
  --primary-color-rgb: 0, 255, 255;
  --secondary-color: #0080ff;
  --accent-color: #EA8008;
  --accent-color-rgb: 234, 128, 8;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
  transition: all 0.3s ease;
}

.theme-switcher:hover {
  box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5);
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
}

.theme-option.cyan {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.theme-option.orange {
  background: linear-gradient(135deg, #EA8008, #ff6b35);
  box-shadow: 0 0 15px rgba(234, 128, 8, 0.5);
}

.theme-option.active {
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 25px currentColor;
}

.theme-option:hover {
  transform: scale(1.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: #ffffff;
}

/* Cyberpunk Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: cyberpunkGlow 8s ease-in-out infinite alternate;
}

@keyframes cyberpunkGlow {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Grid Background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(var(--primary-color-rgb), 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 40%;
  left: 60%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Main Content */
.login-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Header Section */
.login-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 1s ease-out;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.logo-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(var(--primary-color-rgb), 0.6);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: logoShine 3s linear infinite;
}

@keyframes logoShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.logo-icon i {
  font-size: 3rem;
  color: #000000;
  z-index: 1;
}

.login-header h1 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.8);
  margin: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

/* Login Box */
.login-box {
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  padding: 50px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out 0.3s both;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.login-form h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.login-form h2 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px var(--primary-color); }
  to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

.login-description {
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Login Options */
.login-options {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px 30px;
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-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;
}

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

.discord-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000000;
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.4);
  border: 2px solid rgba(var(--primary-color-rgb), 0.5);
}

.discord-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(var(--primary-color-rgb), 0.6);
  background: linear-gradient(135deg, #00cccc, #0066cc);
}

.guest-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.guest-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 255, 255, 0.2);
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 30px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.divider span {
  background: rgba(20, 20, 40, 0.95);
  padding: 0 20px;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 30px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(var(--primary-color-rgb), 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.5);
}

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

.loading-state p {
  color: #cccccc;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

/* Error State */
.error-state {
  text-align: center;
  padding: 30px;
  background: rgba(255, 71, 87, 0.1);
  border-radius: 15px;
  border: 2px solid rgba(255, 71, 87, 0.3);
  backdrop-filter: blur(10px);
}

.error-state i {
  color: #ff4757;
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.error-state p {
  color: #ff6b7a;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.retry-btn {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
  background: linear-gradient(135deg, #ff3742, #ff5a6b);
}

/* Features Section */
.features-section {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.features-section h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.features-section h3 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(20, 20, 40, 0.8);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(var(--primary-color-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 4s linear infinite;
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(20, 20, 40, 0.9);
  box-shadow: 0 20px 60px rgba(var(--primary-color-rgb), 0.3);
  border-color: rgba(var(--primary-color-rgb), 0.5);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.feature-card h4 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

/* Footer */
.login-footer {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.login-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.login-footer i {
  color: var(--primary-color);
  animation: pulse 2s infinite;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal {
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(var(--primary-color-rgb), 0.3);
  padding: 40px;
  max-width: 550px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 2px solid rgba(var(--primary-color-rgb), 0.3);
  animation: modalSlideIn 0.4s ease-out;
  position: relative;
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #ff00ff, var(--primary-color));
  animation: borderGlow 3s linear infinite;
}

.modal h3 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal h3 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.modal-content {
  margin-bottom: 30px;
}

.modal-content p {
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

.modal-content h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 25px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-content h4 i {
  color: var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.modal-content ul {
  list-style: none;
  padding-left: 0;
}

.modal-content li {
  color: #cccccc;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

.modal-content li i {
  color: var(--primary-color);
  font-size: 0.9rem;
  animation: pulse 2s infinite;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 14px 25px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-btn.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #000000;
  box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.3);
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-color-rgb), 0.5);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-content {
    padding: 15px;
  }
  
  .login-header h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .login-box {
    padding: 35px 25px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modal {
    padding: 30px;
    margin: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .login-header h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .login-box {
    padding: 30px 20px;
  }
  
  .login-btn {
    padding: 16px 25px;
    font-size: 1.1rem;
  }
  
  .feature-card {
    padding: 25px 20px;
  }
  
  .modal {
    padding: 25px 20px;
  }
} 