h1:focus {
    outline: none;
}

/* ===== Экран входа ===== */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, #1a1d23 0%, #111217 60%);
}

.login-card {
    width: 380px;
    max-width: 92vw;
    padding: 40px 36px;
    background: #181b1f;
    border: 1px solid #2c3235;
    border-radius: 6px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ccccdc;
}

/* Нативные поля статически отрендеренной формы входа — тёмные, под Grafana. */

.form-field {
    margin-bottom: 1.1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: #9da5b8;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #ccccdc;
    background: #111217;
    border: 1px solid #2c3235;
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:hover {
    border-color: #4a515c;
}

.form-input:focus {
    outline: none;
    border-color: #3d71d9;
    box-shadow: 0 0 0 3px rgba(61, 113, 217, 0.2);
}

/* ===== Панели в духе Grafana ===== */

.panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: 16px;
    height: 100%;
    box-sizing: border-box;
}

.panel-title {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 10px;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
}

.stat-hint {
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 4px;
}

#blazor-error-ui {
    background: #f2cc0c;
    color: #111217;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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