/* crm.css — crm.cometo.pl */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59,130,246,.12);
  --bg: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
  --error-bg: #fef2f2; --error-text: #dc2626; --error-border: #fecaca;
  --success-bg: #f0fdf4; --success-text: #16a34a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── LANDING ──────────────────────────────────── */
.crm-landing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.crm-landing-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.crm-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.crm-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.crm-brand h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
}

.dot { color: var(--accent); }

.crm-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  line-height: 1.6;
}

.crm-features-list {
  list-style: none;
  margin-bottom: 32px;
}

.crm-features-list li {
  padding: 8px 0;
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-features-list li i {
  color: var(--accent);
  font-size: 1rem;
}

.crm-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, color .15s;
}

.btn:active { transform: scale(.98); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-full { width: 100%; }

/* ── CRM PREVIEW CARD ─────────────────────────── */
.crm-preview-card {
  background: var(--primary-light);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.cpv-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,.2);
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

.cpv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.cpv-header span { margin-left: auto; }

.cpv-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 200px;
}

.cpv-sidebar {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,.06);
}

.cpv-tile {
  padding: 10px;
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpv-tile i { font-size: .9rem; }
.cpv-tile span { font-size: 1.1rem; font-weight: 800; }

.cpv-green { background: rgba(16,185,129,.2); color: #34d399; }
.cpv-orange { background: rgba(245,158,11,.2); color: #fbbf24; }
.cpv-blue { background: rgba(59,130,246,.2); color: #60a5fa; }

.cpv-main { padding: 12px; }

.cpv-search {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cpv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: background .15s;
}

.cpv-row:hover { background: rgba(255,255,255,.04); }

.cpv-company {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

.cpv-status {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

.st-new { background: rgba(59,130,246,.2); color: #60a5fa; }
.st-progress { background: rgba(245,158,11,.2); color: #fbbf24; }
.st-done { background: rgba(16,185,129,.2); color: #34d399; }

/* ── AUTH (reuse from cometo.pl) ──────────────── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.auth-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.auth-brand-sub {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.auth-box h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-box .sub {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 22px;
  line-height: 1.5;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-control::placeholder { color: var(--text-light); }

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

/* Social buttons */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity .15s, transform .1s;
}

.btn-social:active { transform: scale(.98); }
.btn-social:hover { opacity: .92; }
.btn-facebook { background: #1877F2; color: #fff; }
.btn-facebook:hover { color: #fff; }
.btn-google { background: #fff; color: #444; border: 1.5px solid var(--border); }
.btn-google:hover { color: #222; background: #f8fafc; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sms-digits {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.sms-digits input {
  width: 100%;
  aspect-ratio: 1;
  max-width: 48px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.sms-digits input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; margin-bottom: 18px; line-height: 1.5; }
.alert-error { background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-border); }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #bbf7d0; }

.auth-link { text-align: center; margin-top: 16px; }
.auth-link a { font-size: .82rem; color: var(--text-muted); }
.auth-link a:hover { color: var(--accent); }

.auth-legal { text-align: center; margin-top: 20px; font-size: .76rem; color: var(--text-light); line-height: 1.5; }
.auth-legal a { color: var(--text-muted); }
.auth-legal a:hover { color: var(--accent); }

.sms-info { text-align: center; font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; }
.sms-info a { color: var(--accent); }

/* ── FOOTER ───────────────────────────────────── */
.crm-footer {
  text-align: center;
  padding: 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.crm-footer a { color: rgba(255,255,255,.5); }
.crm-footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .crm-landing-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .crm-features-list { display: inline-block; text-align: left; }
  .crm-hero-cta { justify-content: center; }
  .crm-hero-visual { display: none; }
}

@media (max-width: 768px) {
  .auth-box { padding: 28px 20px; box-shadow: var(--shadow); }
  .auth-wrap { padding: 24px 12px; }
  .sms-digits input { max-width: 40px; font-size: 1.1rem; }
}
