/* ─────────────────────────────────────────────────────────────────────────
   Sign-in and invite pages — Horizon's split layout: the form on the left,
   a brand panel on the right. Shares tokens.css and components.css with the
   dashboards.
   ───────────────────────────────────────────────────────────────────────── */
/* Nothing here scrolls, so no lane is reserved — it showed as a white strip
   down the edge of the dark panel. */
html:has(body.auth) { scrollbar-gutter: auto; background: var(--surface); }
body.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 410px; }
.auth-form .mark { margin-bottom: 44px; }
.auth-form .mark img { width: 100%; max-width: 210px; height: auto; display: block; }
.auth-form h1 { font-size: 36px; line-height: 1.15; margin: 0 0 8px; font-weight: var(--fw-bold); color: var(--text); letter-spacing: -0.02em; }
.auth-form .sub { color: var(--text-3); font-size: 15px; margin-bottom: 32px; }
.auth-form label { display: block; font-size: 14px; font-weight: var(--fw-medium); color: var(--text); margin: 22px 0 10px; }
.auth-form label .req { color: var(--accent-text); }
.auth-form input {
  width: 100%; height: 50px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 0 20px; color: var(--text); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.auth-form input::placeholder { color: var(--text-3); }
.auth-form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.auth-form .hint { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }
.auth-form button[type="submit"] {
  margin-top: 32px; width: 100%; height: 54px; border: none; border-radius: 16px;
  background: var(--accent); color: var(--on-fill); font: inherit; font-size: 14px; font-weight: var(--fw-bold); cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.auth-form button[type="submit"]:hover { background: var(--accent-hover); box-shadow: var(--shadow-brand); }
.auth-form button[type="submit"]:disabled { opacity: .45; cursor: default; box-shadow: none; }
.auth-form .error { color: var(--bad); font-size: 13px; margin-top: 14px; min-height: 1em; font-weight: var(--fw-bold); }
.auth-form .who { background: var(--surface-sunken); border-radius: 16px; padding: 14px 18px; font-weight: var(--fw-bold); color: var(--text); word-break: break-all; }
.auth-form .who .role { color: var(--text-3); font-weight: var(--fw-medium); }
.auth-form .dead a { color: var(--accent-text); font-weight: var(--fw-bold); }
.auth-form .auth-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; text-align: center; }

.auth-brand-side {
  position: relative; overflow: hidden; border-bottom-left-radius: 200px;
  background: radial-gradient(700px 500px at 85% 0%, var(--brand-haze) 0%, transparent 60%), var(--dark-gradient);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px; color: var(--on-fill); text-align: center;
}
.auth-brand-side::after {
  content: ''; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%;
  background: var(--on-dark-hover);
}
.auth-brand-logo {
  width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand-gradient); box-shadow: var(--glow-brand-lg);
}
.auth-brand-logo svg { width: 70px; height: 70px; stroke: var(--on-fill); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand-side h2 { margin: 0; font-size: 34px; font-weight: var(--fw-bold); letter-spacing: -0.01em; }
.auth-brand-side p { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; color: var(--on-dark-2); }
.auth-brand-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.auth-brand-pills span { border: 1px solid var(--on-dark-line); border-radius: var(--radius-pill); padding: 7px 16px; font-size: 13px; font-weight: var(--fw-medium); }

@media (max-width: 900px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-brand-side { display: none; }
}
/* Cloudflare Turnstile (sign-in and invite forms). Empty and collapsed when it is off. */
.auth-form .turnstile { margin-top: 24px; min-height: 0; }
.auth-form .turnstile:empty { margin-top: 0; }
.auth-form .turnstile + button[type="submit"] { margin-top: 20px; }
