html,
body {
    margin: 0;
    height: 100%;
    background-color: #f5f5f5;
    color: #1f1f1f;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    overflow: hidden;
}

body,
#app {
    height: 100%;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #d92d20;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff7e6;
    border-top: 1px solid #ffd591;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.loading-progress {
    position: absolute;
    display: block;
    width: 6rem;
    height: 6rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d9d9d9;
    stroke-width: 0.5rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1677ff;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    inset: calc(20vh + 2.5rem) 0 auto 0;
    text-align: center;
    font-size: 0.875rem;
    color: #595959;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.login-page {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.login-shell {
    width: min(100%, 26rem);
    display: grid;
    gap: 1rem;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.login-brand-logo {
    width: 3rem;
    height: 3rem;
}

.login-brand-wordmark {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1f2937;
}

.login-card {
    width: 100%;
}

.login-card-header {
    padding: 1.25rem 1.25rem 0;
}

.login-card-header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-form {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.login-field {
    display: grid;
    gap: 0.375rem;
}

.login-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #434343;
}

.login-error {
    font-size: 0.875rem;
    color: #d92d20;
}

.login-actions {
    display: flex;
    justify-content: flex-start;
}

.login-version {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: #595959;
}

.page-section {
    height: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 1.5rem;
    overflow: hidden;
}

.page-section h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.page-intro-block {
    text-align: center;
}

.page-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title-logo {
    width: 2rem;
    height: 2rem;
}

.page-intro {
    margin: 1rem 0 0;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #434343;
}

.page-subtitle {
    margin: 2rem 0 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.home-page-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-grid-container {
    flex: 1 1 auto;
    min-height: 0;
}

.page-section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .page-section {
        padding: 1rem;
    }
}
