/*
 * The web half of Markit's auth mail. ONE stylesheet for all three pages —
 * the same argument as `_shared/email-shell.ts`: a second copy of the lockup
 * is a second thing to forget to change.
 *
 * Palette is `C` from `supabase/auth-emails/build.mjs`, which is
 * `theme/tokens.ts` mono. Chrome is neutral; nothing here carries data, so
 * nothing here carries a hue (CLAUDE.md, "chrome is neutral").
 */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-muted: #52525b;
  --ink-subtle: #8a8a93;
  --on-ink: #ffffff;
  --border: #d9d9de;
  --border-subtle: #ededf0;
  --well: #f4f4f6;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--well);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
}

/* The lockup: mark and wordmark side by side, tagline beneath, one gutter —
 * `EMAIL.md` §5. The artwork is the same two public objects the mail uses,
 * reached through this site's own /branding proxy so no page on this domain
 * ever names the database. */
.lockup {
  padding: var(--gutter);
  border-bottom: 1px solid var(--border-subtle);
}
/* 🚨 The wordmark centres on the MARK, not on the text block.
 * `align-items: center` centres wordmark + gap + tagline against the mark,
 * which leaves the wordmark visibly high — the same defect reported in the
 * mail. Top-align and push the text column down by (mark - wordmark) / 2
 * instead, and let the tagline hang below the mark the way a letterhead
 * sub-line does. Keep these three numbers in step with `MARK_PX`,
 * `WORDMARK_H` and `WORDMARK_LIFT` in `auth-emails/build.mjs`. */
.lockup-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.lockup-row img.mark { height: 44px; width: auto; display: block; }
.lockup-row .lockup-text { padding-top: 11px; }
.lockup-row img.wordmark { height: 22px; width: auto; display: block; }
.tagline {
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.body { padding: var(--gutter); }

h1 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 23px;
  color: var(--ink-muted);
}
p.tight { margin-bottom: 8px; }
p.fine { font-size: 13px; line-height: 20px; color: var(--ink-subtle); }
p:last-child { margin-bottom: 0; }

/* Outlined, not filled — Outlook squares off a radius and that is far uglier
 * on a solid pill. Same decision as the mail's CTA. */
.btn {
  display: inline-block;
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 90ms linear, opacity 90ms linear;
}
.btn:active { background: var(--well); }
.btn[disabled] {
  cursor: default;
  color: var(--ink-subtle);
  border-color: var(--border);
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px; /* 16px or iOS Safari zooms the page on focus */
  font-family: inherit;
}
input[type='password']:focus {
  outline: none;
  border-color: var(--ink);
}

.note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--well);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

.footer {
  padding: 18px var(--gutter);
  border-top: 1px solid var(--border-subtle);
  background: var(--well);
  font-size: 12px;
  line-height: 19px;
  color: var(--ink-subtle);
}
.footer a { color: var(--ink-subtle); }

[hidden] { display: none !important; }
