/* EL-specific only. Everything else (type, colour, controls, tables, dialogs) comes from StravixUI.Blazor. */

/* The static SSR sign-in / setup pages run without a circuit, so no MudThemeProvider emits the
   --mud-palette-* variables there. These mirror the StravixTheme slots (Theming/StravixTheme.cs) the
   shell uses, flipping with the OS colour scheme like the admin shell's initial mode does. */
:root {
    --auth-bg: #F3F4F7; --auth-surface: #FFFFFF; --auth-text: #161A23; --auth-muted: #6E7681;
    --auth-line: #D0D5DB; --auth-primary: #3B9EFF; --auth-on-primary: #090B10; --auth-error: #C2503F;
}
@media (prefers-color-scheme: dark) {
    :root {
        --auth-bg: #090B10; --auth-surface: #10121A; --auth-text: #FFFFFF; --auth-muted: #9DA4AF;
        --auth-line: #363D4C;
    }
}
body { font-family: Inter, system-ui, sans-serif; margin: 0; }
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--auth-bg); color: var(--auth-text); padding: 16px; box-sizing: border-box; }
.auth-card { background: var(--auth-surface); border: 1px solid var(--auth-line); border-radius: var(--stx-radius-panel); padding: 32px; width: 100%; max-width: 380px; }
.auth-brand { font-family: var(--stx-font-display); font-weight: 600; color: var(--auth-primary); margin-bottom: 8px; }
.auth-title { font-family: var(--stx-font-display); font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }
.auth-card label { display: block; margin: 12px 0 4px; font-size: .8125rem; color: var(--auth-muted); }
.auth-card input:not([type=submit]) { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--auth-line); border-radius: var(--stx-radius-btn); background: transparent; color: inherit; font: inherit; }
.auth-card input:focus { outline: 2px solid var(--auth-primary); outline-offset: -1px; }
.auth-card button, .auth-button { display: block; width: 100%; box-sizing: border-box; margin-top: 16px; padding: 10px; border: 0; border-radius: var(--stx-radius-btn); background: var(--auth-primary); color: var(--auth-on-primary); font: inherit; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; }
/* The OIDC link is a secondary action beside the filled submit: quiet. */
.auth-card .auth-button { background: transparent; color: var(--auth-text); border: 1px solid var(--auth-line); }
.auth-error, .validation-message { color: var(--auth-error); font-size: .8125rem; margin: 8px 0; }

/* Panel is flat by design while Table's outer paper carries elevation 4; give panels the same lift so the surfaces on a page match. */
.stx-panel { box-shadow: var(--mud-elevation-4); }

/* The adoption code is read aloud and compared character by character against the service's own display. */
.adoption-code { font-family: var(--stx-font-mono); font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; color: var(--mud-palette-text-primary); }

#blazor-error-ui { background: var(--mud-palette-warning, #FBBF24); color: var(--mud-palette-warning-text, #090B10); bottom: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 2000; }
