/* Lawspeed Control Panel branding */

:root {
    --ls-ink: #011624;
    --ls-muted: #526776;
    --ls-paper: #f4f3f0;
    --ls-accent: #0a3e6f;
    --ls-accent-deep: #00274c;
    --ls-highlight: #e5ec99;
}

/* Outside screens (login, password reset, 2FA, etc.)
   The body only wraps the form, so the gradient has to live on the
   full viewport, not stop at the bottom of the card. */
html:has(body.outside) {
    min-height: 100%;
    background:
        radial-gradient(ellipse 140% 115% at 50% -8%, rgba(229, 236, 153, 0.7) 0%, rgba(229, 236, 153, 0.28) 46%, rgba(229, 236, 153, 0) 82%),
        linear-gradient(180deg, #f3f1e4 0%, #f7f6f2 48%, #d5e2ec 100%) !important;
    background-attachment: fixed;
}

body.outside {
    min-height: 100dvh;
    background: transparent !important;
}

body.outside .white-label-logo {
    width: min(100%, 12.5rem);
    height: auto;
    margin-bottom: 0.5rem;
}

body.outside .logo {
    padding-top: 2.5rem;
}

/* Keep primary actions on-brand even if a user theme drifts */
:root {
    --theme-color-primary: var(--ls-accent);
    --theme-color-ui-accent-bg: var(--ls-accent);
    --theme-color-global-header-bg: var(--ls-ink);
    --theme-color-body-bg: var(--ls-paper);
    --theme-color-progress-bar: var(--ls-highlight);
    --theme-color-focus-outline: var(--ls-accent);
}

html.dark {
    --theme-color-primary: #7eb3e0;
    --theme-color-ui-accent-bg: var(--ls-accent);
    --theme-color-ui-accent-text: var(--ls-highlight);
    --theme-color-global-header-bg: #000d18;
    --theme-color-body-bg: var(--ls-ink);
    --theme-color-progress-bar: var(--ls-highlight);
    --theme-color-focus-outline: var(--ls-highlight);
}

/* Nav / dark-header logo sizing */
.global-header .white-label-logo,
header .white-label-logo,
.white-label-logo {
    max-height: 1.65rem;
    width: auto;
}
