h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ── Login / Account pages ─────────────────────────────── */

.auth-page {
    /* No min-height:100vh — this page renders inside the MudBlazor shell (64px app-bar + container padding),
       so forcing full viewport height pushed the total past 100vh and produced a scrollbar. The shell already
       fills the viewport and the background is white, so the card just needs top spacing. */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    padding: 7vh 1rem 2rem;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.12);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: .75rem 0 .25rem;
}

.auth-header p {
    color: #666;
    font-size: .9rem;
    margin: 0;
}

.auth-error {
    background: #fdecea;
    color: #c62828;
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: .35rem;
    letter-spacing: .01em;
}

.auth-field input {
    width: 100%;
    padding: .7rem 1rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 7px;
    font-size: .95rem;
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    background: #fafafa;
    color: #1a1a1a;
}

.auth-field input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25,118,210,.12);
    background: #fff;
}

.auth-field input::placeholder {
    color: #aaa;
}

.auth-validation {
    display: block;
    color: #c62828;
    font-size: .78rem;
    margin-top: .25rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .75rem 0 1.25rem;
    font-size: .875rem;
    color: #555;
}

.auth-remember input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: #1976d2;
}

.auth-btn {
    width: 100%;
    padding: .8rem;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .02em;
    transition: background .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(25,118,210,.25);
}

.auth-btn:hover {
    background: #1565c0;
    box-shadow: 0 4px 12px rgba(25,118,210,.35);
}

.auth-btn:active {
    background: #0d47a1;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.auth-links a {
    color: #1976d2;
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
}

.auth-links a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* "or" separator between password sign-in and external providers */
.auth-divider {
    display: flex;
    align-items: center;
    color: #9aa0a6;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e6e6e6;
}

.auth-divider::before { margin-right: .75rem; }
.auth-divider::after { margin-left: .75rem; }

.auth-external-form { margin: 0; }

/* External-provider (SSO) button — white with subtle border, provider logo on the left */
.auth-external-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .75rem;
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #d0d0d0;
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.auth-external-btn + .auth-external-btn { margin-top: .6rem; }

.auth-external-btn:hover {
    background: #f7f9fc;
    border-color: #b8b8b8;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.auth-external-btn svg { flex: 0 0 auto; }

/* ── Upload Sessions ───────────────────────────────────── */

/* Soft "off red" tint for soft-deleted sessions in the admin table. Global (not scoped) because MudBlazor
   renders the <tr> outside any component's CSS scope. Also targets the cells and beats the hover rule. */
.mud-table-row.session-deleted,
.mud-table-row.session-deleted > td {
    background-color: rgba(244, 67, 54, 0.12) !important;
}

.mud-table-hover .mud-table-row.session-deleted:hover,
.mud-table-hover .mud-table-row.session-deleted:hover > td {
    background-color: rgba(244, 67, 54, 0.20) !important;
}
