/* Login-page cleanups.

   Zammad offers no setting for either element below, and both are rendered from
   the compiled sprockets bundle (app/assets/javascripts/app/views/login.jst.eco),
   which the image overlay cannot patch without an assets:precompile. Hiding them
   from a stylesheet outside the bundle avoids that; the Dockerfile injects a link
   to this file into app/views/layouts/application.html.erb. */

/* "Powered by Zammad", plus the two zammad.org logo links beside it. The class is
   used by every fullscreen public page — login, signup, password reset — so it
   disappears consistently rather than only on login. */
.poweredBy {
  display: none !important;
}

/* "If you have problems with the third-party login you can request a one-time
   password login as an admin." — shown only while user_show_password_login is
   off. The paragraph has no class of its own, so it is matched through its link.
   The route stays reachable by typing /#admin_password_auth. */
.login p:has(> a[href="#admin_password_auth"]) {
  display: none !important;
}

/* Fallback for browsers without :has(): drops the link, leaves the sentence. */
a[href="#admin_password_auth"] {
  display: none !important;
}
