/* Login Button Styles */
.login-btn {
    background: linear-gradient(135deg, #2EA9F6 0%, #7362FE 100%);
    color: white;
    border: none;
    border-radius: 42px;
    padding: 0.4vh 0.6vw;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75vw;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3vw;
    transition: all 0.3s ease;
    text-decoration: none;
    position: absolute;
    right: 8vw;
    top: 2.42vh;
    width: 9vw;
    height: 4.43vh;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 169, 246, 0.4);
}

.login-btn i {
    font-size: 16px;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    top: 70%;
    right: 12.47vw;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #4758f9;
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
}

.user-dropdown-item.home-link,
.user-dropdown-item.logout-link {
    background-color: #E3F2FD;
    color: #2196F3;
}

.user-dropdown-item.home-link:hover,
.user-dropdown-item.logout-link:hover {
    background-color: #BBDEFB;
    color: #1976D2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-card {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px 15px 25px;
    border-bottom: none;
    background: #f8faff;
    border-radius: 20px 20px 0 0;
}

.modal-card-title {
    color: #4758f9;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin: 0;
}

.delete {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.delete:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.delete::before {
    content: '×';
    font-size: 24px;
    line-height: 1;
}

.modal-card-body {
    padding: 30px 25px 25px 25px;
}

.field {
    margin-bottom: 20px;
}

.control {
    position: relative;
}

.input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input::placeholder {
    font-family: 'Montserrat', sans-serif;
    color: #999;
}

.input:focus {
    outline: none;
    border-color: #4758f9;
}

.input-lg {
    font-size: 1.18rem;
    padding: 1.15rem 1.4rem 1.15rem 3rem;
}

.has-icons-left .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.is-fullwidth {
    width: 100%;
}

.login-submit-modern {
    background: linear-gradient(135deg, #2EA9F6 0%, #7362FE 100%);
    color: white;
    border: none;
    padding: 1.15rem 0;
    font-weight: 600;
    border-radius: 42px;
    font-size: 1.22rem;
    box-shadow: 0 4px 18px rgba(46, 169, 246, 0.3);
    transition: all 0.3s ease;
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
}

.login-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 169, 246, 0.4);
}

.login-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messaggi di errore e stato */
#login-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    text-align: center;
    margin-top: 0.5rem;
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4758f9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-card {
        width: 95%;
        margin: 20px;
    }
    
    .modal-card-head {
        padding: 15px 20px 10px 20px;
    }
    
    .modal-card-body {
        padding: 20px;
    }
    
    .modal-card-title {
        font-size: 1.3rem;
    }
    
    .input-lg {
        font-size: 1rem;
        padding: 1rem 1.2rem 1rem 2.5rem;
    }
    
    .login-submit-modern {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
}


em 0;
    }
}


ogin-btn {
    background: linear-gradient(135deg, #2EA9F6 0%, #7362FE 100%);
    color: white;
    border: none;
    border-radius: 42px;
    padding: 0.4vh 0.6vw;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75vw;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3vw;
    transition: all 0.3s ease;
    text-decoration: none;
    position: absolute;
    right: 8vw;
    top: 2.42vh;
    width: 9vw;
    height: 4.43vh;
    justify-content: center;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 169, 246, 0.4);
}

.login-btn i {
    font-size: 16px;
}

/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    top: 70%;
    right: 12.47vw;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #4758f9;
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
}

.user-dropdown-item.home-link,
.user-dropdown-item.logout-link {
    background-color: #E3F2FD;
    color: #2196F3;
}

.user-dropdown-item.home-link:hover,
.user-dropdown-item.logout-link:hover {
    background-color: #BBDEFB;
    color: #1976D2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-card {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px 15px 25px;
    border-bottom: none;
    background: #f8faff;
    border-radius: 20px 20px 0 0;
}

.modal-card-title {
    color: #4758f9;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin: 0;
}

.delete {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.delete:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.delete::before {
    content: '×';
    font-size: 24px;
    line-height: 1;
}

.modal-card-body {
    padding: 30px 25px 25px 25px;
}

.field {
    margin-bottom: 20px;
}

.control {
    position: relative;
}

.input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input::placeholder {
    font-family: 'Montserrat', sans-serif;
    color: #999;
}

.input:focus {
    outline: none;
    border-color: #4758f9;
}

.input-lg {
    font-size: 1.18rem;
    padding: 1.15rem 1.4rem 1.15rem 3rem;
}

.has-icons-left .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
}

.button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.is-fullwidth {
    width: 100%;
}

.login-submit-modern {
    background: linear-gradient(135deg, #2EA9F6 0%, #7362FE 100%);
    color: white;
    border: none;
    padding: 1.15rem 0;
    font-weight: 600;
    border-radius: 42px;
    font-size: 1.22rem;
    box-shadow: 0 4px 18px rgba(46, 169, 246, 0.3);
    transition: all 0.3s ease;
    margin-top: 0.2rem;
    letter-spacing: 0.01em;
}

.login-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 169, 246, 0.4);
}

.login-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messaggi di errore e stato */
#login-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    text-align: center;
    margin-top: 0.5rem;
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4758f9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-card {
        width: 95%;
        margin: 20px;
    }
    
    .modal-card-head {
        padding: 15px 20px 10px 20px;
    }
    
    .modal-card-body {
        padding: 20px;
    }
    
    .modal-card-title {
        font-size: 1.3rem;
    }
    
    .input-lg {
        font-size: 1rem;
        padding: 1rem 1.2rem 1rem 2.5rem;
    }
    
    .login-submit-modern {
        font-size: 1.1rem;
        padding: 1rem 0;
    }
}


em 0;
    }
}


