/* Public website and login: the institution's accent is the primary colour.
   Tokens from jala_tokens.css. Only colour and logo size change (D-8).

   This file loads before Frappe's website/login bundles and SeminaryERP's
   website_brand.css, which use the same or stronger selectors. Each rule here
   is written to win on specificity (html/body prefixes), never !important,
   and never by redefining shared variables such as --gray-900. */

html:root {
  --primary: var(--color-accent);
  --primary-color: var(--color-accent);
  --btn-primary: var(--color-accent);
}

/* The primary action on the login page (Frappe paints it --gray-900). */
html body .page-card .page-card-actions .btn-login.btn-login,
html body .btn.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}
html body .page-card .page-card-actions .btn-login.btn-login:hover,
html body .page-card .page-card-actions .btn-login.btn-login:focus,
html body .btn.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-accent-text);
  filter: brightness(0.92);
}

/* Lockup size floor (brand spec v2): the "University" cap height is 26 % of
   the lockup's height, so 44 px keeps it at or above 11 px on desktop
   (F-TIP-3). Frappe caps the login logo at 32 px. */
html body .page-card-head img.app-logo,
html body .sem-footer__logo {
  height: 44px;
  max-height: none;
  width: auto;
}
