html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Aptos", "Segoe UI Variable Display", "Yu Gothic UI", sans-serif;
    color: #f5f7fb;
    background:
        radial-gradient(circle at top left, rgba(70, 150, 255, 0.28), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(255, 140, 92, 0.24), transparent 24%),
        linear-gradient(180deg, #07101b 0%, #0c1526 52%, #111827 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    padding: 0.9rem 3.4rem 0.9rem 1.25rem;
    background: rgba(11, 18, 32, 0.92);
    color: #f5f7fb;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    cursor: pointer;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #7a1f24, #b32121);
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}
