/* VelloraWin's own look. It is loaded after the core's stylesheet, so whatever is set here wins.
   Everything the core draws comes from the properties below; take the comment marks off the ones to
   change. Nothing else needs rebuilding: the menu, the buttons, the grids, the dialogs and the
   sign-in page all follow.

   The full list, with the values in use, is at the top of the core's stylesheet
   (_content/NextGenCore.Web/css/app.css). */

/* Manrope, the font of the sign-in page (SIL Open Font License, fonts/Manrope-LICENSE.txt). */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("fonts/manrope-greek-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* ---- The brand colour: navy (#01004C, Madonna Group's; VelloraWin's logo is #15154D and #425A77), from lightest to
       darkest. Buttons use 600 (700 on hover), the active menu item 50 with 700 text, focus rings 500. */
    --brand-50: #f7f7fa;
    --brand-100: #ebebf1;
    --brand-200: #d6d6e2;
    --brand-300: #a3a3be;
    --brand-400: #676694;
    --brand-500: #404079;
    --brand-600: #01004c;
    --brand-700: #272667;
    --brand-800: #00002e;
    --brand-900: #00002e;
    --brand-950: #000020;

    /* ---- The sign-in card (Program.cs gives AppInfo.SignIn): tinted whites and navy. */
    --signin-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --signin-page: #eeeef4;
    --signin-card: #f7f7fa;
    --signin-ink: #01004c;
    --signin-label: #272667;
    --signin-muted: #676694;
    --signin-line: #d6d6e2;
    --signin-line-hover: #a3a3be;
    --signin-field: #fbfbfd;
    --signin-photo-bg: #01004c;
    --signin-wash: rgb(39 38 103 / .38);
    --signin-shade: #00002e;

    /* ---- The menu at the side. A dark menu, for example: */
    /*
    --sidebar-bg: #0f172a;
    --sidebar-line: #1e293b;
    --sidebar-ink: #cbd5e1;
    --sidebar-ink-strong: #ffffff;
    --sidebar-caption: #64748b;
    --sidebar-hover-bg: #1e293b;
    --sidebar-active-bg: rgb(255 255 255 / .12);
    --sidebar-active-ink: #ffffff;
    */

    /* ---- The sign-in page: the brand half (a tenant's wallpaper, set under Administration >
       Branding, covers its colour), the accent of the tag and the focus ring, and the button. */
    /*
    --login-bg: #3b0a24;
    --login-line: #6b1d45;
    --login-muted: #e3b7cb;
    --login-accent: #be185d;
    --login-accent-soft: #f9a8d4;
    --login-panel-bg: #fdf7fa;
    --login-ink: #2a0d1c;
    --login-button-bg: var(--login-bg);
    --login-button-hover-bg: #5a1237;
    */

    /* ---- Shapes and type. */
    /*
    --radius: .375rem;
    --radius-lg: .5rem;
    --font: "Inter", ui-sans-serif, system-ui, sans-serif;
    */
}

/* ---- The dark look: the navy would vanish on a dark page, so buttons, links and accents take a
   lighter blue-violet of the same hue. (The soft tints, 50 to 200, the core mixes from 500.) */
:root[data-theme="dark"] {
    --brand-300: #c4c3ea;
    --brand-400: #a09fdc;
    --brand-500: #7b7ad0;
    --brand-600: #5554b8;
    --brand-700: #4645a0;
    --brand-800: #37368a;
}

/* ---- While the application loads (index.html): VelloraWin's mark, breathing, on navy. */
.vellorawin-loading { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; font-family: var(--signin-font);
    background: radial-gradient(90% 70% at 8% 0%, rgb(39 38 103 / .75), transparent 70%), #01004c; }
.vellorawin-loading div { display: grid; justify-items: center; gap: 24px; }
.vellorawin-loading img { display: block; width: 72px; height: auto; }
.vellorawin-loading p { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .6); }

/* ---- VelloraWin's wordmark is long and low: wider on the sign-in card than the core's 130px. */
.signin-logo.app-logo { width: 190px; }
@media (max-width: 639px) { .signin-logo.app-logo { width: 140px; } }
