/* App chrome uses Bootswatch Simplex; prefer var(--bs-*) over hard-coded colors. */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bs-success);
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

.validation-message {
    color: var(--bs-danger);
}

.blazor-error-boundary {
    background: var(--bs-danger);
    padding: 1rem 1rem 1rem 1rem;
    color: var(--bs-danger-bg-subtle, #fff);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: var(--bs-border-color);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Font Awesome + MudBlazor buttons */
.mud-button-root .fa-solid,
.mud-button-root .fa-regular,
.mud-button-root .fa-brands,
.mud-button-root .fa-jelly,
.mud-button-root .fa-jelly-fill,
.mud-button-root .fa-jelly-duo {
    line-height: 1;
}

.mud-button-root .btn-fa {
    margin-right: 0.45rem;
}

.mud-button-icon-only {
    min-width: 2.5rem !important;
    width: 2.5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.mud-button-icon-only .btn-fa {
    margin-right: 0;
}

.container-login {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

/* Blazor circuit reconnect modal — global so dialog centering & state visibility aren't broken by CSS isolation */
#components-reconnect-modal .components-reconnect-first-attempt-visible,
#components-reconnect-modal .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal .components-reconnect-failed-visible,
#components-reconnect-modal .components-pause-visible,
#components-reconnect-modal .components-resume-failed-visible,
#components-reconnect-modal .components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 22rem;
    max-width: calc(100vw - 2rem);
    height: fit-content;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    color: #373a3c;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
}

#components-reconnect-modal .components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: var(--bs-primary, #B80009);
    color: #fff;
    padding: 0.4rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

#components-reconnect-modal button:hover {
    filter: brightness(0.9);
}

#components-reconnect-modal .components-rejoining-animation {
    line-height: 0;
}

#components-reconnect-modal .spinning-bicycle-tire-svg {
    display: block;
    animation: components-reconnect-tire-spin 2.6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes components-reconnect-tire-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* First-paint + Blazor branded loading splash */
.sag-boot-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 2rem;
    background: #fcfcfc;
}

.sag-boot-splash-embedded {
    position: relative;
    z-index: auto;
    min-height: 100vh;
    min-height: 100dvh;
}

.sag-boot-splash-hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.portal-loading-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.portal-loading-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    max-width: 22rem;
}

.portal-loading-brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #373a3c;
    line-height: 1.2;
}

.portal-loading-brand-tagline {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #777777;
}

.portal-loading-brand-wait {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: #373a3c;
    margin-top: 0.25rem;
}

.spinning-bicycle-tire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.spinning-bicycle-tire svg {
    animation: spinning-bicycle-tire-spin 2.6s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes spinning-bicycle-tire-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



