:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --danger: #ef4444;
  --ok: #22c55e;
  --border: #2d3a4f;
  --radius: 8px;
  --font: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); }
.muted { color: var(--muted); }

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.page-marketing .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
}

label { display: block; margin-bottom: 1rem; }
input, select, textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--danger); }

.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.flash-ok { background: rgba(34,197,94,0.15); border: 1px solid var(--ok); }
.flash-err { background: rgba(239,68,68,0.15); border: 1px solid var(--danger); }

.log {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.log-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.log-link:hover {
  text-decoration-thickness: 2px;
}

.log-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.log-image-thumb {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.log-image-thumb:hover {
  border-color: var(--accent);
}

.log-image-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.screenshot-panel {
  margin: 2rem 0;
}

.job-log-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.status-success { color: var(--ok); }
.status-failed { color: var(--danger); }
.status-running { color: var(--accent); }
.status-queued { color: var(--muted); font-style: italic; }
.status-cancelled { color: var(--muted); }

.screenshot {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
