.login-3d-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    perspective: 1000px;
    pointer-events: none;
}

.login-page .login-container {
    position: relative;
    z-index: 2;
}

.login-page .login-box {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: loginBoxEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateY(40px) rotateX(5deg);
    opacity: 0;
    transform-style: preserve-3d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@keyframes loginBoxEntrance {
    0% {
        transform: translateY(40px) rotateX(5deg) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg) scale(1);
        opacity: 1;
    }
}

.login-page .login-box:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(37, 99, 235, 0.1);
    transition: box-shadow 0.4s ease;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    filter: blur(0px);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.shape-1 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #3498db, #2563eb);
    top: 10%;
    left: 8%;
    animation: float3d1 8s infinite alternate;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-2 {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    top: 60%;
    right: 12%;
    animation: float3d2 10s infinite alternate;
    border-radius: 50%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    bottom: 15%;
    left: 15%;
    animation: float3d3 12s infinite alternate;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-4 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    top: 25%;
    right: 20%;
    animation: float3d4 7s infinite alternate;
    border-radius: 50%;
}

.shape-5 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    top: 70%;
    left: 5%;
    animation: float3d5 9s infinite alternate;
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
}

.shape-6 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    top: 5%;
    right: 30%;
    animation: float3d6 11s infinite alternate;
    border-radius: 50%;
}

.shape-7 {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    bottom: 30%;
    right: 5%;
    animation: float3d7 8.5s infinite alternate;
    border-radius: 50% 20% 50% 20%;
}

.shape-8 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    bottom: 5%;
    right: 40%;
    animation: float3d8 6.5s infinite alternate;
    border-radius: 50%;
}

@keyframes float3d1 {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    50% {
        transform: translate3d(30px, -40px, 80px) rotateX(180deg) rotateY(90deg) scale(1.1);
    }
    100% {
        transform: translate3d(-20px, 20px, 40px) rotateX(360deg) rotateY(180deg) scale(0.9);
    }
}

@keyframes float3d2 {
    0% {
        transform: translate3d(0, 0, 0) rotateZ(0deg) scale(1);
    }
    50% {
        transform: translate3d(-40px, -30px, 60px) rotateZ(180deg) scale(1.2);
    }
    100% {
        transform: translate3d(20px, 40px, 20px) rotateZ(360deg) scale(0.85);
    }
}

@keyframes float3d3 {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg) scale(1);
    }
    50% {
        transform: translate3d(50px, -20px, 100px) rotateX(90deg) rotateZ(90deg) scale(1.15);
    }
    100% {
        transform: translate3d(-30px, -50px, 50px) rotateX(180deg) rotateZ(180deg) scale(0.9);
    }
}

@keyframes float3d4 {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    }
    50% {
        transform: translate3d(-25px, 35px, 70px) rotateY(180deg) scale(1.3);
    }
    100% {
        transform: translate3d(15px, -15px, 30px) rotateY(360deg) scale(0.8);
    }
}

@keyframes float3d5 {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale(1);
    }
    50% {
        transform: translate3d(35px, 25px, 50px) rotateX(120deg) rotateY(120deg) scale(1.1);
    }
    100% {
        transform: translate3d(-25px, -35px, 80px) rotateX(240deg) rotateY(240deg) scale(0.95);
    }
}

@keyframes float3d6 {
    0% {
        transform: translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg) scale(1);
    }
    50% {
        transform: translate3d(20px, 45px, 40px) rotateZ(150deg) rotateX(60deg) scale(1.15);
    }
    100% {
        transform: translate3d(-35px, 15px, 90px) rotateZ(300deg) rotateX(120deg) scale(0.9);
    }
}

@keyframes float3d7 {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(0deg) scale(1);
    }
    50% {
        transform: translate3d(-30px, -40px, 60px) rotateY(200deg) rotateZ(100deg) scale(1.2);
    }
    100% {
        transform: translate3d(40px, 10px, 30px) rotateY(360deg) rotateZ(200deg) scale(0.85);
    }
}

@keyframes float3d8 {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
    }
    50% {
        transform: translate3d(25px, -30px, 50px) rotateX(180deg) scale(1.25);
    }
    100% {
        transform: translate3d(-15px, 20px, 70px) rotateX(360deg) scale(0.9);
    }
}

.login-page .btn-primary {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-page .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.login-page .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.login-page .form-group input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.login-page .form-group input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.15);
}

@media (max-width: 480px) {
    .floating-shape {
        opacity: 0.35;
    }
    .shape-1, .shape-3 { display: none; }
}
