/* =============================== */
/* 🚀 NurseXplore Admin - Splash Screen (Premium Glass UI v2) */
/* =============================== */

body.center-page {
    background: var(--gradient-bg);
    background-size: 500% 500%;
    animation: gradientFlow 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

/* 🌟 Splash Card */
.nx-splash {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 440px;
    width: 100%;
    animation: popUp 0.6s ease;
    overflow: hidden;
    z-index: 2;
}

/* 🌟 Shimmer Layer */
.nx-splash::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -60%;
    width: 220%;
    height: 220%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%);
    animation: rotateGlow 8s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateGlow {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 🪩 Animated Logo Wrapper */
.logo-wrapper {
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255,255,255,0.15);
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25), 0 0 12px var(--secondary-color);
    position: relative;
    z-index: 1;
    animation: float 2.5s ease-in-out infinite;
}

/* 🚀 Logo Image */
.splash-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* 🧊 Titles */
.nx-splash h1 {
    font-size: 1.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
    z-index: 1;
    position: relative;
    animation: fadeInUp 0.7s ease-in-out;
}

.brand-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 4px rgba(0,242,254,0.3);
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    z-index: 1;
    position: relative;
    animation: fadeInUp 1s ease-in-out;
}

/* 🌈 Loader Dots */
.loader-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    animation: fadeIn 1.2s ease-in-out;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: pulse 1.2s infinite ease-in-out;
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.3);
}

.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

/* 🌀 Dot Animation */
@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50%      { transform: scale(1.4); opacity: 1; }
}

/* 💫 Entrance Animations */
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popUp {
    0%   { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%     { transform: translateY(-6px); }
}

/* 📱 Mobile Optimization */
@media (max-width: 480px) {
    .nx-splash {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .logo-wrapper {
        width: 80px;
        height: 80px;
    }

    .splash-logo {
        width: 50px;
        height: 50px;
    }

    .nx-splash h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }
}
