/* Application-level styles. The design system itself lives in the Sinespace.Web.Design package
   and is imported here; nothing in this file may redefine a token. */

@import '/_content/Sinespace.Web.Design/sinespace-worlds.css';

/* The badge is nested in the form, before the positioned footer. Keep it above the
   page chrome so the footer cannot paint over Google's default auto stacking level. */
.grecaptcha-badge { z-index: 100; }

/* Blazor form validation, restyled onto the system's status colours. */
.valid.modified:not([type=checkbox]) { box-shadow: inset 0 0 0 1px var(--sw-success); }
.invalid { box-shadow: inset 0 0 0 1px var(--sw-error); }
.validation-message { font: var(--type-caption); color: var(--sw-error); }

/* Blazor's error strip and boundary, restyled from the template default. */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: var(--space-4) var(--space-5);
    background: var(--sw-error-bg);
    box-shadow: inset 0 1px 0 var(--sw-error), 0 -4px 24px -8px rgba(0, 0, 0, .6);
    color: var(--text-primary);
    font: var(--type-body-4);
}
#blazor-error-ui .reload { color: var(--sw-error); text-decoration: underline; margin-inline-start: var(--space-3); }
#blazor-error-ui .dismiss { cursor: pointer; float: right; font-size: 18px; line-height: 1; }

.blazor-error-boundary {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    background: var(--sw-error-bg);
    box-shadow: inset 0 0 0 1px var(--sw-error);
    color: var(--text-primary);
    font: var(--type-body-4);
}
.blazor-error-boundary::after { content: "Something went wrong loading this section."; }
