/* Same pinned, locally hosted font as the signed-in workspace. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --canvas: #f5f2f3;
  --surface: #ffffff;
  --surface-subtle: #f8f4f6;
  --text: #29212a;
  --muted: #665862;
  --border: #ddd6dc;
  --border-strong: #93818d;
  --accent: #ae0050;
  --accent-dark: #8a0040;
  --accent-soft: #f9e9f0;
  --success: #24734d;
  --success-soft: #e7f3ef;
  --warning: #6b4600;
  --warning-soft: #fff4db;
  --danger: #a72337;
  --danger-soft: #fff1f5;
  --focus: #ae0050;
  --nav: #30212d;
  --font: "Avenir Next", "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body, input, select, button { font-family: var(--font); }
body { margin: 0; color: var(--text); font-size: 13px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, summary, label, select { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow-x: hidden;
  padding: 56px 24px;
  background: var(--canvas);
}
.auth-atmosphere { display: none; }

.auth-card {
  position: relative;
  width: min(100%, 430px);
  overflow: hidden;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: none;

}

.auth-card--wide { width: min(100%, 900px); }
.auth-brand { display: flex; align-items: baseline; gap: 11px; margin: -24px -28px 20px; padding: 20px 28px; background: var(--nav); color: #fff; }
.auth-wordmark { font-size: 34px; font-weight: 760; letter-spacing: -2.8px; line-height: 1; }
.auth-wordmark span { color: #ed6da3; }
.auth-brandline { color: #dbcbd7; font-size: 11px; font-weight: 400; letter-spacing: .03em; }
.auth-heading { margin-bottom: 16px; }
.auth-heading h1 { max-width: 700px; margin: 3px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.3px; line-height: 1.2; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); }
.auth-eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }
.auth-message { margin: 0 0 20px; padding: 12px 14px; border-radius: 6px; font-size: 14px; }
.auth-message--error { color: var(--danger); background: var(--danger-soft); border: 1px solid rgb(159 48 47 / 12%); }
.auth-message--notice { color: var(--success); background: var(--success-soft); border: 1px solid rgb(57 122 85 / 12%); }
.auth-message--warning { color: var(--warning); background: var(--warning-soft); border: 1px solid rgb(133 87 22 / 12%); }

.auth-form { display: grid; gap: 12px; }
.auth-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 400; }
.auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.auth-form input:hover { border-color: var(--text); }
.auth-form input:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.auth-code { font-size: 22px; font-weight: 720; letter-spacing: .12em; text-align: center; }
.auth-check { grid-template-columns: 18px 1fr; align-items: start; gap: 10px !important; color: var(--text); font-weight: 500 !important; }
.auth-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.auth-check span { display: grid; gap: 2px; }
.auth-check small { color: var(--muted); font-weight: 450; line-height: 1.4; }

.auth-primary {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 3px;
  padding: 6px 12px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  box-shadow: none;
  font-weight: 500;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.auth-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.auth-primary:active { transform: translateY(0); }
.auth-primary:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; transform: none; }
.auth-primary--link { margin-top: 22px; }
.auth-fineprint { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.auth-qr { display: grid; place-items: center; margin: 2px auto 18px; }
.auth-qr img { width: 230px; max-width: 100%; height: auto; padding: 10px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.auth-manual { margin: 0 0 22px; padding: 12px 14px; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 13px; }
.auth-manual summary { color: var(--text); font-weight: 700; }
.auth-manual p { margin: 10px 0 7px; }
.auth-manual code { display: block; color: var(--text); font-weight: 730; letter-spacing: .08em; overflow-wrap: anywhere; }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; margin: 20px 0; list-style: none; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 6px; }
.recovery-grid li { padding: 8px 10px; background: #fff; border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.recovery-grid code { font-size: 13px; font-weight: 720; letter-spacing: .035em; }

@media (max-width: 560px) {
  .auth-page { place-items: start center; padding: 20px 12px; }
  .auth-card { padding: 20px; border-radius: 4px; }
  .auth-brand { margin: -20px -20px 16px; padding: 16px 20px; }
  .recovery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .auth-page { display: block; padding: 0; background: #fff; } .auth-atmosphere, .auth-primary { display: none; } .auth-card { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; } }

.auth-progress { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.auth-progress [aria-current="step"] { color: var(--accent); font-weight: 700; text-decoration: underline; }
