/* AMS admin – global, theme-deterministic styling (does not rely on OS dark mode). */
html, body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #eef1f5;
    color: #1f2733;
    color-scheme: light;
    -webkit-font-smoothing: antialiased;
}

/*
 * <FocusOnNavigate Selector="h1" /> (Routes.razor) moves focus to the page heading after each
 * navigation for accessibility. A heading is only focusable because that component adds tabindex="-1",
 * so it never receives focus any other way — suppressing its focus ring here is safe and does not
 * affect interactive controls. Covers every heading level in case a page's title is not an <h1>
 * (e.g. RadzenText TextStyle="H4" renders an <h4>). The accessibility focus move is preserved.
 */
:is(h1, h2, h3, h4, h5, h6):focus,
:is(h1, h2, h3, h4, h5, h6):focus-visible {
    outline: none;
    box-shadow: none;
}

/* ---- Login / account pages (hand-rolled, no Radzen components) ---- */
.ams-login {
    width: 100%;
    max-width: 380px;
    margin: 12vh auto;
    padding: 2.25rem 2rem 2rem;
    background: #ffffff;
    border: 1px solid #e2e6ec;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(31, 39, 51, 0.10);
}

.ams-login h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: #1f2733;
}

.ams-field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.ams-field label { font-size: 0.85rem; margin-bottom: 0.35rem; color: #5a6573; }
.ams-field input {
    padding: 0.6rem 0.7rem;
    border: 1px solid #cbd2db;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1f2733;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ams-field input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}

.ams-error {
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f6cfca;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.ams-success {
    color: #1b5e20;
    background: #e9f5ea;
    border: 1px solid #c5e3c7;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ams-btn {
    margin-top: 0.5rem;
    padding: 0.65rem 1rem;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.15s ease;
}
.ams-btn:hover { background: #1565c0; }
.ams-btn:active { background: #0d4c9e; }
