html, body {
    margin: 0;
    font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* Initial load splash shown before Blazor + MudBlazor are ready. */
.app-loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f5f8f8;
    color: #1d5f62;
}

.app-loading-text {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

/* Centered shell used by the login / sign-up / password pages. */
.auth-shell {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(160deg, #e9f2f1 0%, #f5f8f8 60%);
}

.auth-card-wrap {
    width: 100%;
    max-width: 420px;
}

/* Home navigation tiles. */
.home-tile {
    height: 100%;
    cursor: pointer;
    transition: box-shadow 120ms ease, transform 120ms ease;
    border-radius: 12px;
}

.home-tile:hover,
.home-tile:focus-visible {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    outline: none;
}

#blazor-error-ui {
    background: #ffd166;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}
