html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: #0f172a;
    background: radial-gradient(circle at 15% 15%, #dbeafe 0%, transparent 35%), radial-gradient(circle at 85% 10%, #bfdbfe 0%, transparent 32%), linear-gradient(140deg, #0f172a 0%, #1d4ed8 48%, #2563eb 100%);
    background-attachment: fixed;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

h1:focus {
    outline: none;
}

.container,
.container-fluid {
    width: min(100%, 720px);
    margin-inline: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 0.75rem;
    border-color: #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.alert {
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #16a34a;
}

.invalid {
    outline: 1px solid #dc2626;
}

.validation-message {
    color: #dc2626;
}

.blazor-error-boundary {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: 0.75rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        border-radius: 0.9rem;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }

    .btn,
    .form-control,
    .form-select,
    .input-group-text {
        font-size: 0.98rem;
    }
}
