html { color-scheme: dark; }
html.pf-v5-theme-dark #kc-header #kc-header-wrapper {
  width: min(100%, 22rem);
  height: 6.5rem;
  margin: auto;
  background: url("../img/logo-dark.svg") center / contain no-repeat;
  font-size: 1rem;
  color: transparent !important;
  text-shadow: none;
}
.sanexus-entity {
  border-top: 1px solid #4b5563;
  padding: 1rem 3rem;
  color: #e5e7eb;
  overflow-wrap: anywhere;
}
.sanexus-entity-label { display: block; color: #cbd5e1; font-size: .875rem; }
.sanexus-entity strong { display: block; font-weight: 600; }
.sanexus-entity p { margin-top: .5rem; color: #cbd5e1; font-size: .875rem; }
.sanexus-entity-logo { display: block; max-width: 10rem; max-height: 4rem; margin-top: .75rem; }
.kc-login-tooltip:focus-within .kc-tooltip-text { visibility: visible; opacity: 1; }
@media (max-width: 600px) {
  #kc-header-wrapper { height: 5rem; }
  .sanexus-entity { padding: 1rem; }
  /* O tooltip upstream de reiniciar login fica à direita, fora da tela OTP estreita. */
  #reset-login .kc-tooltip-text {
    left: auto;
    right: 0;
    top: calc(100% + .5rem);
    min-width: 0;
    width: max-content;
    max-width: min(14rem, calc(100vw - 2rem));
    overflow-wrap: anywhere;
    z-index: 1;
  }
  #reset-login .kc-tooltip-text::after {
    top: -.5rem;
    right: .75rem;
    margin-top: 0;
    border-color: transparent transparent black transparent;
  }
}
