@import url('https://fonts.googleapis.com/css2?family=Gafata&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

*{

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gafata', sans-serif;    
}


body{
    background-color: #c9d6ff;
    background: linear-gradient( to right, #e2e2e2, #c9d6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
}

.container p{
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;

}

.container span {
    font-size: 12px;

}

.container a{
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
}

.container button {
    background-color: #185592;
    color:#fff;
    font-size: 15px;
    border:none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 400;
    transition: all 0.6s ease;
    box-shadow: 0 4px 6px rgba(24, 85, 146, 0.2);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    margin-top: 5%;
}

.container button:hover{
    background-color: #0d4a7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(24, 85, 146, 0.3)

}

.container button.hidden{
    background-color: transparent;
    border-color: #fff;
    border-style: solid;
    border-width: 1px;
}

.container form{
    background-color: #fff;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;

}

.container input{
    background-color: #eee;
    border:none;
    margin: 8px 0;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

.form-container{
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-In{
    left: 0;
    width: 50%;
    z-index: 2;

}

.container.active .sign-In{
    transform: translateX(100%);

}

.sign-up{
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.active .sign-up{
transform: translateX(100%);
opacity: 1;
z-index: 5;
animation: move 0.6s;
}

@keyframes move{
    0%, 49.99%{
        opacity: 0;
        z-index: 1;
    }
    50%, 100%{
        opacity: 1;
        z-index: 5;
    }
}

.social-icons{
    margin: 20px 0;
}

.social-icons a{
    border: 1px solid #ccc;
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 3px;
    width: 40px;
    height: 40px;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #B0B0B0, #D0D0D0); /* Gradiente argento */
    transform: translateY(-2px);
    box-shadow: inset 0px 0px 5px rgba(255, 255, 255, 0.6), 
                0 6px 8px rgba(176, 176, 176, 0.3); /* Effetto di profondità */
    filter: brightness(1.1); /* Leggero bagliore per un look metallico */
    transition: all 0.3s ease-in-out;
}

.social-icons a:active {
    transform: translateY(1px);
    box-shadow: inset 0px 0px 4px rgba(255, 255, 255, 0.5), 
                0 2px 4px rgba(176, 176, 176, 0.2);
    filter: brightness(1.05);
}



.toggle-container{
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    border-radius: 150px 0 0 100px;
    z-index: 1000;
}

.container.active .toggle-container{
    transform: translateX(-100%);
    border-radius: 0 150px 100px 0;
}

.toggle{
    background-color: #114a6b;
    height: 100%;
    background: linear-gradient(to right, #5c6bc0, #114a6b);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container.active .toggle{
    transform: translateX(50%);
}

.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;



}

.toggle-left{
    transform: translateX(-200%);
}

.container.active .toggle-left{
    transform: translateX(0);
}


.toggle-right{
    right: 0;
    transform: translateX(0);

}

.container.active .toggle-right{
    transform: translateX(200%);
}



