/* Template for wecon-branding.css, which is generated — edit this file, then
   run ./setup_reverse_proxy.sh to regenerate it. */

/* Hides the "Powered by Authelia" footer on the login page. Matched by the
   link's target, not its text, so it works in every UI language. */
a[href^="https://www.authelia.com"] {
  display: none !important;
}

/* Authelia renders the logo 4rem wide — sized for its round user icon, far too
   small for a wide wordmark logo (authelia/assets/logo.png). */
img[src$="logo.png"],
img[data-wecon-logo] {
  width: 220px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Dark mode without a logo-dark.svg: the logo on a light plate — a logo is
   made for a light background (set by wecon-branding.js). */
img.wecon-logo-plate {
  box-sizing: content-box !important;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
}

/* The "Sign in" heading on the login page and the "Sign out" heading on the
   logout page (the greeting on /authenticated stays). Visually hidden rather
   than display:none, so screen readers still get a page heading. The login one
   is matched by its stage id, the logout one by the message block that follows
   it — both language-independent. */
#first-factor-stage h5,
.w-full:has(+ .mt-2 > p.p-2) > h5 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Brand color (BRAND_COLOR in .env, set up by setup_*.sh from logo.svg) for
   the "Sign in" button and the other filled buttons, the focus ring of the
   inputs, the checked "Remember me" box and the links ("Reset password?"), so
   the portal's default blue doesn't show up next to it. The button text is
   black or white, whichever is legible on the brand color (brand_color.sh).
   Since 4.39 the portal is built on Tailwind/shadcn instead of Material UI:
   every one of those takes its color from the theme variables, set per theme
   on [data-theme=light|dark|grey|oled] — overridden there for all themes. The
   earlier .MuiButton-containedPrimary rules matched nothing any more. */
:root,
[data-theme] {
  --primary: #607ebc !important;
  --primary-foreground: #ffffff !important;
  --ring: #607ebc !important;
}
