:root {
    --mc-bg-a: #e6f4f1;
    --mc-bg-b: #edf5ff;
    --mc-bg-c: #fff8eb;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 540px at 0% -10%, var(--mc-bg-a), transparent 60%),
        radial-gradient(1100px 500px at 100% -5%, var(--mc-bg-b), transparent 60%),
        linear-gradient(180deg, #f7fafc, #eef3f9);
}

#app {
    min-height: 100vh;
}

.login-layout {
    min-height: 100vh;
    background:
        radial-gradient(860px 360px at 20% -5%, #d8fbf4, transparent 60%),
        radial-gradient(840px 350px at 100% 0%, #deebff, transparent 58%),
        linear-gradient(180deg, #f8fbff 0%, #eef2f8 100%);
}

.login-layout__content {
    min-height: 100vh;
}

.loading-progress {
    display: block;
    margin: 20vh auto 1rem;
    width: 80px;
    height: 80px;
}

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

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

.loading-progress-text {
    text-align: center;
    color: #334155;
    font-weight: 700;
}

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

.app-subtitle {
    opacity: 0.78;
}

.page-header {
    margin-bottom: 1rem;
}

.page-header h1,
.page-header h2 {
    margin: 0;
    font-weight: 800;
}

.page-header p {
    margin: 0.35rem 0 0;
    color: #475569;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.action-card {
    border-radius: 16px;
    border: 1px solid #dbe7ff;
    background: linear-gradient(165deg, #ffffff, #f4f8ff);
}

.action-card h3 {
    margin-top: 0;
}

.section-paper {
    border-radius: 16px;
}

.section-paper table {
    width: 100%;
}

.status-area {
    margin-bottom: 1rem;
}

.loading-wrap {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.text-center {
    text-align: center;
}

#blazor-error-ui {
    background: #fff3cd;
    border-top: 1px solid #f59e0b;
    bottom: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.15);
    color: #78350f;
    display: none;
    left: 0;
    padding: 0.75rem 1rem;
    position: fixed;
    right: 0;
    z-index: 9999;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

@media (max-width: 768px) {
    .app-subtitle {
        display: none;
    }
}
