.loader {
    width: 4.8px;
    height: 4.8px;
    display: inline-block;
    margin-top: 20px;
    position: relative;
    border-radius: 4px;
    color: #FFF;
    background: currentColor;
    box-sizing: border-box;
    animation: animloader 0.3s 0.3s linear infinite alternate;
    background: #eab231;
}

.loader-left {
    display: inline-block;
    position: absolute;
    left: -10px;
    top: -15px;
    border-radius: 4px;
    animation: animloaderLeft 0.3s 0.45s linear infinite alternate;
    background: #39c3ee;
    width: 5px;
    height: 36px;
}

.loader::before {
    background-color: #2db77d !important;
}

    .loader::after,
    .loader::before {
        content: '';
        box-sizing: border-box;
        width: 4.8px;
        height: 4.8px;
        border-radius: 4px;
        background: currentColor;
        position: absolute;
        left: 0;
        top: 15px;
        animation: animloader 0.3s 0.45s linear infinite alternate;
    }

.loader::after {
    top: -15px;
    animation-delay: 0s;
    background: #df205c;
}

@keyframes animloader {
    0% {
        width: 4.8px;
    }

    100% {
        width: 48px;
    }
}

@keyframes animloaderLeft {
    0% {
        height: 4.8px;
    }

    100% {
        height: 38px;
    }
}

/* ------------------------------------------------------------------ */
/* Scoped spinner overlay - rendered into a host container by JS.     */
/* The overlay is absolutely positioned and fills its host element,   */
/* which JS forces to position:relative if it isn't already.          */
/* ------------------------------------------------------------------ */
.eng-scoped-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
    pointer-events: auto;
}

.eng-scoped-spinner-overlay--backdrop {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: brightness(85%);
    -webkit-backdrop-filter: brightness(85%);
}

/* Page-level hosts (new-UI layout scopes, the workflow page) contain Engini.Ui Drawers (fixed,
   z-[3000]): lift their overlay above them. Child combinator leaves in-place spinners under drawers. */
.eng-scoped-spinner-host--over-drawers > .eng-scoped-spinner-overlay {
    z-index: 3050;
}

/* ------------------------------------------------------------------ */
/* THE new-UI ring. Every new-UI spinner in the product is this one    */
/* rule - the classes below only change its size via the custom        */
/* properties. Add a variant here rather than a second ring anywhere   */
/* else.                                                               */
/*                                                                     */
/* Plain CSS (no Tailwind) on purpose: this file is linked directly by */
/* index.html AND by the standalone React pages (register.html,        */
/* enginiwebpage.html), so it needs no tailwind rebuild and no bundle. */
/* A future standalone page opts in with two lines:                    */
/*                                                                     */
/*     <link rel="stylesheet" href="/css/cmps/spinner.css">            */
/*     <div class="eng-spinner" role="status" aria-label="Loading">    */
/* ------------------------------------------------------------------ */
.eng-spinner,
.eng-scoped-spinner-circle,
.eng-btn-spinner {
    --eng-spinner-size: 40px;
    --eng-spinner-thickness: 4px;
    --eng-spinner-track: #DBEAFE;
    --eng-spinner-accent: #2563EB;

    box-sizing: border-box;
    width: var(--eng-spinner-size);
    height: var(--eng-spinner-size);
    border: var(--eng-spinner-thickness) solid var(--eng-spinner-track);
    border-top-color: var(--eng-spinner-accent);
    border-radius: 50%;
    animation: eng-scoped-spin 1s linear infinite;
}

/* Size variants - override the size tokens only. */
.eng-spinner--sm {
    --eng-spinner-size: 24px;
    --eng-spinner-thickness: 3px;
}

.eng-spinner--lg {
    --eng-spinner-size: 60px;
    --eng-spinner-thickness: 5px;
}

.eng-scoped-spinner-gif {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Same ring, sized to sit inside a button next to its label. Used by the
   auth-flow submit buttons (accept-invitation, SSO login, the static
   register page) so an in-button spinner matches the overlay spinner
   instead of falling back to a FontAwesome fa-spinner-third icon. */
.eng-btn-spinner {
    display: inline-block;
    --eng-spinner-size: 16px;
    --eng-spinner-thickness: 2px;
}

@keyframes eng-scoped-spin {
    to { transform: rotate(360deg); }
}
