/* AiDemandLab auth pages — shared styles. Matches dashboard.html design system. */
:root {
  --bg: #EEF2F7;
  --surface: #ffffff;
  --surface2: #F8FAFC;
  --border: #E2E8F0;
  --border2: #CBD5E1;
  --text-primary: #0F1729;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --accent-dark: #1D4ED8;
  --teal: #0891B2;
  --teal-light: #ECFEFF;
  --positive: #16A34A;
  --positive-light: #F0FDF4;
  --negative: #DC2626;
  --negative-light: #FEF2F2;
  --amber: #D97706;
  --amber-light: #FFFBEB;
  --purple: #7C3AED;
  --purple-light: #F5F3FF;
  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 50px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

.auth-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.auth-topbar-logo { display: flex; align-items: center; gap: 10px; }
.auth-topbar-logo img { height: 28px; }
.auth-topbar-logo-text {
  font-size: 16px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--text-primary);
}
.auth-topbar-link { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

.auth-shell {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--topbar-h));
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(15,23,41,0.04);
}
.auth-card-wide { max-width: 1080px; }
.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-light); color: var(--accent);
  font-size: 22px; margin-bottom: 12px;
}
.auth-card-title {
  font-size: 22px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.auth-card-sub { font-size: 13px; color: var(--text-secondary); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.auth-input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  background: var(--surface2); color: var(--text-primary);
  outline: none; transition: border-color 0.12s, background 0.12s;
}
.auth-input:focus { border-color: var(--accent); background: var(--surface); }
.auth-input::placeholder { color: var(--text-muted); }

.auth-btn {
  width: 100%; padding: 11px 14px;
  border: none; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.12s;
}
.auth-btn:hover { background: var(--accent-dark); }
.auth-btn:disabled { background: var(--text-muted); cursor: wait; }
.auth-btn-secondary {
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border);
}
.auth-btn-secondary:hover { background: var(--surface2); border-color: var(--border2); }
.auth-btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1F1F1F;
  border: 1px solid #DADCE0;
  font-size: 14px; font-weight: 500;
  width: 100%; padding: 11px 14px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: box-shadow 0.12s, background 0.12s;
}
.auth-btn-google:hover { box-shadow: 0 1px 3px rgba(60,64,67,0.16); background: #f8f9fa; }
.auth-btn-google svg { width: 18px; height: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--text-muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer-link {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: var(--text-secondary);
}

.auth-msg {
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.5;
}
.auth-msg-error { background: var(--negative-light); color: var(--negative); border: 1px solid #FCA5A5; }
.auth-msg-success { background: var(--positive-light); color: var(--positive); border: 1px solid #86EFAC; }
.auth-msg-info { background: var(--accent-light); color: var(--accent); border: 1px solid #93C5FD; }

.auth-forgot-link {
  display: block; text-align: right;
  font-size: 12px; margin-top: -6px;
}

.pricing-shell { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
.pricing-header { text-align: center; margin-bottom: 32px; }
.pricing-title {
  font-size: 32px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.pricing-sub { font-size: 15px; color: var(--text-secondary); }
.pricing-toggle {
  display: inline-flex; margin: 24px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 4px;
}
.pricing-toggle-btn {
  padding: 6px 18px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  border: none; background: transparent;
  color: var(--text-secondary); cursor: pointer;
}
.pricing-toggle-btn.active { background: var(--accent); color: #fff; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
}
.pricing-card-featured {
  border: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(37,99,235,0.10);
}
.pricing-card-tag {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card-name {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 6px;
}
.pricing-card-tagline {
  font-size: 12px; color: var(--text-muted); margin-bottom: 16px;
  min-height: 32px;
}
.pricing-card-price {
  font-size: 36px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.pricing-card-price-cycle { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-card-price-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; min-height: 16px; }
.pricing-card-features {
  margin: 20px 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.pricing-card-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary);
}
.pricing-card-features li::before {
  content: '✓'; color: var(--positive); font-weight: 700; flex-shrink: 0;
}
.pricing-card-cta { margin-top: auto; }

.account-shell { max-width: 720px; margin: 0 auto; padding: 32px 24px; }
.account-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
}
.account-section-title {
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
}
.account-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.account-row:last-child { border-bottom: none; }
.account-row-label { color: var(--text-muted); }
.account-row-value { color: var(--text-primary); font-weight: 500; }
.account-plan-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-starter { background: var(--surface2); color: var(--text-secondary); }
.plan-pro { background: var(--accent-light); color: var(--accent); }
.plan-agency { background: var(--purple-light); color: var(--purple); }

.auth-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}
