/* Sign in / create account — matches the "08 Auth" screens added to the
   Musketr Mockups Claude Design file. Shares the landing page's visual
   language (Instrument Sans/Serif, JetBrains Mono, blue accent) since both
   were designed together; scoped under body.is-auth so it never bleeds into
   the rest of the authenticated app. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

body.is-auth {
  --au-bg: oklch(0.97 0.006 250);
  --au-ink: oklch(0.22 0.015 250);
  --au-ink-soft: oklch(0.42 0.015 250);
  --au-ink-faint: oklch(0.58 0.02 250);
  --au-line: oklch(0.88 0.012 240);
  --au-blue: oklch(0.55 0.15 250);
  --au-blue-hover: oklch(0.45 0.16 250);
  --au-green: oklch(0.6 0.13 155);
  --au-red-line: oklch(0.86 0.06 40);
  --au-red-bg: oklch(0.99 0.012 40);
  --au-red-ink: oklch(0.35 0.02 40);
  --au-red-dot: oklch(0.68 0.16 40);
  --au-ig-bg: oklch(0.93 0.02 320); --au-ig-fg: oklch(0.45 0.1 320);
  --au-tt-bg: oklch(0.93 0.015 200); --au-tt-fg: oklch(0.42 0.08 200);
  --au-yt-bg: oklch(0.93 0.03 25); --au-yt-fg: oklch(0.48 0.13 25);
  background: var(--au-bg);
  color: var(--au-ink);
  font-family: 'Instrument Sans', Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.is-auth .flash { width: min(560px, calc(100% - 48px)); margin: 24px auto 0; }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 960px; background: #fff; border: 1px solid var(--au-line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px oklch(0.2 0.02 250 / 0.05), 0 18px 40px oklch(0.2 0.02 250 / 0.06); display: grid; grid-template-columns: 1fr 340px; }

.auth-card__form { padding: 48px 52px; display: flex; flex-direction: column; gap: 26px; }
.auth-card__brand { display: flex; align-items: center; gap: 9px; }
.auth-card__brand img { width: 30px; height: 19px; object-fit: contain; }
.auth-card__brand span { font-family: 'Instrument Serif', Georgia, serif; font-size: 21px; letter-spacing: -0.01em; color: var(--au-ink); }
.auth-card__heading { display: flex; flex-direction: column; gap: 6px; }
.auth-card__heading h1 { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 34px; letter-spacing: -0.02em; }
.auth-card__heading p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--au-ink-soft); }

.auth-alert { display: flex; align-items: flex-start; gap: 11px; border: 1.5px solid var(--au-red-line); background: var(--au-red-bg); border-radius: 10px; padding: 13px 14px; }
.auth-alert i { width: 6px; height: 6px; border-radius: 50%; background: var(--au-red-dot); margin-top: 6px; flex-shrink: 0; }
.auth-alert p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--au-red-ink); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field__row { display: flex; align-items: baseline; justify-content: space-between; }
.auth-field label { font-size: 13px; font-weight: 500; color: var(--au-ink-soft); }
.auth-forgot { font-size: 13px; font-weight: 500; color: var(--au-blue); }
.auth-field input[type="email"], .auth-field input[type="password"], .auth-field input[type="text"] { width: 100%; box-sizing: border-box; border: 1px solid var(--au-line); border-radius: 9px; padding: 13px 14px; font-size: 15px; color: var(--au-ink); background: #fff; font-family: inherit; }
.auth-field input:focus { outline: none; border-color: var(--au-blue); box-shadow: 0 0 0 3px oklch(0.55 0.15 250 / 0.12); }
.auth-field__input { position: relative; display: flex; align-items: center; }
.auth-field__input input { padding-right: 58px; }
.auth-field__toggle { position: absolute; right: 14px; background: none; border: 0; font-size: 13px; font-weight: 500; color: var(--au-blue); cursor: pointer; font-family: inherit; }
.auth-field__toggle:hover { color: var(--au-blue-hover); }
.auth-hint { margin: 0; font-size: 12px; color: var(--au-ink-faint); }

.auth-strength { display: flex; align-items: center; gap: 10px; }
.auth-strength__bars { flex: 1; display: flex; gap: 4px; }
.auth-strength__bars span { flex: 1; height: 4px; border-radius: 4px; background: oklch(0.91 0.01 250); }
.auth-strength__bars span.is-filled { background: var(--au-green); }
.auth-strength__bars span.is-filled.is-weak { background: oklch(0.62 0.18 30); }
.auth-strength__bars span.is-filled.is-fair { background: oklch(0.75 0.15 80); }
.auth-strength__label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--au-ink-faint); min-width: 3.5em; }

.auth-submit { border: 0; padding: 14px; background: var(--au-blue); border-radius: 9px; text-align: center; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; font-family: inherit; }
.auth-submit:hover { background: var(--au-blue-hover); }
.auth-switch { margin: 0; font-size: 14px; color: var(--au-ink-soft); }
.auth-switch a { color: var(--au-blue); font-weight: 600; }

.auth-card__aside { background: oklch(0.975 0.004 250); border-left: 1px solid var(--au-line); padding: 44px 32px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-aside__lede { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.32; color: var(--au-ink); }
.auth-aside__list { display: flex; flex-direction: column; gap: 11px; }
.auth-aside__item { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--au-line); border-radius: 11px; padding: 12px 13px; }
.auth-aside__mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; flex-shrink: 0; }
.auth-aside__mark--ig { background: var(--au-ig-bg); color: var(--au-ig-fg); }
.auth-aside__mark--tt { background: var(--au-tt-bg); color: var(--au-tt-fg); }
.auth-aside__mark--yt { background: var(--au-yt-bg); color: var(--au-yt-fg); }
.auth-aside__name { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--au-ink); }
.auth-aside__meta { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--au-ink-faint); }
.auth-aside__foot { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--au-ink-soft); }

.auth-steps-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--au-ink-faint); }
.auth-steps { display: flex; flex-direction: column; gap: 12px; }
.auth-step { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--au-line); border-radius: 11px; padding: 14px; }
.auth-step__num { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; flex-shrink: 0; background: oklch(0.9 0.02 250); color: oklch(0.4 0.05 250); }
.auth-step--active .auth-step__num { background: var(--au-blue); color: #fff; }
.auth-step__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--au-ink); }
.auth-step__copy { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--au-ink-soft); }

@media (max-width: 760px) {
  .auth-shell { padding: 0; }
  .auth-card { max-width: none; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; grid-template-columns: 1fr; }
  .auth-card__form { padding: 34px 22px; }
  .auth-card__aside { border-left: 0; border-top: 1px solid var(--au-line); padding: 30px 22px; }
}
