/* Brand logos — constrain intrinsic PNG size on auth + sidebar */
img.auth-brand-logo,
.auth-brand-logo img {
  display: block;
  width: auto;
  max-width: min(480px, 88vw);
  max-height: 144px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
}
a.auth-brand-logo {
  display: inline-block;
  max-width: min(480px, 88vw);
  line-height: 0;
}

/* Sidebar brand (logo.png / logo-mobile-2.png) */
.aside .h-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto !important;
  min-height: 56px;
  margin-bottom: 1.25rem !important;
  overflow: visible;
  line-height: 0;
}
.aside .h-logo img,
.aside .h-logo img.sidebar-brand-logo {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 64px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 1024px) {
  .aside .h-logo {
    min-height: 72px;
  }
  .aside .h-logo img,
  .aside .h-logo img.sidebar-brand-logo {
    max-height: 72px;
    max-width: 200px;
  }
}
