:root .lpx-brand-logo {
    --lpx-logo: url('/images/logo/leptonxlite/logo-light.png');
    --lpx-logo-icon: url('/images/logo/leptonxlite/logo-light-thumbnail.png');
}
:root .abp-account-layout .lpx-brand-logo{
    --lpx-logo: url('/images/logo/leptonxlite/logo-dark.png');
}

/* Override login page logo – no width/height limit so SVG can display at natural size */
.lpx-brand-logo.lpx-login-logo {
    --lpx-logo: url('/images/logo/icon.svg') !important;
    --lpx-logo-icon: url('/images/logo/icon.svg') !important;
    background-image: url('/images/logo/icon.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 120px;
    min-height: 120px;
    max-width: none !important;
    max-height: none !important;
}

/* Hide app name (e.g. Track Gateway / RfidPortal) on login page */
.abp-account-layout .lpx-brand-name,
.abp-account-layout .lpx-brand-text,
.account-layout-content .lpx-brand-name,
.account-layout-content .lpx-brand-text,
.lpx-brand-logo.lpx-login-logo + * {
    display: none !important;
}

/* Hide "Are you a new user? Register" text and link on login page */
/* Target the registration link directly */
/*.abp-account-layout a[href*="/account/register"],
.abp-account-layout a[href*="/Account/Register"],
.abp-account-layout a[href*="register"],
.abp-account-layout a[href*="Register"],
.account-layout-content a[href*="/account/register"],
.account-layout-content a[href*="/Account/Register"],
.account-layout-content a[href*="register"],
.account-layout-content a[href*="Register"] {
    display: none !important;
    visibility: hidden !important;
}*/

/* Hide paragraphs containing registration links (using :has() for modern browsers) */
/*.abp-account-layout .account-form p:has(a[href*="register"]),
.abp-account-layout .account-form p:has(a[href*="Register"]),
.account-layout-content .account-form p:has(a[href*="register"]),
.account-layout-content .account-form p:has(a[href*="Register"]) {
    display: none !important;
}*/

/* Hide text-center divs containing registration links */
/*.abp-account-layout .account-form .text-center:has(a[href*="register"]),
.abp-account-layout .account-form .text-center:has(a[href*="Register"]),
.account-layout-content .account-form .text-center:has(a[href*="register"]),
.account-layout-content .account-form .text-center:has(a[href*="Register"]) {
    display: none !important;
}*/

/* Hide the first paragraph in account form (usually contains registration text) */
/*.abp-account-layout .account-form > p:first-of-type,
.account-layout-content .account-form > p:first-of-type,
.abp-account-layout .account-form p.text-center:first-of-type,
.account-layout-content .account-form p.text-center:first-of-type {
    display: none !important;
}*/

/* Additional fallback: Hide any element with "register" in href within account layout */
/*.abp-account-layout [href*="register"],
.abp-account-layout [href*="Register"],
.account-layout-content [href*="register"],
.account-layout-content [href*="Register"] {
    display: none !important;
}*/

/* Hide all top-level paragraphs and text-center divs in account form (hides "Are you a new user?" text) */
/*.abp-account-layout .account-form > p,
.abp-account-layout .account-form > div.text-center,
.account-layout-content .account-form > p,
.account-layout-content .account-form > div.text-center {
    display: none !important;
}*/

/* Hide any paragraph or div that appears before form inputs */
/*.abp-account-layout .account-form p:not(:has(input)),
.abp-account-layout .account-form div.text-center:not(:has(input)),
.account-layout-content .account-form p:not(:has(input)),
.account-layout-content .account-form div.text-center:not(:has(input)) {
    display: none !important;
}*/