/* ==========================================================
   SIPINTAR - PKBM Khoiru Ummah Pekanbaru - SPLASH SCREEN & ACTION OVERLAY
   ========================================================== */

/* --- Splashscreen Overlay --- */
.asetku-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.asetku-splash-overlay.hide-splash {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    pointer-events: none;
}

.asetku-splash-content {
    text-align: center;
    color: #ffffff;
    max-width: 420px;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.25);
    animation: asetkuFadeUp 0.8s ease-out forwards;
}

/* Logo & Pulsing Glow Ring */
.asetku-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asetku-logo-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #3b82f6);
    animation: asetkuSpin 1s linear infinite, asetkuGlowPulse 2s ease-in-out infinite alternate;
    filter: blur(4px);
    opacity: 0.8;
}

.asetku-splash-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.asetku-splash-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.asetku-splash-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a8cf45;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.asetku-splash-desc {
    font-size: 0.825rem;
    color: #94a3b8;
    margin-bottom: 1.75rem;
}

/* Progress Track & Bar */
.asetku-splash-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.asetku-splash-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    border-radius: 999px;
    transition: width 0.05s linear;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.asetku-splash-timer {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.5px;
}

/* --- Action Overlay (Login / Logout Loading) --- */
.asetku-action-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.asetku-action-overlay.active {
    opacity: 1;
    visibility: visible;
}

.asetku-action-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.3);
    animation: asetkuPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.asetku-action-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(129, 140, 248, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.asetku-action-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
    color: #4ade80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: asetkuBounce 0.5s ease forwards;
}

.asetku-action-logout-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: asetkuBounce 0.5s ease forwards;
}

/* Animations Keyframes */
@keyframes asetkuSpin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes asetkuGlowPulse {
    0% {
        opacity: 0.5;
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        filter: blur(10px);
    }
}

@keyframes asetkuFadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes asetkuPopIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

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

@keyframes asetkuBounce {
    0% {
        transform: scale(0.5);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Modal Login Pop-In Animation after Splash */
.asetku-modal-login-entry {
    animation: asetkuModalPopIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes asetkuModalPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(24px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}