/*
 * GBSC brand alignment overrides — loaded after sb-admin-2.css (and every
 * other stylesheet) so cascade order alone gives these rules priority
 * without needing !important anywhere except the two SB Admin 2 rules that
 * already use it themselves (bg-primary, text-primary, bg-gradient-primary
 * variants), which have to be matched to actually win.
 *
 * Deliberately implemented as a small override file rather than editing
 * sb-admin-2.css directly — that vendor file is ~11,000 lines with the
 * brand color hardcoded at dozens of call sites, and editing it in place
 * would be far harder to review and reason about than a short, additive
 * stylesheet that can be dropped by removing one <link> tag if needed.
 *
 * Palette pulled directly from https://gbsc-usa.com (the new marketing
 * site): navy for text/surfaces, blue for interactive/primary actions,
 * gold as a small accent, Fraunces for display headings, Inter for body
 * text.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

:root {
    --gbsc-navy: #0A1B33;
    --gbsc-blue: #3B7BE0;
    --gbsc-blue-hover: #2E63C4;
    --gbsc-blue-active: #234E9E;
    --gbsc-gold: #B98A46;
    --gbsc-bg-light: #FBFCFE;
    --gbsc-bg-soft: #EFF4FA;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Prominent page/section titles get the marketing site's serif treatment;
   deliberately NOT applied to every h1-h6 blanket, since most admin-UI
   headings are small, dense table/card labels where a display serif would
   hurt legibility rather than help it - Fraunces is for the few places that
   are genuinely acting as a page title. */
.sidebar-brand-text,
.login-brand-title,
h1.h4 {
    font-family: 'Fraunces', Georgia, serif;
}

/* ---------- primary color: navy -> blue ---------- */
.btn-primary {
    color: #fff;
    background-color: var(--gbsc-blue);
    border-color: var(--gbsc-blue);
}
.btn-primary:hover {
    color: #fff;
    background-color: var(--gbsc-blue-hover);
    border-color: var(--gbsc-blue-hover);
}
.btn-primary:focus, .btn-primary.focus {
    color: #fff;
    background-color: var(--gbsc-blue-hover);
    border-color: var(--gbsc-blue-hover);
    box-shadow: 0 0 0 0.2rem rgba(59, 123, 224, 0.35);
}
.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: var(--gbsc-blue);
    border-color: var(--gbsc-blue);
}
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--gbsc-blue-active);
    border-color: var(--gbsc-blue-active);
}
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 123, 224, 0.35);
}

.bg-primary { background-color: var(--gbsc-blue) !important; }
.text-primary { color: var(--gbsc-blue) !important; }
a.text-primary:hover, a.text-primary:focus { color: var(--gbsc-blue-active) !important; }
.bg-primary-soft { background-color: rgba(59, 123, 224, 0.12) !important; }

/* The login page's full-bleed backdrop gets a textured navy treatment
   (grid pattern + radial glow) echoing the marketing site's hero section,
   rather than a flat empty fill. Scoped to body (not the bare class) so it
   never touches the sidebar, which also carries the bg-gradient-primary
   class and is left on its original vendor styling. */
body.bg-gradient-primary {
    background-color: var(--gbsc-navy);
    background-image:
        radial-gradient(circle at 15% 8%, rgba(59, 123, 224, 0.22) 0%, transparent 45%),
        linear-gradient(180deg, #0d2144 0%, var(--gbsc-navy) 55%, #081527 100%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
}

/* The auth card (login/forgot/reset/email-confirm) gets a gold top accent
   and a heavier shadow to lift it off the textured backdrop; scoped via
   :has() to the specific card containing the horizontal logo lockup so it
   never touches unrelated cards elsewhere in the app. */
.card:has(.small-logo) {
    border-top: 3px solid var(--gbsc-gold) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35) !important;
}
@media (min-width: 992px) {
    .col-lg-6:has(.small-logo) {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: linear-gradient(160deg, var(--gbsc-bg-soft) 0%, #ffffff 100%);
    }
}
.small-logo {
    width: auto !important;
    max-width: 70%;
    max-height: 55%;
}

/* A gold accent bar next to page-title headings (e.g. "Sign In!"),
   echoing the marketing site's gold rule next to its own kicker text. */
h1.h4 {
    position: relative;
    padding-left: 1rem;
    font-size: 1.85rem;
}
h1.h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 4px;
    border-radius: 2px;
    background: var(--gbsc-gold);
}
