.erp-app-splash {
    --erp-splash-navy: #061633;
    --erp-splash-orange: var(--white-label-primary, #f04409);
    --erp-splash-cyan: var(--white-label-accent, #2fd5dd);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 12%, rgba(47, 213, 221, .20), transparent 36%),
        radial-gradient(circle at 8% 92%, rgba(240, 68, 9, .18), transparent 32%),
        linear-gradient(145deg, #020d24 0%, var(--erp-splash-navy) 52%, #0a3348 100%);
    font-family: "Segoe UI", Arial, sans-serif;
    opacity: 1;
    visibility: visible;
    transition: opacity .28s ease, visibility .28s ease;
    isolation: isolate;
}

.erp-app-splash,
.erp-app-splash * {
    box-sizing: border-box;
}

.erp-app-splash.is-session-repeat { display: none; }

.erp-app-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.erp-app-splash__content {
    position: relative;
    z-index: 2;
    width: min(700px, 100%);
    padding: clamp(30px, 6vw, 58px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: clamp(24px, 4vw, 36px);
    background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035));
    box-shadow: 0 34px 96px rgba(0, 4, 20, .42);
    backdrop-filter: blur(18px);
}

.erp-app-splash__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.erp-app-splash__mark {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

.erp-app-splash__mark img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.erp-app-splash__brand-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.erp-app-splash__brand-copy span,
.erp-app-splash__message > span {
    color: var(--erp-splash-cyan);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.erp-app-splash__brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.16rem, 4vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-app-splash__message { margin-top: clamp(48px, 9vw, 78px); }

.erp-app-splash__message > span::before {
    display: inline-block;
    width: 34px;
    height: 3px;
    margin-right: 12px;
    border-radius: 999px;
    background: var(--erp-splash-orange);
    content: "";
    vertical-align: middle;
}

.erp-app-splash__message h1 {
    max-width: 590px;
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(2rem, 7vw, 3.7rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.045em;
}

.erp-app-splash__message p {
    margin: 0;
    color: rgba(235, 246, 250, .76);
    font-size: clamp(.92rem, 2vw, 1.06rem);
}

.erp-app-splash__progress {
    width: 100%;
    height: 4px;
    margin-top: clamp(40px, 8vw, 64px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.erp-app-splash__progress span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--erp-splash-orange), var(--erp-splash-cyan));
    animation: erp-splash-progress 1.15s ease-in-out infinite alternate;
}

.erp-app-splash__halo {
    position: absolute;
    border: 1px solid rgba(47, 213, 221, .2);
    border-radius: 50%;
    pointer-events: none;
}

.erp-app-splash__halo--one { top: -190px; right: -130px; width: 550px; height: 550px; }
.erp-app-splash__halo--two { bottom: -280px; left: -210px; width: 660px; height: 660px; }

@keyframes erp-splash-progress {
    from { transform: translateX(-10%); }
    to { transform: translateX(160%); }
}

@media (max-width: 575px) {
    .erp-app-splash { padding: 18px; }
    .erp-app-splash__content { padding: 28px 24px; }
    .erp-app-splash__mark { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; }
    .erp-app-splash__mark img { width: 35px; height: 35px; }
    .erp-app-splash__message { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .erp-app-splash,
    .erp-app-splash__progress span { transition: none; animation: none; }
    .erp-app-splash__progress span { width: 72%; }
}
