:root {
    color-scheme: light;
    --system-navy: #18324c;
    --system-blue: #2668a7;
    --system-ink: #17212b;
    --system-muted: #607080;
    --system-border: #dbe3ea;
    --system-surface: #ffffff;
    --system-background: #f3f7fa;
    --system-shadow: 0 24px 70px rgba(24, 50, 76, 0.14);
}

* {
    box-sizing: border-box;
}

.system-auth-body,
.system-dashboard-body {
    min-height: 100vh;
    color: var(--system-ink);
    background:
        radial-gradient(circle at top right, rgba(38, 104, 167, 0.12), transparent 34rem),
        var(--system-background);
}

.system-auth-container {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.system-auth-card {
    width: min(100%, 31rem);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    border: 1px solid var(--system-border);
    border-radius: 1.25rem;
    background: var(--system-surface);
    box-shadow: var(--system-shadow);
}

.system-auth-brand {
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.75rem;
}

.system-auth-brand img,
.system-dashboard-header img {
    display: block;
    width: min(13.75rem, 100%);
    height: auto;
}

.system-auth-heading {
    margin-bottom: 1.5rem;
}

.system-auth-heading h1,
.system-welcome-card h1 {
    margin-bottom: 0.75rem;
    color: var(--system-navy);
    font-size: clamp(1.65rem, 5vw, 2.1rem);
    line-height: 1.2;
}

.system-auth-heading p:last-child,
.system-welcome-card > p:last-of-type {
    margin-bottom: 0;
    color: var(--system-muted);
}

.system-auth-eyebrow {
    margin-bottom: 0.45rem;
    color: var(--system-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.system-auth-card .form-label {
    color: var(--system-navy);
    font-weight: 600;
}

.system-auth-card .form-control {
    border-color: #bdcad5;
}

.system-auth-card .form-control:focus {
    border-color: var(--system-blue);
    box-shadow: 0 0 0 0.2rem rgba(38, 104, 167, 0.18);
}

.system-auth-card .btn-primary {
    border-color: var(--system-blue);
    background: var(--system-blue);
    font-weight: 600;
}

.system-auth-card .btn-primary:hover,
.system-auth-card .btn-primary:focus-visible {
    border-color: var(--system-navy);
    background: var(--system-navy);
}

.system-auth-note {
    margin: 1.5rem 0 0;
    color: var(--system-muted);
    font-size: 0.875rem;
    text-align: center;
}

.system-auth-status {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    color: var(--system-muted);
    font-size: 0.82rem;
    text-align: center;
}

.system-dashboard-header {
    border-bottom: 1px solid var(--system-border);
    background: rgba(255, 255, 255, 0.94);
}

.system-dashboard-header-inner {
    min-height: 5.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.system-dashboard-main {
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: 3rem;
}

.system-welcome-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--system-border);
    border-radius: 1.25rem;
    background: var(--system-surface);
    box-shadow: var(--system-shadow);
}

.system-session-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.system-session-summary div {
    padding: 1rem;
    border: 1px solid var(--system-border);
    border-radius: 0.85rem;
    background: #f8fafc;
}

.system-session-summary dt {
    margin-bottom: 0.35rem;
    color: var(--system-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.system-session-summary dd {
    margin: 0;
    color: var(--system-navy);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .system-dashboard-header-inner {
        min-height: 7.5rem;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .system-session-summary {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* 035: The existing authenticated login flow can also live inside the session dialog. */
.system-auth-reauth{min-height:0;background:#fff}.system-auth-reauth .system-auth-container{padding:8px 24px;min-height:0;display:block}.system-auth-reauth .system-auth-card{padding:8px 0;box-shadow:none;border:0;max-width:none;border-radius:0}.system-auth-reauth .system-auth-brand,.system-auth-reauth .system-auth-heading,.system-auth-reauth .system-auth-note{display:none}
