/* HRX TenantHR Cinematic Splash Stylesheet (Light Theme) */
:root {
    --bg-light: #F8FAFC;
    --bg-surface: #FFFFFF;
    --cyan-glow: #31B9C5;
    --azure-blue: #0052CC;
    --navy-text: #042650;
    --slate-text: #475569;
}

/* 1. Light Cinematic Background layers */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #F1F5F9 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 0;
    animation: bgReveal 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

@keyframes bgReveal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 2. Soft background radial highlights */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 185, 197, 0.12) 0%, rgba(0, 82, 204, 0.04) 50%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* 3. Screen edge subtle glow */
.intro-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 60%, rgba(241, 245, 249, 0.6) 100%);
    pointer-events: none;
    z-index: 10;
}

/* 4. Ambient Particle design styling */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.5;
    box-shadow: 0 0 6px rgba(49, 185, 197, 0.4);
}

.particle-white {
    position: absolute;
    background-color: var(--azure-blue);
    border-radius: 50%;
    opacity: 0.2;
}

/* 5. Glowing Ribbon SVGs or CSS curved edge lines */
.curved-ribbon {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(49, 185, 197, 0.15);
    pointer-events: none;
    z-index: 3;
}

.ribbon-left {
    width: 140vw;
    height: 140vw;
    top: 30%;
    left: -70vw;
    box-shadow: 0 0 40px rgba(49, 185, 197, 0.06), inset 0 0 40px rgba(49, 185, 197, 0.06);
    animation: ribbonPulse 6s infinite ease-in-out;
}

.ribbon-right {
    width: 120vw;
    height: 120vw;
    bottom: 40%;
    right: -60vw;
    border-color: rgba(0, 82, 204, 0.1);
    box-shadow: 0 0 30px rgba(0, 82, 204, 0.05);
    animation: ribbonPulse 8s infinite ease-in-out;
}

@keyframes ribbonPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* 6. Branding & Content Container */
.loader-content-box {
    text-align: center;
    position: relative;
    z-index: 20;
}

/* Logo Reveal Animation (Direct logo, NO card box) */
.logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.94);
    animation: logoRevealAnim 1.4s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

@keyframes logoRevealAnim {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(0.94);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

.brand-logo {
    width: 440px;
    max-width: 82vw;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(4, 38, 80, 0.08));
}

/* Tagline design */
.brand-tagline {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 7px;
    color: var(--slate-text);
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    animation: taglineReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.9s forwards;
}

@keyframes taglineReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
        letter-spacing: 9px;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 7px;
    }
}

/* 7. Loading Progress System */
.loading-system {
    width: 280px;
    margin: 32px auto 0 auto;
    opacity: 0;
    animation: fadeInSystem 0.8s ease-out 1.2s forwards;
}

@keyframes fadeInSystem {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.progress-bar-track {
    width: 100%;
    height: 3px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0052CC, #31B9C5);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(49, 185, 197, 0.5);
    transition: width 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.loading-percentage {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0052CC;
    margin-top: 10px;
    letter-spacing: 0.12em;
}

/* 8. Crossfade Overlays */
.crossfade-overlay {
    position: fixed;
    inset: 0;
    background-color: #FFFFFF;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.crossfade-overlay.active {
    opacity: 1;
}

/* Fade-out launch state */
.intro-loader.fade-out {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
