/* Public auth inherits the MCFG appearance preference; tenant hosts never opt in. */
html[data-auth-theme="dark"]:has(#loginScreen),html[data-auth-theme="dark"]:has(#login:not([hidden])){color-scheme:dark;background:#0d1726}
html[data-auth-theme="dark"] body:has(#loginScreen),html[data-auth-theme="dark"] body:has(#login:not([hidden])){background:#0d1726!important;color:#edf2fc!important}
html[data-auth-theme="dark"] #loginScreen{background:#0d1726!important;color:#edf2fc!important}
html[data-auth-theme="dark"] :is(#loginScreen .login-card,#login){background:#172234!important;border:1px solid #33445e!important;box-shadow:0 22px 60px rgba(0,0,0,.4)!important;color:#edf2fc!important}
html[data-auth-theme="dark"] #loginScreen :is(.auth-form-panel,.auth-portal){background:transparent!important}
html[data-auth-theme="dark"] #loginScreen .auth-promo{background:#1d2f46!important;color:#edf2fc!important;border-color:#33445e!important}
html[data-auth-theme="dark"] :is(#loginScreen,#login) :is(h1,h2,h3,label,.auth-promo-badge){color:#edf2fc!important}
html[data-auth-theme="dark"] :is(#loginScreen,#login) :is(p,small,.register-note,.auth-terms,.auth-form-alternate,.auth-remember,.login-eyebrow){color:#aebbd0!important}
html[data-auth-theme="dark"] :is(#loginScreen,#login) input:not([type="checkbox"]){background:#101c2d!important;border-color:#445b78!important;color:#edf2fc!important;color-scheme:dark}
html[data-auth-theme="dark"] :is(#loginScreen,#login) input::placeholder{color:#9aaac0!important;opacity:1}
html[data-auth-theme="dark"] :is(#loginScreen,#login) input:focus-visible{outline:2px solid #6f9cff!important;outline-offset:2px}
html[data-auth-theme="dark"] :is(#loginScreen,#login) :is(.password-toggle,.login-field-icon,.icon){color:#aebbd0!important}
html[data-auth-theme="dark"] :is(#loginScreen,#login) :is(a,.auth-forgot-password,.auth-form-alternate button){color:#9abbff!important}
html[data-auth-theme="dark"] #loginScreen .auth-form-divider{border-color:#33445e!important;background:#33445e!important}
html[data-auth-theme="dark"] :is(#loginScreen,#login) :is(.login-error,.error){color:#ff9b9b!important}
html[data-auth-theme="dark"] #loginScreen .register-success{color:#73d7ac!important}

/* Keep the welcome/logo area continuous with the login card. */
html[data-auth-theme="dark"] #loginScreen .auth-promo{background:transparent!important;border-color:transparent!important}
