/* Spring Animation Styles */
.spring-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Ensure it's behind all other elements */
    background: linear-gradient(to bottom, #7EC0EE, #E0F7FA);
    background-image:
        linear-gradient(to bottom, #7EC0EE, #E0F7FA),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: background-color-shift 30s infinite alternate;
}

/* Sun styles */
.sun {
    position: absolute;
    top: 50px;
    right: 80px;
    width: 100px;
    height: 100px;
    z-index: 1;
    background: radial-gradient(circle, #FFD700 30%, #FFA500 70%);
    border-radius: 50%;
    box-shadow: 0 0 40px #FFD700;
    animation: pulse 4s infinite alternate;
}

.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0));
    height: 3px;
    width: 80px;
    transform-origin: left center;
}

/* SVG Tree styles */
.tree-svg {
    position: absolute;
    bottom: 0;
    width: 150px;
    height: 350px;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

.tree-svg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: bottom center;
    animation: sway 8s ease-in-out infinite;
}

/* SVG Flower styles */
.flower-svg {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: -1;
    transform-style: preserve-3d;
    perspective: 500px;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

.flower-svg.pink {
    filter: drop-shadow(0 0 3px rgba(255, 105, 180, 0.4));
}

.flower-svg.pink-2 {
    filter: drop-shadow(0 0 3px rgba(207, 72, 94, 0.4));
}

.flower-svg.purple {
    filter: drop-shadow(0 0 3px rgba(214, 80, 199, 0.4));
}

.flower-svg.leaf-2 {
    filter: drop-shadow(0 0 3px rgba(128, 210, 91, 0.4));
}

/* SVG Leaf styles */
.leaf-svg {
    position: absolute;
    width: 35px;
    height: 35px;
    z-index:-1;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
}

.leaf-svg.green {
    filter: drop-shadow(0 0 3px rgba(124, 252, 0, 0.4));
}

.leaf-svg.light-green {
    filter: drop-shadow(0 0 3px rgba(144, 238, 144, 0.4));
}

.leaf-svg.dark-green {
    filter: drop-shadow(0 0 3px rgba(0, 100, 0, 0.4));
}

.leaf-svg.yellow-green {
    filter: drop-shadow(0 0 3px rgba(173, 255, 47, 0.4));
}

.leaf-svg.spring-green {
    filter: drop-shadow(0 0 3px rgba(0, 255, 127, 0.4));
}

/* Cloud styles */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow:
        0 0 20px 5px rgba(255, 255, 255, 0.5),
        0 0 40px 10px rgba(255, 255, 255, 0.3);
    z-index: 1;
    filter: blur(3px);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud::before {
    width: 60%;
    height: 80%;
    top: -40%;
    left: 15%;
}

.cloud::after {
    width: 70%;
    height: 90%;
    top: -30%;
    right: 10%;
}

/* Wind gust styles */
.wind {
    position: absolute;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    border-radius: 100%;
    z-index: 3;
    opacity: 0;
    filter: blur(1px);
}

.wind::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 30%;
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    border-radius: 100%;
}

.wind::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    border-radius: 100%;
}

/* Animations */
@keyframes background-color-shift {
    0% {
        background-color: #7EC0EE;
    }
    50% {
        background-color: #8FD8D8;
    }
    100% {
        background-color: #A7E8E0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 40px #FFD700;
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 60px #FFD700;
        transform: scale(1.1);
    }
}

@keyframes sway {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(2deg);
    }
    50% {
        transform: translateX(-50%) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) rotate(-2deg);
    }
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

@keyframes float-right-to-left {
    0% {
        transform: translateX(100vw) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes float-leaf {
    0% {
        transform: translateX(100vw) rotate(45deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    50% {
        transform: translateX(50vw) translateY(20px) rotate(90deg);
    }
    80% {
        opacity: 0.8;
    }
    95% {
        opacity: 0;
    }
    100% {
        transform: translateX(-50px) translateY(0) rotate(180deg);
        opacity: 0;
    }
}

@keyframes float-cloud {
    0% {
        left: 100vw;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    95% {
        opacity: 0;
    }
    100% {
        left: -200px;
        opacity: 0;
    }
}

@keyframes wind-blow {
    0% {
        transform: translateX(100vw) scaleX(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(-100px) scaleX(1.5);
        opacity: 0;
    }
}

/* Make the login card semi-transparent to see the animation */
.login-card {
    background-color: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Fall theme overrides: purple/orange dusk sky and darker clouds */
.spring-background {
    background: linear-gradient(to bottom, #4b2e83, #ff7e5f);
    background-image:
        linear-gradient(to bottom, #4b2e83, #ff7e5f),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cloud {
    background: rgba(170, 170, 200, 0.6);
    box-shadow:
        0 0 20px 5px rgba(80, 60, 110, 0.4),
        0 0 40px 10px rgba(80, 60, 110, 0.25);
}

.cloud::before,
.cloud::after {
    background: rgba(170, 170, 200, 0.6);
}