/* css/base.css */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--primary-light);
  color: var(--text-inverse);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

/* Utility Classes */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-grow { flex-grow: 1; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-4); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }

.mt-2 { margin-top: var(--spacing-2); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none !important; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Login Background Orbs */
.login-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0515 0%, #1a0a2e 25%, #2d0a1e 50%, #1a0520 75%, #0a0f1a 100%);
  z-index: 0;
}

/* Premium grain noise overlay */
.login-bg-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform, left, top;
  mix-blend-mode: screen;
}

/* Orb 1: Crimson red */
.bg-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(220,30,60,0.7) 0%, rgba(220,30,60,0) 70%);
  top: -15%;
  left: -10%;
}

/* Orb 2: Deep magenta/purple */
.bg-orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(160,30,180,0.5) 0%, rgba(160,30,180,0) 70%);
  bottom: -20%;
  right: -10%;
}

/* Orb 3: Hot pink follower */
.bg-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,60,120,0.6) 0%, rgba(255,60,120,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Floating Particles */
.bg-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
  will-change: transform;
}

/* Particle color variations applied via JS data-color attribute */
.bg-particle[data-color="red"] {
  background-color: #ff4060;
  box-shadow: 0 0 8px rgba(255, 64, 96, 0.9), 0 0 20px rgba(255, 64, 96, 0.4);
}
.bg-particle[data-color="pink"] {
  background-color: #ff6eb4;
  box-shadow: 0 0 8px rgba(255, 110, 180, 0.9), 0 0 20px rgba(255, 110, 180, 0.4);
}
.bg-particle[data-color="purple"] {
  background-color: #b44dff;
  box-shadow: 0 0 8px rgba(180, 77, 255, 0.9), 0 0 20px rgba(180, 77, 255, 0.4);
}
.bg-particle[data-color="cyan"] {
  background-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.9), 0 0 20px rgba(0, 229, 255, 0.4);
}
.bg-particle[data-color="gold"] {
  background-color: #ffb347;
  box-shadow: 0 0 8px rgba(255, 179, 71, 0.9), 0 0 20px rgba(255, 179, 71, 0.4);
}
.bg-particle[data-color="white"] {
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.3);
}
