/*
 * Qualiview ID brand theme. Loaded after app.css through AdminConfiguration:CustomThemeCss and overrides the
 * shadcn-style design tokens, so the compiled Tailwind bundle does not have to be rebuilt.
 *
 * Brand: blue and green only. Values are sampled from https://www.qualizorg.nl/ (the "INLOGGEN" button
 * is #0074bc with white text, headings are #003366, pale blues #e5f1f8). Primary actions are blue, green is an
 * accent (card band, #51c230). White on #0074bc is 4.97:1, which reaches WCAG AA. See BRANDING.md in qualiview-ui.
 */
:root {
    --foreground: 210 100% 20%;
    --card-foreground: 210 100% 20%;
    --primary: 203 100% 37%;
    --primary-foreground: 0 0% 100%;
    --ring: 203 100% 37%;
    --accent: 202 58% 94%;
    --accent-foreground: 210 100% 20%;
    --qv-green: 106 60% 47%;
    --qv-link: 203 100% 37%;
    --radius: 0.75rem;
}

.dark {
    --primary: 203 100% 37%;
    --primary-foreground: 0 0% 100%;
    --ring: 205 58% 56%;
    --accent: 210 30% 20%;
    --accent-foreground: 202 58% 94%;
    --qv-link: 205 58% 62%;
}

/* Brand accent on every card, as the previous Qualiview ID login did with its green band. */
.card {
    border-top: 4px solid hsl(var(--qv-green));
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.15);
}

/* The logo is dark on transparent: on the dark theme it sits on a light plate instead of being inverted. */
.qv-logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
}

.dark .qv-logo-plate {
    background: #fff;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

a.text-primary,
button.text-primary {
    color: hsl(var(--qv-link));
}

/* The Q mark is dark on transparent: show it white on the dark theme. */
.dark .qv-mark {
    filter: invert(1);
}
