@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Removes default blue tap highlight on mobile */
  -webkit-tap-highlight-color: transparent; 
}

/* Changes text selection highlight from default blue to orange */
::selection {
  background: rgba(249, 115, 22, 0.4);
  color: #ffffff;
}

/* Overrides the browser's default blue focus ring */
*:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

body {
  background-color: #050505;
  /* Changed the dark blue (#1a1a2e) to a deep dark orange (#2a1205) */
  background-image: radial-gradient(circle at 50% -20%, #2a1205 0%, #050505 60%);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Floating Top bar - Glassmorphism effect */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  margin: 1.5rem auto;
  width: 95%;
  max-width: 1000px;
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px; /* Pill shaped nav */
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo a {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}

.text-white { color: #ffffff; }
.text-orange { color: #f97316; }

.auth-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Rounded Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px; 
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-outline {
  color: #a1a1aa;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Orange primary button */
.btn-primary {
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
  background: #ea580c;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Discord button */
.btn-discord {
  background: #5865F2;
  color: white;
  border: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

/* Main content */
.main-content {
  flex: 1;
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.main-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.main-content p {
  color: #a1a1aa;
  font-size: 1.1rem;
}

/* Auth pages layout */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
}

.auth-card {
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-card .subtitle {
  text-align: center;
  color: #a1a1aa;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #a1a1aa;
}

.form-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

/* Orange Focus State */
.form-group input:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.form-group input::placeholder {
  color: #52525b;
}

/* Alerts */
.form-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: none;
  text-align: center;
}

.form-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: none;
  text-align: center;
}

/* Footer links */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: #71717a;
}

.auth-footer a {
  color: #f97316; /* Orange Link */
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.auth-footer a:hover {
  opacity: 0.7;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  font-weight: 500;
}

@media (max-width: 480px) {
  .top-bar {
    width: 90%;
    padding: 0.85rem 1.25rem;
  }
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  .main-content h1 {
    font-size: 2.25rem;
  }
}