/* Authelia login (auth.mankes.io) dressed like the LitterBot app.
 *
 * nginx (sites-available/auth) injects this stylesheet into Authelia's page.
 * Authelia 4.39's UI is Tailwind + shadcn/ui: everything is driven by the CSS
 * variables below, so this only re-points those tokens at LitterBot's palette
 * (litterbot-web client/src/styles/global.css) — no selectors to chase.
 * Authelia sets its tokens on body under html[data-theme=dark], hence body here.
 *
 * Served same-origin because Authelia's CSP only allows 'self' styles/fonts —
 * Google Fonts would be blocked, so Space Grotesk is self-hosted beside this
 * file (SIL OFL, from @fontsource/space-grotesk 5.3.0).
 */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 400; src: url('/theme/fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 500; src: url('/theme/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 600; src: url('/theme/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url('/theme/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

:root, :root[data-theme], :root[data-theme] body, :root body {
  --background: #0a0a0f;          /* --bg-primary */
  --foreground: #f8f8f2;          /* --text-primary */
  --card: #1a1a26;                /* --bg-card */
  --card-foreground: #f8f8f2;
  --popover: #1a1a26;
  --popover-foreground: #f8f8f2;
  --primary: #bd93f9;             /* .btn-primary: purple, dark text */
  --primary-foreground: #0a0a0f;
  --secondary: #ff79c6;           /* --accent-pink */
  --secondary-foreground: #0a0a0f;
  --muted: #12121a;               /* --bg-secondary */
  --muted-foreground: #8a8a9a;    /* --text-secondary */
  --accent: #22222f;              /* --bg-card-hover */
  --accent-foreground: #f8f8f2;
  --border: #2a2a3a;
  --input: #2a2a3a;
  --ring: #bd93f9;
  --destructive: #ff5555;         /* --accent-red */
  --radius: 10px;                 /* --radius-md */
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
}

body { font-family: 'Space Grotesk', -apple-system, sans-serif; background: #0a0a0f; }

/* LitterBot fields sit on a slightly lifted surface, buttons aren't shouty */
#username-textfield, #password-textfield, input[type='text'], input[type='password'], input[inputmode='numeric'] {
  background: #14141e;            /* --bg-input */
}
#sign-in-button, #passkey-sign-in-button { text-transform: none; font-weight: 600; font-size: 15px; }
a[href*='authelia.com'] { color: #5a5a6a; }  /* --text-muted */
