/* PCB colours for Paperless 3.3.3 (ADR-0012). The SPA derives its colours from an HSL pair (src-ui/src/theme.scss),
   the login pages use fixed values (src/documents/static/base.css). Palette: docs/Branding.md. */
:root {
  --pngx-primary: 208, 60% !important;
  --pngx-primary-lightness: 34% !important;
}
[data-bs-theme="dark"] {
  --pngx-primary-lightness: 52% !important;
}
body:has(.form-accounts) {
  --pngx-primary: #235a8c;
  --pngx-primary-hover: #1c4a74;
  --pngx-primary-active: #163a5c;
  --bs-link-color-rgb: 35, 90, 140;
  --bs-link-hover-color-rgb: 28, 74, 116;
}
body:has(.form-accounts) .btn.btn-primary {
  --bs-btn-hover-border-color: #163a5c;
  --bs-btn-active-border-color: #102c46;
}
/* The byline "by Paperless-ngx" stays visible on purpose (operator decision 23.10.2026: the product under the hood is named). */

/* Login pages: PCB polygon background, light by default and dark with the browser's colour scheme (the login pages follow
   prefers-color-scheme, see base.css). The images are served from /pcb/ by the proxy. */
body:has(.form-accounts) {
  background: #f5f7fa url('/pcb/bg-light.svg') center / cover no-repeat fixed;
}
@media (prefers-color-scheme: dark) {
  body:has(.form-accounts) {
    background: #10161e url('/pcb/bg-dark.svg') center / cover no-repeat fixed;
  }
}

/* Link to sources and licences below the sign-in form (added by brand.js; operator decision 23.10.2026). */
.form-accounts .pcb-powered {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.form-accounts .pcb-powered a {
  color: inherit;
  text-decoration: underline;
}
