/* Portal theme: dark navigation with light content, following XOAdmin. */
body, body.appearance-light, body.appearance-dark {
    color-scheme: light;
    --header-height-mobile: 64px;
    --header-height-desktop: 64px;
    --header-bg: #171b21;
    --body-bg: #f3f5f7;
    --body-text: #242c36;
    --h1-page-title: #242c36;
    --logo-fill: #ededed;
    --mobile-menu-bg: #20262d;
    --mobile-menu-text-color: #c5ced8;
    --light-grey: #f4f6f8;
    --light-grey-bg: #e9edf1;
    --light-grey-border: #d8dfe6;
    --input-border: #bac3cd;
    --grey: #bac3cd;
    --body-text-color-subtle: #52606d;
    --text-muted: #52606d;
    --link-color: #23638c;
    --heading-link-color: #242c36;
    --footer-links-bg: #f3f5f7;
    --footer-links-color: #52606d;
    --footer-bottom-bg: #f3f5f7;
    --footer-bottom-text: #52606d;
    --btn-primary-bg: #23638c;
    --btn-primary-text: #fff;
    --main-menu-btn-bg: #2c3743;
    --main-menu-btn-text: #e4e9ef;
    --highlight-color: #e6f3ff;
    --breadcrumbs-bg: #fff;
    --breadcrumbs-text: #23638c;
    --g-login-bg: #e4e9ef;
    --g-login-text: #171b21;
    --fb-login-bg: #23638c;
    --fb-login-text: #fff;
    --btn-fb-icon-fill: #fff;
    background: var(--body-bg);
    color: var(--body-text);
}
#header, #header.header-account { background: #171b21; border-bottom: 1px solid #343e49; height: 64px; box-sizing: border-box; }
#header > .container { padding: 0 22px; }
#header .logo-container { width: 202px; padding: 16px 0; }
#logo-header { display: block; }
#logo-header img { display: block; width: 100%; height: 31px; object-fit: contain; }
#footer { margin-top: auto; border-top: 1px solid #d8dfe6; }
#footer .footer-links { padding: 20px 24px 0; }
#footer .footer-links ul { justify-content: center; gap: 28px; flex-wrap: wrap; }
#footer .footer-links a { font-size: .8rem; }
#footer .footer-links .site-links { padding: 0; }
#footer .footer-bottom { padding: 16px 20px 20px; }
/* also used by the sign-in page, which does not load portal-layout.css */
#wrap { min-height: calc(100dvh - 64px); }
#main-content { min-height: inherit; display: flex; flex-direction: column; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #80c3ed; outline-offset: 3px; }
#login-container { min-height: calc(100dvh - 64px); display: flex; flex-direction: column; }
#login-container > #main-content { flex: 1; }
#login-container .section-login-form { padding: 48px 20px; }
.login-form-container { padding: 28px; background: #e9edf1; color: #242c36; border: 1px solid #cdd5de; box-shadow: 0 12px 32px rgb(0 0 0 / 15%); border-radius: 8px; max-width: 440px; margin: 0 auto; box-sizing: border-box; width: 100%; }
.login-form-container .form-container { width: 100%; max-width: 380px; }
body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), body select, body textarea,
body .form-section.float-label .form-field input:not([type="checkbox"]):not([type="radio"]) {
    color-scheme: light;
    color: #171b21;
    background-color: #fff;
    border: 1px solid #bac3cd;
    border-radius: 4px;
    caret-color: #171b21;
}
body .form-section.float-label .form-field input.highlight { background-color: #e6f3ff; }
body input::placeholder, body textarea::placeholder { color: #515d6b; opacity: 1; }
@media (max-width: 639px) {
    #login-container .section-login-form { padding: 24px 16px; }
    .login-form-container { padding: 24px 20px; }
}

/* The sign-in card sits on the same charcoal backdrop as XOAdmin login. */
body:has(#login-container) {
    background: #171b21;
    --footer-links-bg: #171b21;
    --footer-bottom-bg: #171b21;
    --footer-links-color: #b9c3cf;
    --footer-bottom-text: #b9c3cf;
}
#login-container { background: radial-gradient(ellipse at top, #252d37 0%, #171b21 75%); }
#login-container #footer { border-top-color: #343e49; }
.login-form-container .recaptcha-disclaimer, .login-form-container .recaptcha-disclaimer a { color: #52606d; }

#btn-cancel-sign-in { background-color: #dce1e6; color: #242c36; }
#btn-cancel-sign-in:hover { background-color: #cdd4dc; }

