/* ======================================
   DESIGN SYSTEM — PLATAFORMA DE CURSOS
   ====================================== */

:root {
  /* ── TOKENS SEMÂNTICOS DE MARCA (sobrescritos por tenant) ── */
  --theme-primary:       #7c3aed;   /* Cor principal do tenant */
  --theme-primary-light: #9333ea;   /* Tom claro */
  --theme-primary-dark:  #5b21b6;   /* Tom escuro */
  --theme-cta:           #f97316;   /* Cor CTA do tenant */
  --theme-cta-dark:      #ea580c;   /* CTA hover */

  /* Glows (atualizados pelo tenant_theme.blade.php) */
  --theme-glow-primary:  0 0 32px rgba(124, 58, 237, 0.4);
  --theme-glow-cta:      0 0 32px rgba(249, 115, 22, 0.4);

  /* ── Fundo azul muito escuro ── */
  --bg-base:       #07071a;
  --bg-card:       #0d0d24;
  --bg-card-hover: #14143a;
  --bg-input:      #13132e;
  --border:        rgba(255,255,255,0.07);
  --border-focus:  rgba(124,58,237,0.55);

  /* ── Cores fixas de suporte ── */
  --purple-500: #7c3aed;
  --purple-600: #6d28d9;
  --indigo-500: #4f46e5;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --text-primary:   #f0f0fa;
  --text-secondary: #8888aa;
  --text-muted:     #50507a;

  /* ── Gradientes semânticos ── */
  --gradient-brand: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  --gradient-cta:   linear-gradient(135deg, var(--theme-cta) 0%, var(--theme-cta-dark) 100%);
  --gradient-card:  linear-gradient(180deg, rgba(124,58,237,0.07) 0%, transparent 100%);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow: var(--theme-glow-primary);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all .2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.32);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--theme-glow-cta);
}
.btn-primary:active { transform: translateY(0); }

.btn-brand {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.32);
}
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--theme-glow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); }

.btn-google {
  background: #fff; color: #1f1f1f; font-weight: 500;
  border: 1px solid #e0e0e0;
}
.btn-google:hover { background: #f5f5f5; }
.btn-google img { width: 20px; height: 20px; }

.btn-full { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---- INPUTS ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input-icon { position: relative; }
.form-input-icon .form-input { padding-left: 44px; }
.form-input-icon .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}

/* ---- DIVIDER ---- */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ---- CARD ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-purple { background: rgba(124,58,237,0.15); color: #a78bfa; }
.badge-orange { background: rgba(249,115,22,0.15); color: #fb923c; }
.badge-green  { background: rgba(34,197,94,0.15);  color: #4ade80; }

/* ---- LINKS ---- */
a.link-muted { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; }
a.link-muted:hover { color: var(--text-primary); }
a.link-brand { color: #a78bfa; text-decoration: none; font-weight: 500; }
a.link-brand:hover { color: #c4b5fd; text-decoration: underline; }
a.link-cta { color: var(--theme-cta); text-decoration: none; font-weight: 500; }
a.link-cta:hover { color: #fdba74; text-decoration: underline; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a50; }
