/* Layout only. Tokens and components live in ui.css. */
body { margin: 0; background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-font); -webkit-font-smoothing: antialiased; }
.site-main { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.site-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--ui-line); background: var(--ui-surface); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 0; flex-basis: 100%; }
.muted { color: var(--ui-muted); }
.tenant-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tenant-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--ui-radius); background: var(--ui-surface); border: 1px solid var(--ui-line); color: inherit; text-decoration: none; }
.tenant-card > span { flex: 1; }
.site-auth .site-main { max-width: 420px; padding-top: 12vh; }
.auth-card { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: 16px; padding: 24px; }
.auth-card h1 { margin: 4px 0 16px; }
.auth-card__area { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ui-muted); font-size: .9rem; }
.auth-card__form { display: grid; gap: 14px; }

/* ---------- Sign in (accounts/login.html): form on the left, the store's banner on the right ---------- */
.auth-page { background: var(--ui-surface); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); min-height: 100vh; }
.auth__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px 48px; }
.auth__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.auth__logo { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--ui-ink); color: #f2a33a; display: grid; place-items: center; overflow: hidden; }
.auth__logo img { width: 100%; height: 100%; object-fit: cover; }
.auth__logo .icon { width: 17px; height: 17px; }
.auth__center { display: flex; flex-direction: column; align-items: center; }
.auth__form { width: 100%; max-width: 360px; display: grid; gap: 20px; }
.auth__titles h1 { margin: 0 0 6px; font-size: 1.75rem; font-weight: 600; letter-spacing: -.03em; }
.auth__titles p { margin: 0; color: var(--ui-muted); }
.auth__fields { display: grid; gap: 2px; }
.auth__foot { margin: 0; font-size: .82rem; color: var(--ui-subtle); }
.auth__visual { padding: 12px; }
.auth__photo { position: relative; height: 100%; min-height: 400px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end;
  background: radial-gradient(circle at 25% 110%, color-mix(in srgb, var(--ui-brand) 55%, transparent), transparent 55%),
              radial-gradient(circle at 90% -10%, rgba(255, 180, 60, .3), transparent 50%), var(--ui-ink); }
.auth__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth__caption { position: relative; width: 100%; display: grid; gap: 8px; padding: 80px 36px 36px; color: #fff;
  background: linear-gradient(rgba(23, 20, 18, 0), rgba(23, 20, 18, .85)); }
.auth__caption strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.auth__caption span { color: rgba(255, 255, 255, .72); }
@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .auth__side { padding: 20px 20px 28px; }
  .auth__center { align-items: flex-start; }
}

/* Development shortcut on the login pages (apps/accounts/debug.py): sign in as a test account. */
.auth__debug { width: 100%; max-width: 360px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--ui-line); display: grid; gap: 8px; }
.auth__debug-title { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: .85rem; font-weight: 500; }
.auth__debug-title span { margin-left: auto; font-weight: 400; color: var(--ui-muted); font-size: .78rem; }
.auth__debug .ui-inline-form--block .ui-btn { justify-content: flex-start; }
