:root {
    --portal-page: #f3f4f6;
    --portal-surface: #ffffff;
    --portal-border: #dfe4ea;
    --portal-text: #1c2258;
    --portal-muted: #697391;
    --portal-green: #5faf30;
    --portal-navy: #1c2258;
    --portal-gradient: linear-gradient(90deg, #5faf30 0%, #9fd3ce 54%, #1c2258 100%);
    color-scheme: light;
    font-family: "Montserrat", "Segoe UI", "Aptos", sans-serif;
    line-height: 1.5;
    font-weight: 400;
    background-color: var(--portal-page);
    color: var(--portal-text);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background-color: var(--portal-page);
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

input,
button {
    border-radius: 0.85rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #5faf30;
}

.invalid {
    outline: 1px solid #c53b3b;
}

.validation-message {
    color: #c53b3b;
}

#blazor-error-ui {
    background: #fff6d8;
    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;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1rem;
    background: var(--portal-page);
}

.loading-screen__mark {
    width: clamp(88px, 11vw, 132px);
    height: auto;
    filter: drop-shadow(0 12px 26px rgba(28, 34, 88, 0.12));
    animation: portal-loading-pulse 1.9s ease-in-out infinite;
}

.loading-screen__text {
    color: #6d76a8;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@keyframes portal-loading-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.88;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

code {
    color: var(--portal-navy);
}
