@import url("./variables.css");


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    margin: 0;

    background:
        var(--gradient-background),
        var(--color-background);

    color:
        var(--color-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input,
select,
textarea {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


button {
    border: 0;
}


a {
    color: inherit;
    text-decoration: none;
}


img,
svg {
    display: block;
    max-width: 100%;
}


/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.container {
    width:
        min(
            calc(100% - 40px),
            var(--container-width)
        );

    margin-inline: auto;
}


/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */

.gradient-text {
    background:
        var(--gradient-primary);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}


.eyebrow {
    display: inline-block;

    color:
        var(--color-primary);

    font-size: 0.76rem;
    font-weight: 750;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline:
        2px solid var(--color-primary);

    outline-offset: 3px;
}


::selection {
    color: white;

    background:
        var(--color-primary);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}


::-webkit-scrollbar-track {
    background:
        var(--color-background);
}


::-webkit-scrollbar-thumb {
    background:
        var(--color-surface-secondary);

    border-radius:
        var(--radius-pill);
}


::-webkit-scrollbar-thumb:hover {
    background:
        var(--color-surface-hover);
}


/* =========================================================
   INITIAL BLAZOR LOADING
   ========================================================= */

.initial-loader {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 14px;
}


.initial-loader__logo {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    color: white;

    background:
        var(--gradient-primary);

    border-radius:
        15px;

    font-size: 1.25rem;
    font-weight: 800;

    box-shadow:
        0 15px 45px
        rgba(124, 92, 255, 0.25);
}


.initial-loader__text {
    color:
        var(--color-text-muted);

    font-size: 0.87rem;
}


/* =========================================================
   BLAZOR ERROR
   ========================================================= */

#blazor-error-ui {
    display: none;

    position: fixed;

    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 10000;

    padding: 14px 18px;

    color: white;

    background:
        var(--color-danger);

    border-radius:
        var(--radius-md);

    box-shadow:
        var(--shadow-medium);
}


#blazor-error-ui .reload {
    margin-left: 12px;

    font-weight: 700;

    text-decoration: underline;
}


#blazor-error-ui .dismiss {
    float: right;

    margin-left: 15px;

    cursor: pointer;
}


/* =========================================================
   AUTH FORMS
   ========================================================= */

.auth-form {
    display: flex;
    flex-direction: column;

    gap:
        var(--spacing-4);
}


.auth-form__alert {
    padding:
        12px 14px;

    color: #ff9ca4;

    background:
        rgba(239, 98, 108, 0.1);

    border:
        1px solid rgba(239, 98, 108, 0.25);

    border-radius:
        var(--radius-md);

    font-size: 0.85rem;
    line-height: 1.5;
}


.auth-form__submit {
    width: 100%;

    margin-top:
        var(--spacing-2);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container-width)
            );
    }

}