/**
 * Wave Background Animation Styles
 * Calm, fluid background effect for signin page
 * Color scheme: white, gray, light yellow
 */

/* Override parent container backgrounds to show the wave animation */
/* These override the inline styles in the template */
html, body {
    background: transparent !important;
}

.wrapper {
    background-color: transparent !important;
    background: transparent !important;
}

.wrapper.bg-light {
    background-color: transparent !important;
    background: transparent !important;
}

.body.flex-grow-1 {
    background-color: transparent !important;
    background: transparent !important;
}

.body .container-fluid {
    background-color: transparent !important;
    background: transparent !important;
}

/* Header also needs to be transparent */
.header.bg-light {
    background-color: transparent !important;
    background: transparent !important;
}

/* Canvas container - full screen behind content */
.wave-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f0 50%, #fffef8 100%);
}

.wave-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure the login form floats above the background */
.center-form {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Subtle ambient glow overlay */
.wave-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 250, 230, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(245, 245, 240, 0.3) 0%, transparent 50%);
    animation: glowShift 20s ease-in-out infinite alternate;
}

@keyframes glowShift {
    0% {
        opacity: 0.6;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) translate(-2%, 2%);
    }
    100% {
        opacity: 0.6;
        transform: scale(1) translate(2%, -2%);
    }
}

/* Particle highlights layer */
.wave-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
