html, body {
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #f3f6fb;
    color: #172033;
    margin: 0;
    height: 100%;
}

h1:focus {
    outline: none;
}

/* ── Login shell ──────────────────────────────────────────────────── */

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 360px;
}

.login-card {
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.login-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #172033;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-input {
    border: 1.5px solid #ccd6e8;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    color: #172033;
    background: #f3f6fb;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.login-input:focus {
    border-color: #4a90d9;
    background: #fff;
}

.login-error {
    font-size: 0.82rem;
    color: #c0392b;
}

.login-btn {
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: background 0.15s;
}

.login-btn:hover {
    background: #3a7bc8;
}

/* ── Pre-load placeholder ─────────────────────────────────────────── */

.preload-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.preload-logo {
    font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ccd6e8;
}

/* ── Not found ────────────────────────────────────────────────────── */

.not-found {
    padding: 2rem;
    text-align: center;
}

/* ── Blazor boilerplate ───────────────────────────────────────────── */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
