/* Login Transition Animation - Clean & Elegant */
/* GPU-accelerated, respects reduced motion */

/* ============================================
   TRANSITION OVERLAY CONTAINER
   ============================================ */
#login-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d1f0d 0%, #1a3a1a 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
    will-change: opacity;
}

#login-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   PARTICLE CANVAS (Subtle Background)
   ============================================ */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================
   LOGO & WELCOME CONTAINER
   ============================================ */
.transition-logo-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.transition-logo {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: translateY(10px);
    filter: brightness(0) invert(1);
    animation: logoFadeIn 0.5s ease-out 0.1s forwards;
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255, 255, 255, 0.15));
    }
}

/* ============================================
   WELCOME TEXT
   ============================================ */
.transition-welcome {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(8px);
    animation: welcomeFadeIn 0.4s ease-out 0.35s forwards;
}

@keyframes welcomeFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DASHBOARD ENTRANCE ANIMATION
   ============================================ */
.dashboard-entrance {
    animation: dashboardSlideIn 0.4s ease-out forwards;
}

@keyframes dashboardSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .transition-logo,
    .transition-welcome,
    .dashboard-entrance {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
    
    #particle-canvas {
        display: none;
    }
}

