/* Blazor's own UI chrome: the reconnect modal and the error banner.
   These rules lived in site.css, which is not loaded - production never loaded it
   either, and linking it collapses the signup layout. #blazor-error-ui in particular
   carries the display:none that keeps the banner hidden until a circuit actually
   fails; without it the "connection to the server was lost" bar shows on every
   page load. */

#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        align-items: center;
        background: rgba(15, 23, 42, 0.58);
        bottom: 0;
        display: flex;
        justify-content: center;
        left: 0;
        padding: 1.5rem;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1100;
    }

    #components-reconnect-modal.components-reconnect-hide {
        display: none;
    }

    #components-reconnect-modal .components-reconnect-dialog {
        background: #fff;
        border-radius: 1rem;
        box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
        max-width: 32rem;
        padding: 1.5rem;
        width: min(100%, 32rem);
    }

    #components-reconnect-modal .components-reconnect-dialog h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    #components-reconnect-modal .components-reconnect-dialog p {
        margin-bottom: 1rem;
    }

    #components-reconnect-modal .components-reconnect-button {
        align-items: center;
        background: linear-gradient(90deg, #0481c1, #0d8dd9, #0a9ed5, #0294d1f7 100%);
        border-radius: 999px;
        color: #fff;
        display: inline-flex;
        font-weight: 700;
        justify-content: center;
        min-height: 2.75rem;
        padding: 0.75rem 1.25rem;
        text-decoration: none;
    }

#blazor-error-ui {
    background: lightyellow;
    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;
    }
