/* Display the supplied square JPEG as its centered horizontal wordmark. */
.side-bar-logo .sb-logo-link,
.footer .footer-logo .auth-logo-link,
.home-header .header-logo,
.footer-section .foot-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 58px;
    max-width: 100%;
    overflow: hidden;
    flex: none;
    border-radius: 6px;
    background: #fff;
}

.side-bar-logo .sb-logo-link .sb-logo-mark,
.footer .footer-logo .auth-logo-link .sb-logo-mark,
.home-header .header-logo .header-logo-mark,
.footer-section .foot-brand-logo .header-logo-mark {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    flex: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.38);
    transform-origin: center;
}

.side-bar-logo .sb-logo-link .sb-logo-text,
.footer .footer-logo .auth-logo-link .sb-logo-text,
.home-header .header-logo .header-logo-text,
.footer-section .foot-brand-logo .header-logo-text {
    display: none !important;
}

.footer .footer-logo .auth-logo-link.auth-logo-lg {
    width: 245px;
    height: 68px;
}

/* The same source image supplies the compact sidebar icon. */
.side-bar.active .side-bar-logo .sb-logo-link {
    width: 44px;
    height: 44px;
    overflow: visible;
}

.side-bar.active .side-bar-logo .sb-logo-link .sb-logo-mark {
    display: none;
}

.side-bar.active .side-bar-logo .sb-logo-link::before {
    content: '';
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 6px;
    background: #fff url('/uploads/branding/midad-business-suite.jpeg') -33px -76px / 190px 190px no-repeat;
}

.side-bar.active:hover .side-bar-logo .sb-logo-link {
    width: 210px;
    height: 58px;
    overflow: hidden;
}

.side-bar.active:hover .side-bar-logo .sb-logo-link .sb-logo-mark {
    display: block;
}

.side-bar.active:hover .side-bar-logo .sb-logo-link::before {
    display: none;
}

.create-account-body .create-account-logo,
.success-modal-body > img {
    width: 210px;
    height: 58px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.home-banner-section .banner-img {
    max-width: 460px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #dce7f7;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(41, 86, 167, 0.16);
}

.home-banner-section .banner-img img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

@media (max-width: 600px) {
    .home-header .header-logo {
        width: 168px;
        height: 48px;
    }
}
