/* -- 9Captcha Design System: Premium Enterprise Aesthetic -- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core Colors (Linear/Vercel inspired) */
  --bg-primary: #000000;
  --bg-secondary: #09090b;
  --bg-tertiary: #18181b;
  
  /* Neutral Palette */
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-950: #09090b;

  /* Accent: Custom Violet */
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-surface: rgba(139, 92, 246, 0.1);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  /* Functional */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* Spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* Transitions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-in-out);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-premium: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layered Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-glass: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 40px -10px rgba(0,0,0,0.5);
}

@keyframes beam {
  0% { transform: translateX(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 0.2; }
  100% { transform: translateX(200%) rotate(45deg); opacity: 0; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--zinc-100);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--zinc-800);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--zinc-600);
}

/* --- Layout Containers (Prevents Stretching) --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
}

.dashboard-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* --- Typography --- */
h1, h2, h3 {
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--zinc-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-secondary { color: var(--zinc-400); }
.text-sm { font-size: 0.875rem; }

/* --- Components --- */

/* Glass Card */
.glass-card {
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  transition: var(--transition-premium);
}

.glass-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.05), var(--shadow-glass);
}

/* Buttons */
.btn-primary {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  background: var(--zinc-200);
}

.btn-secondary {
  background: var(--zinc-900);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--zinc-800);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.beam-container {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.beam {
  position: absolute;
  width: 150px;
  height: 100vh;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
  animation: beam 8s infinite linear;
}

/* Inputs */
.custom-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--zinc-950);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: #fff;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.custom-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-surface);
}

/* Badges */
.badge {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.badge-purple { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border-color: rgba(139, 92, 246, 0.2); }

/* --- Navbar --- */
.navbar {
  height: 64px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Utilities */
.w-full { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.hidden { display: none !important; }