
:root {
    --primary: #10b981;
    --primary-rgb: 16, 185, 129;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --text: #ffffff;
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --card: #334155;
    --tile-border: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

:root {
  --bg: #0b0f17;
  --bg-soft: rgba(15,23,42,.55);
  --card: rgba(255,255,255,.06);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --brand-a: #6ee7b7;
  --brand-b: #a78bfa;
  --ring: rgba(110,231,183,.45);
  --shadow: 0 8px 30px rgba(0,0,0,.25);
  --blur: blur(12px);
  --tile-border: 1.3px solid rgba(255,255,255,.28);
  --field-bg: rgba(255,255,255,.06);
  --field-border: 1.4px solid rgba(255,255,255,.35);
  --field-border-focus: 1.8px solid rgba(110,231,183,.85);
  --field-ring: 0 0 0 6px rgba(110,231,183,.18);
  --progress-bg: rgba(255,255,255,.1);
  --support-bg: rgba(59, 130, 246, 0.08);
  --support-border: rgba(59, 130, 246, 0.2);
  --support-text: #3b82f6;
}

:root.light {
  --bg: #f6f7fb;
  --bg-soft: rgba(255,255,255,.78);
  --card: rgba(0,0,0,.03);
  --text: #0f172a;
  --muted: #475569;
  --brand-a: #6ee7b7;
  --brand-b: #a78bfa;
  --ring: rgba(14,165,233,.25);
  --shadow: 0 8px 30px rgba(2,6,23,.08);
  --tile-border: 1.6px solid rgba(15,23,42,.28);
  --field-bg: #fff;
  --field-border: 1.6px solid rgba(15,23,42,.35);
  --field-border-focus: 2px solid rgba(14,165,233,.7);
  --field-ring: 0 0 0 6px rgba(14,165,233,.18);
  --progress-bg: rgba(0,0,0,.1);
  --support-bg: rgba(59, 130, 246, 0.05);
  --support-border: rgba(59, 130, 246, 0.15);
  --support-text: #1d4ed8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: 
    radial-gradient(ellipse at top left, 
      rgba(110, 231, 183, 0.15) 0%, 
      transparent 50%),
    radial-gradient(ellipse at top right, 
      rgba(167, 139, 250, 0.15) 0%, 
      transparent 50%),
    radial-gradient(ellipse at bottom left, 
      rgba(110, 231, 183, 0.08) 0%, 
      transparent 50%),
    radial-gradient(ellipse at bottom right, 
      rgba(167, 139, 250, 0.08) 0%, 
      transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, #0d1220 100%);
  
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
  font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, 
      rgba(110, 231, 183, 0.05) 0%, 
      transparent 50%),
    radial-gradient(circle at 80% 20%, 
      rgba(167, 139, 250, 0.05) 0%, 
      transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 20px);
}

.glass-card {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.field {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  background: var(--field-bg);
  border: var(--field-border);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: all 0.2s ease;
}

.field:focus {
  border: var(--field-border-focus);
  box-shadow: var(--field-ring);
}

.fade {
  animation: fade .24s ease both;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

:root.light body {
  background: 
    radial-gradient(ellipse at top left, 
      rgba(110, 231, 183, 0.08) 0%, 
      transparent 50%),
    radial-gradient(ellipse at top right, 
      rgba(167, 139, 250, 0.08) 0%, 
      transparent 50%),
    radial-gradient(ellipse at bottom left, 
      rgba(110, 231, 183, 0.04) 0%, 
      transparent 50%),
    radial-gradient(ellipse at bottom right, 
      rgba(167, 139, 250, 0.04) 0%, 
      transparent 50%),
    linear-gradient(135deg, var(--bg) 0%, #f0f2f5 100%);
}

:root.light body::before {
  background: 
    radial-gradient(circle at 20% 80%, 
      rgba(110, 231, 183, 0.03) 0%, 
      transparent 50%),
    radial-gradient(circle at 80% 20%, 
      rgba(167, 139, 250, 0.03) 0%, 
      transparent 50%);
}

@media (max-width: 768px) {
  body {
    background: 
      radial-gradient(ellipse at top left, 
        rgba(110, 231, 183, 0.12) 0%, 
        transparent 60%),
      radial-gradient(ellipse at top right, 
        rgba(167, 139, 250, 0.12) 0%, 
        transparent 60%),
      linear-gradient(135deg, var(--bg) 0%, #0d1220 100%);
  }
  
  :root.light body {
    background: 
      radial-gradient(ellipse at top left, 
        rgba(110, 231, 183, 0.06) 0%, 
        transparent 60%),
      radial-gradient(ellipse at top right, 
        rgba(167, 139, 250, 0.06) 0%, 
        transparent 60%),
      linear-gradient(135deg, var(--bg) 0%, #f0f2f5 100%);
  }
}
