/* Splash Loading Screen - Figma Design */
/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Orange Ball Container */
.splash-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Orange Ball Image */
.splash-logo-image {
    width: 90px;
    height: 54px;
    background-image: url('/images/orange-ball-loading.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: rotateOrangeBall 1s linear infinite;
}

/* Loading Text */
.splash-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5em;
    color: #383838;
    text-align: center;
    margin-top: 10px;
    animation: blinkText 1s ease-in-out infinite;
    transition: color 0.3s ease;
}

/* Login specific styling */
.page-transition-overlay.login-loading .splash-title {
    color: #2563eb;
    animation: pulseText 1.5s ease-in-out infinite;
}

.page-transition-overlay.login-loading .splash-logo-image {
    animation: rotateOrangeBall 0.8s linear infinite, pulseScale 2s ease-in-out infinite;
}

/* Test loading specific styling */
.page-transition-overlay.test-loading .splash-title {
    color: #1a1a1a;
    animation: pulseText 1.2s ease-in-out infinite;
}

.page-transition-overlay.test-loading .splash-logo-image {
    animation: rotateOrangeBall 0.6s linear infinite, bounceScale 1.8s ease-in-out infinite;
}

.page-transition-overlay.test-loading {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Animations */
@keyframes rotateOrangeBall {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(90deg);
    }

    50% {
        transform: scale(1) rotate(180deg);
    }

    75% {
        transform: scale(1.1) rotate(270deg);
    }
}

@keyframes bounceScale {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.15) rotate(90deg);
    }

    50% {
        transform: scale(0.95) rotate(180deg);
    }

    75% {
        transform: scale(1.15) rotate(270deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-logo-image {
        width: 80px;
        height: 48px;
    }

    .splash-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .splash-logo-image {
        width: 70px;
        height: 42px;
    }

    .splash-title {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .splash-logo-image {
        width: 60px;
        height: 36px;
    }

    .splash-title {
        font-size: 12px;
    }
}