/*
  Darkthought Studios crew portal: brand line in Authelia's sign-in footer.
  Adds "Darkthought Studios Crew Portal" on its own line ABOVE Authelia's "Powered by Authelia" link,
  which stays exactly as it is. Nothing else on the page changes.
  Linked into Authelia's pages by NPM (proxy host auth.darkthoughtstudios.com -> Advanced, sub_filter).
  Served from VPS /dockerconfigs/nginx-proxy/data/dts-help/portal-brand.css at /portal-brand.css.
  Source of truth: /Volumes/Production/AdminSvcs/Nextcloud/vps/portal-brand.css
  Depends on Authelia's markup (footer link to https://www.authelia.com inside a MUI Grid item):
  after an Authelia upgrade run AdminSvcs/Nextcloud/tools/check-password-help-theme.sh.
*/
.MuiGrid-root:has(> a[href="https://www.authelia.com"]) {
  /* the footer column is a third of the width; let it fit the longer brand line */
  max-width: none !important;
  flex-basis: auto !important;
  width: auto !important;
  flex-grow: 0 !important;
}
.MuiGrid-root:has(> a[href="https://www.authelia.com"])::before {
  content: "Darkthought Studios Crew Portal";
  display: block;
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  color: #9e9e9e;            /* same grey as "Powered by Authelia" in every Authelia theme */
  text-align: center;
}

/*
  2FA page: hide "Logout" and "Switch User". Password managers that auto-submit the one-time code
  click the first button they find, which signed the user out of Authelia right after every login.
  Scoped to the 2FA button row (the only one with these siblings); the signed-in page keeps its Logout.
  font-size: 0 hides the " | " separators between the buttons.
*/
.MuiGrid-root:has(> #logout-button):has(> #switch-user-button, > #methods-button) {
  font-size: 0;
}
.MuiGrid-root:has(> #switch-user-button, > #methods-button) > #logout-button,
#switch-user-button {
  display: none !important;
}
