/*
 * Brand alignment between the website and the desktop client's login page.
 *
 * The login page is the desktop client's own component, so it reads the
 * client's `--ps-*` tokens. The website has its own palette. Rather than fork
 * the shared stylesheet, the website publishes the client's token names from
 * its own palette: the login page then follows the website without a second
 * implementation and the client keeps its own look.
 *
 * Only the token names are bridged. The client defines `--ps-*` on `:root`;
 * these rules live on the same root, so the website's values win here and the
 * client is untouched.
 */

:root {
  /* The client's surface tokens, expressed in the website's palette. */
  --ps-paper: var(--bg);
  --ps-surface: var(--panel);
  --ps-ink: var(--ink);
  --ps-muted: var(--muted);
  --ps-line: var(--line);
  --ps-hover: color-mix(in srgb, var(--ink) 8%, transparent);
  --ps-scrim: color-mix(in srgb, var(--bg) 78%, transparent);
  --ps-focus: var(--cyan);
  --ps-soft: color-mix(in srgb, var(--cyan) 12%, transparent);
  --ps-error: #f49b8e;
  --ps-yellow: var(--cyan);
  --ps-purple: var(--cyan);
  --ps-sidebar: var(--panel-raised);
  --ps-accent: var(--ink);
  --ps-on-accent: var(--bg);
  --ps-success: #85d9b2;
  --ps-warning: #edc779;
  --ps-brand-ink: var(--ink);
  --ps-brand-module: var(--cyan);
  --ps-radius: 10px;
}

html[data-theme='light'] {
  --ps-error: #a1392e;
  --ps-success: #287553;
  --ps-warning: #855b16;
}
