/* ==========================================================================
   STILE LOGIN V3 - FIX MANI
   ========================================================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f0f2f5;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Avatar nel cerchio */
.avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    margin-bottom: -60px;
    z-index: 100;
    overflow: hidden;
    pointer-events: none;
}

.avatar-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.face-img {
    z-index: 10;
}

.pupils-img {
    z-index: 20;
    transition: transform 0.15s ease-out;
}

/* MANI - REGOLE INDIPENDENTI */
.hand-img {
    z-index: 30;
    opacity: 0;
    /* Nascoste di default */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}

/* Posizione di partenza (Sotto il cerchio) */
#hand-l {
    transform: translateY(100%);
}

#hand-r {
    transform: translateX(20px) translateY(100%);
}

/* 20px a dx su PC */

/* POSIZIONE ATTIVA (Quando clicchi sulla password) */
#hand-l.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#hand-r.active {
    opacity: 1 !important;
    transform: translateX(20px) translateY(0) !important;
}

/* Card e Form */
.login-card {
    background: white;
    padding: 85px 35px 40px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
    text-align: center;
}

.login-card input {
    width: 100%;
    padding: 18px;
    margin: 12px 0;
    border: 2px solid #edf2f7;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    background: #fdfdfd;
}

.btn-login {
    width: 100%;
    padding: 18px;
    background: #ec8300;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 15px;
}

/* FIX PER SMARTPHONE */
@media (max-width: 480px) {
    .avatar-wrapper {
        width: 150px;
        height: 150px;
    }

    /* Riducendo lo spostamento della mano destra per non farla uscire dal cerchio piccolo */
    #hand-r {
        transform: translateX(5px) translateY(100%);
    }

    #hand-r.active {
        transform: translateX(5px) translateY(0) !important;
    }
}