/* ExitEcom Connect — standalone stylesheet.
 *
 * The tokens and the card/button/input rules below are lifted verbatim from the
 * ExitEcom dashboard (exitecom/src/styles.css) so this service looks like part of
 * the same product. It is plain CSS on purpose: no Tailwind, no build step. If
 * the dashboard's tokens change, mirror them here. */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg-primary: #f7f8fa;
  --bg-secondary: #eff1f5;
  --bg-surface: #ffffff;

  --brand-blue: #1a56db;
  --accent: #1a56db;
  --accent-muted: #1e47c5;
  --blue-100: #ebf5ff;
  --blue-200: #bfdbfe;

  --text-primary: #0d1f3c;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  --risk-critical: #dc2626;
  --positive: #16a34a;

  --border-warm: #e2e8f0;
  --border-mid: #cbd5e1;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(13, 31, 60, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 31, 60, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.375rem;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── Layout ───────────────────────────────────────────────────────────── */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.card {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ─── Type helpers ─────────────────────────────────────────────────────── */

.lede {
  color: var(--text-secondary);
}

.muted {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.divider {
  height: 1px;
  background-color: var(--border-warm);
  border: 0;
  margin: 4px 0;
}

/* ─── Controls ─────────────────────────────────────────────────────────── */

input[type="text"] {
  width: 100%;
  background-color: #ffffff;
  border: 1.5px solid var(--border-mid);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-muted);
  text-decoration: none;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-mid);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 150ms ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Blocks ───────────────────────────────────────────────────────────── */

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.status-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  color: #ffffff;
  flex-shrink: 0;
}

.status-dot.ok {
  background-color: var(--positive);
}
.status-dot.bad {
  background-color: var(--risk-critical);
}

.key-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.key-block code {
  font-size: 0.8125rem;
  word-break: break-all;
  color: var(--text-primary);
}

.note {
  background-color: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.scopes {
  margin: 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.scopes li {
  margin-bottom: 4px;
}

.lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
