/* Concur portal branding overlay v2.
   Served same-origin (/custom/branding-v2.css) so it satisfies Authelia's
   Content-Security-Policy (style-src 'self'). Pure CSS: applies to all
   present and future DOM, no JS, no header weakening. Selectors use stable
   element IDs / attribute hooks from Authelia source, not hashed classes. */
html, body, #root { background-color: #000 !important; }
#root { color-scheme: dark; }

/* Logo at 205px (20% down from 256px); substring match survives hashed classes. */
img[src*="logo.png"] {
  width: 205px !important;
  max-width: 80vw;
  height: auto !important;
}

/* Login heading only: scoped to the first-factor stage container so other
   views keep their headings; the #sign-in-button submit label is untouched. */
#first-factor-stage h5 { display: none !important; }


/* Reset page heading only: scoped to the step-1 stage container. */
#reset-password-step1-stage h5 { display: none !important; }

/* Language switcher (stable element ID). */
#language-button { display: none !important; }

/* Remove upstream attribution row: the anchor (stable decoded href) and its
   surrounding container (which also holds the leftover separator). */
div:has(> a[href="https://www.authelia.com"]) { display: none !important; }
a[href="https://www.authelia.com"] { display: none !important; }

/* All portal buttons: corporate navy, sharp edges. Blanket #root scope keeps
   every present and future view (login, reset, 2FA, settings, consent, revoke)
   uniform without enumerating IDs. Icon-only buttons inherit it too by design. */
#root button {
  background-color: #1E2A84 !important;
  color: #fff !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
#root button:hover:not(:disabled) { background-color: #141d5c !important; }
#root button:disabled { opacity: 0.55 !important; }
#root button:focus-visible { outline: 2px solid #8fa0ff !important; outline-offset: 2px; }

/* Text-style links are <button> elements too: keep them transparent so the
   black page shows through. Higher specificity than the blanket rule. */
#root #reset-password-button,
#root #register-button {
  background-color: transparent !important;
}
#root #reset-password-button:hover:not(:disabled),
#root #register-button:hover:not(:disabled) {
  background-color: transparent !important;
}
