body {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    /* background-image: url("images/sfondo_comm.avif"); */
    /* background-image: url("./images/sfondo_comm.jpg"); */ /* Link all'immagine direttamente da login.php */
    background-image: url("../../images/sfondo_comm.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    position: relative;
}
.login-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    margin-right: 30%;
    max-width: 450px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}
.login-container img {
    width: 120px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}
.form-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.btn-primary {
    background: linear-gradient(45deg, #36e7ff, #e89cf7);
    border: none;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
    width: 100%;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #e89cf7, #36e7ff);
    /* background: linear-gradient(45deg, #673ab7, #ff4081); */
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}
.social-login {
    margin-top: 20px;
}
.social-login a {
    color: white;
    font-size: 28px;
    margin: 0 15px;
    transition: 0.3s;
    padding: 10px;
}
.social-login a:hover {
    color: #36e7ff;
    transform: scale(1.1);
}
/* Animation for floating logo */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-container {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideFadeIn 1s ease-out forwards;
    animation-delay: 0.3s;
}
@media (max-width: 768px) {
    .login-container {
        margin: 0 30px;
    }
}
