/* BACKFLD front page (coming soon + sign-in). Same look as backfld.com. */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9aa4ad;
  --dim: #5d666e;
  --line: rgba(255,255,255,.08);
  --edge: rgba(255,255,255,.22);
  --accent: #4B9CD3;
  --bad: #e5484d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.bf {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
/* field seen from above: yard lines + hash marks, very faint */
.bf-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(75,156,211,.10) calc(50% - .5px), rgba(75,156,211,.10) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 120px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
}
.bf-field::before, .bf-field::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 11px, var(--line) 11px 12px, transparent 12px 24px);
}
.bf-field::before { top: 36%; }
.bf-field::after { top: 64%; }

.bf header, .bf main, .bf footer { position: relative; z-index: 1; }
.bf-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.bf header .bf-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.bf-mark { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.bf-mark span, .bf h1 span { color: var(--accent); }
.bf-status {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.bf-status::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

.bf main { flex: 1; display: flex; align-items: center; }
.bf-hero { padding-top: 64px; padding-bottom: 80px; }
.bf h1 { font-size: clamp(56px, 13vw, 148px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.bf-rule { width: 56px; height: 3px; background: var(--accent); margin: 36px 0 28px; }
.bf-lede { font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; max-width: 560px; }
.bf-sub { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.bf-sub a { color: var(--fg); }

.bf footer .bf-wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}
.bf footer a, .bf-quiet { color: var(--dim); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.bf footer a:hover, .bf-quiet:hover { color: var(--muted); }

/* ── Sign-in ─────────────────────────────────────────────────────────── */
.bf-card { width: 100%; max-width: 400px; padding: 72px 0 96px; }
.bf-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.bf-card .bf-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 26px; }
.bf-field-row { display: block; margin-bottom: 14px; }
.bf-field-row > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bf-input {
  width: 100%; height: 44px; padding: 0 12px; background: #0b0d0f; color: var(--fg);
  border: 1px solid var(--edge); border-radius: 2px; font: inherit; font-size: 16px;
}
.bf-input:focus { outline: none; border-color: var(--accent); }
.bf-input.bf-code { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 22px; text-align: center; }
.bf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bf-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--edge); border-radius: 2px; background: transparent; color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.bf-btn:hover { border-color: var(--accent); background: rgba(75,156,211,.08); }
.bf-btn-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.bf-btn-primary:hover { background: #63aedf; }
.bf-btn[disabled] { opacity: .5; cursor: default; }
.bf-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bf-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.bf-or::before, .bf-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bf-msg { min-height: 20px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.bf-msg.is-bad { color: var(--bad); }
.bf-step[hidden] { display: none; }
.bf-link { color: var(--muted); font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.bf-link:hover { color: var(--fg); }

@media (max-width: 720px) {
  .bf-wrap { padding: 0 16px; }
  .bf-hero { padding-top: 40px; padding-bottom: 56px; }
  .bf-card { padding: 40px 0 64px; }
  .bf-field { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px); }
}
