/* Reskins DevExpress' native XAF SplashScreen (class names: loading, loading-items-center,
   loading-border, loading-floated-circle, loading-image-wrapper, loading-caption) with the
   Baplicada brand look. Pure CSS override — the component's own markup and show/hide
   mechanism (loading-hide) are untouched. */

#applicationLoadingPanel {
    background:
        radial-gradient(420px 420px at 8% 12%, rgba(251, 146, 60, .35), transparent 70%),
        radial-gradient(360px 360px at 92% 88%, rgba(234, 88, 12, .28), transparent 70%),
        radial-gradient(1200px 800px at 50% 20%, #fff8f2 0%, #fdf3e9 45%, #fbe9d7 100%);
}

#applicationLoadingPanel > .loading-items-center {
    gap: 28px;
}

.loading.loading-items-center {
    animation: ba-rise .8s cubic-bezier(.2, .8, .2, 1) both;
}

.loading-border:not(.loading-floated-circle) {
    border-color: #ffe3c7 !important;
}

.loading-floated-circle.loading-border.loading-border-primary {
    border-top-color: #ea580c !important;
    animation: ba-spin 1.4s linear infinite !important;
    filter: drop-shadow(0 0 6px rgba(234, 88, 12, .35));
}

.loading-image-wrapper.loading-items-center {
    background: linear-gradient(145deg, #fb923c, #ea580c 70%) !important;
    box-shadow: 0 12px 30px -8px rgba(234, 88, 12, .55), inset 0 1px 1px rgba(255, 255, 255, .4);
    animation: ba-pulse 2.4s ease-in-out infinite;
}

.loading-image {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .18));
    transform: scale(1.15);
}

.loading-items-center .loading-caption {
    color: #1c1917 !important;
    font-weight: 600 !important;
    position: relative;
}

.loading-items-center .loading-caption::after {
    content: ".";
    display: inline-block;
    width: 1.1em;
    text-align: left;
    vertical-align: bottom;
    animation: ba-ellipsis 1.4s steps(1, end) infinite;
}

#applicationLoadingPanel > .loading-items-center::after {
    content: "";
    width: 180px;
    height: 3px;
    border-radius: 3px;
    background-color: #ffe3c7;
    background-image: linear-gradient(90deg, transparent, #ea580c, #fb923c, transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    background-position: -40% 0;
    animation: ba-progress 1.6s ease-in-out infinite;
}

#applicationLoadingPanel::before {
    content: "baplicada";
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c9b8a8;
}

@keyframes ba-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ba-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ba-pulse {
    0%, 100% { box-shadow: 0 12px 30px -8px rgba(234, 88, 12, .55), inset 0 1px 1px rgba(255, 255, 255, .4); }
    50% { box-shadow: 0 16px 40px -6px rgba(234, 88, 12, .7), inset 0 1px 1px rgba(255, 255, 255, .5); }
}

@keyframes ba-ellipsis {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
    100% { content: "."; }
}

@keyframes ba-progress {
    to { background-position: 140% 0; }
}
