/* ========================================================================
   Splash Screen — Altius CSF Tarang UnLab
   Redesigned per mockup unlab-01-auth-login.html (splash screen)
   ======================================================================== */

body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #282A65 0%, #1E1F4D 40%, #151636 100%);
    color: #F9FAFB;
    font-family: 'Inter', 'Noto Sans', sans-serif;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated radial glow overlay */
body fuse-splash-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(30, 150, 247, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(4, 155, 216, 0.06) 0%, transparent 50%);
    animation: splashGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

/* Subtle grid pattern overlay */
body fuse-splash-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: linear-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Logo wrapper (Altius + plus + CSF) */
body fuse-splash-screen .splash-logos {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: logoSlideIn 0.8s ease-out forwards;
}

body fuse-splash-screen .splash-logo-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

body fuse-splash-screen .splash-logo-card img {
    height: 64px;
    width: auto;
    border-radius: 0.5rem;
    display: block;
}

body fuse-splash-screen .splash-logo-plus {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1;
}

/* Title block */
body fuse-splash-screen .splash-title {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem 0;
}

body fuse-splash-screen .splash-badge {
    display: inline-block;
    background: linear-gradient(90deg, #1E96F7, #049BD8);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 1.5rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(30, 150, 247, 0.3);
    position: relative;
    z-index: 10;
}

body fuse-splash-screen .splash-tagline {
    position: relative;
    z-index: 10;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 300;
    max-width: 32rem;
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
}

body fuse-splash-screen .splash-tagline strong {
    color: #1E96F7;
    font-weight: 500;
}

/* Loading dots — keeps Fuse markup compatibility */
body fuse-splash-screen .spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

body fuse-splash-screen .spinner > div {
    width: 10px;
    height: 10px;
    background-color: #1E96F7;
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.4s ease-in-out infinite;
}

body fuse-splash-screen .spinner .bounce1 { animation-delay: 0s; }
body fuse-splash-screen .spinner .bounce2 { animation-delay: 0.2s; }
body fuse-splash-screen .spinner .bounce3 { animation-delay: 0.4s; }

/* Bottom tagline */
body fuse-splash-screen .splash-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8125rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    z-index: 10;
}

/* Animations */
@keyframes splashGlow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, 2%) scale(1.05); }
}

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40%           { opacity: 1;   transform: scale(1.2); }
}

@keyframes logoSlideIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Hide on app boot */
body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
