/* Shared base styles (login, error pages). The admin has its own stylesheet: admin.css. */
html { font-size: 15px; }
body { min-height: 100vh; }
:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }

/*
 * Reserve room for validation messages. Otherwise correcting a field makes its message disappear on blur, the layout
 * jumps up, and the mouse-up of a click on "Save" lands beside the button, so the click is silently lost.
 */
[data-valmsg-for] { display: block; min-height: 1.35em; }

/* Blazor's unhandled-error banner (shown when the connection to the server is lost or a component throws). */
#blazor-error-ui {
    background: lightyellow;
    color: #333;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
