html,
body {
    min-height: 100%;
    margin: 0;
    background: #fffaf6;
    color: #241f1c;
    font-family: Tahoma, "Segoe UI", sans-serif;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #b83f1e;
}

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

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

.validation-message {
    color: #b32121;
}

#blazor-error-ui {
    color-scheme: light only;
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: #3b1712;
    background: #fff0c9;
    box-shadow: 0 -2px 10px rgba(36, 31, 28, 0.12);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.4rem;
    left: 0.75rem;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

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

.blazor-error-boundary::after {
    content: "خطایی در اجرای این بخش رخ داد.";
}

.app-boot {
    display: grid;
    width: min(320px, calc(100% - 40px));
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
    align-content: center;
    justify-items: center;
    text-align: center;
}

.app-boot-loader {
    position: relative;
    display: grid;
    width: 108px;
    height: 108px;
    margin-bottom: 24px;
    place-items: center;
    background: rgba(255, 255, 255, .76);
    border: 1px solid #f3dfd6;
    border-radius: 34px;
    box-shadow: 0 22px 55px rgba(75, 47, 38, .12);
}

.app-boot-loader::before {
    position: absolute;
    inset: 9px;
    content: "";
    background: conic-gradient(from 15deg, transparent 0 30%, #ffb19b 52%, #e4572e 78%, transparent 79%);
    border-radius: 28px;
    animation: app-boot-spin 1.25s linear infinite;
}

.app-boot-loader::after {
    position: absolute;
    inset: 14px;
    content: "";
    background: #fffaf6;
    border-radius: 24px;
}

.app-boot-loader span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(145deg, #ff7b59, #d94824);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(228, 87, 46, .25);
    animation: app-boot-breathe 1.5s ease-in-out infinite;
}

.app-boot-brand {
    display: grid;
    gap: 6px;
}

.app-boot-brand strong {
    color: #2d2421;
    font-size: 1.18rem;
    font-weight: 950;
}

.app-boot-brand small {
    color: #8c7d77;
    font-size: .71rem;
}

.app-boot-progress {
    width: 152px;
    height: 4px;
    margin-top: 22px;
    overflow: hidden;
    background: #f0dfd7;
    border-radius: 99px;
}

.app-boot-progress span {
    display: block;
    width: var(--blazor-load-percentage, 18%);
    height: 100%;
    background: linear-gradient(90deg, #e4572e, #ff8768);
    border-radius: inherit;
    transition: width .12s ease;
}

.app-boot > p {
    margin: 11px 0 0;
    color: #8c7d77;
    font-size: .66rem;
}

@media (prefers-reduced-motion: reduce) {
    .app-boot-loader::before,
    .app-boot-loader span {
        animation: none;
    }
}

@keyframes app-boot-spin {
    to { transform: rotate(360deg); }
}

@keyframes app-boot-breathe {
    50% { transform: scale(.94); box-shadow: 0 6px 16px rgba(228, 87, 46, .18); }
}
