        /* CSS per Registrazione Utente */
        body { 
            font-family: Arial, sans-serif; 
            background: #f0f0f0; 
            margin: 0;
            padding: 0;
        }

        .container { 
            width: 400px; 
            margin: 50px auto; 
            padding: 30px; 
            background: #fff; 
            border: 1px solid #ddd; 
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Ombra più definita dal primo CSS */
        }

        h2 {
            text-align: center;
            color: #333;
            margin-bottom: 30px;
        }

        /* Messaggio di errore */
        .errore { 
            color: #d32f2f; 
            background: #ffebee;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            border-left: 4px solid #d32f2f;
        }

        /* Messaggio di successo - presente nel secondo CSS */
        .successo { 
            color: #2e7d32; 
            background: #e8f5e8;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 15px;
            border-left: 4px solid #2e7d32;
        }

        /* Stile per i campi input - aggiunto email dal secondo CSS */
        input[type=text], input[type=password], input[type=email] { 
            width: 100%; 
            padding: 12px; 
            margin: 8px 0; 
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 14px;
        }

        /* Effetto focus per i campi input - aggiunto email */
        input[type=text]:focus, input[type=password]:focus, input[type=email]:focus {
            border-color: #4CAF50;
            outline: none;
            box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
        }

        /* Stile per il pulsante di invio */
        input[type=submit] { 
            width: 100%; 
            padding: 12px; 
            background: #4CAF50; 
            color: #fff; 
            border: none; 
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }

        /* Effetto hover per il pulsante */
        input[type=submit]:hover {
            background: #45a049;
        }

        /* Container per reCAPTCHA */
        .recaptcha-container {
            margin: 15px 0;
            display: flex;
            justify-content: center;
        }

        /* Info per i campi - aggiunto margin-top dal primo CSS */
        .field-info {
            font-size: 12px;
            color: #666;
            margin-top: -5px; /* Aggiunto dal primo CSS */
            margin-bottom: 10px;
        }

        /* Testo di benvenuto - aggiunto dal primo CSS */
        .welcome-text {
            text-align: center;
            color: #666;
            margin-bottom: 25px;
            font-size: 14px;
        }

        /* Area links con stile migliorato dal primo CSS */
        .links {
            text-align: center;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid #eee; /* Linea di separazione */
        }
        .links a {
            color: #4CAF50;
            text-decoration: none;
            margin: 0 10px;
            font-size: 14px;
            font-weight: 500;
        }
        .links a:hover {
            text-decoration: underline;
            color: #45a049;
        }
        .separator {
            margin: 0 10px;
            color: #bbb;
            font-weight: 300;
        }

        /* ===== ELEMENTI AGGIUNTI DAL SECONDO CSS ===== */
        
        /* Box requisiti password */
        .password-requirements {
            background: #fff3cd;
            padding: 12px;
            border-radius: 4px;
            margin: 15px 0;
            border-left: 4px solid #ffc107;
            font-size: 13px;
            color: #856404;
            line-height: 1.4;
        }

        .password-requirements strong {
            color: #333;
            display: block;
            margin-bottom: 8px;
        }

        /* Stili per i requisiti password */
        .password-requirements span {
            display: block;
            margin-bottom: 4px;
            padding: 2px 0;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        /* Requisito soddisfatto */
        .req-met {
            color: #2e7d32;
        }

        .req-met::before {
            content: "✅ ";
            margin-right: 5px;
        }

        /* Requisito non soddisfatto */
        .req-unmet {
            color: #999;
        }

        .req-unmet::before {
            content: "• ";
            margin-right: 5px;
        }

        /* Requisito non soddisfatto (evidenziato) */
        .req-unmet.password-started {
            color: #d32f2f;
        }

        .req-unmet.password-started::before {
            content: "❌ ";
            margin-right: 5px;
        }

        /* Indicatore forza password */
        #password-strength {
            margin: 5px 0 10px 0;
            font-size: 13px;
            font-weight: bold;
            min-height: 20px;
            transition: all 0.3s ease;
        }

        /* Stati forza password */
        .strength-weak {
            color: #d32f2f;
            background: #ffebee;
            padding: 5px 10px;
            border-radius: 3px;
            border-left: 3px solid #d32f2f;
        }

        .strength-medium {
            color: #f57c00;
            background: #fff3e0;
            padding: 5px 10px;
            border-radius: 3px;
            border-left: 3px solid #f57c00;
        }

        .strength-strong {
            color: #2e7d32;
            background: #e8f5e8;
            padding: 5px 10px;
            border-radius: 3px;
            border-left: 3px solid #2e7d32;
        }

        /* Stili per campi con errore/successo */
        .field-error {
            border-color: #d32f2f !important;
            background-color: #ffebee !important;
        }

        .field-success {
            border-color: #2e7d32 !important;
            background-color: #e8f5e8 !important;
        }

        /* Responsive per schermi piccoli */
        @media (max-width: 480px) {
            .container {
                width: 90%;
                margin: 20px auto;
                padding: 20px;
            }
            
            .password-requirements {
                font-size: 12px;
            }
        }
		/* ===== STILI PER BOX ERRORI ELEGANTI ===== */

/* Container per messaggi di errore del form */
.form-errors {
    background: #ffebee;
    border: 1px solid #d32f2f;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

.form-errors.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.form-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-errors li {
    color: #d32f2f;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.form-errors li::before {
    content: "❌";
    position: absolute;
    left: 0;
    top: 0;
}

.form-errors li:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== STILI PER PANNELLI CARATTERI CONSENTITI ===== */

/* Pannelli per mostrare i caratteri consentiti */
.allowed-chars-panel {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #17a2b8;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0 15px 0;
    font-size: 13px;
    color: #495057;
    display: none; /* Nascosto di default */
    transition: all 0.3s ease;
    line-height: 1.4;
}

.allowed-chars-panel h4 {
    margin: 0 0 10px 0;
    color: #17a2b8;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.chars-icon {
    margin-right: 8px;
    font-size: 16px;
}

.chars-category {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.chars-category:last-child {
    margin-bottom: 0;
}

.chars-category strong {
    color: #495057;
    font-weight: 600;
    margin-right: 8px;
    min-width: 80px;
}

.chars-examples {
    font-family: 'Courier New', monospace;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

/* Pulsante per mostrare/nascondere info caratteri */
.toggle-chars-info {
    background: none;
    border: none;
    color: #17a2b8;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    padding: 0;
    margin-left: 8px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toggle-chars-info:hover {
    color: #138496;
    text-decoration: none;
}

/* ===== STILI PER CONTAINER PULSANTI ===== */

/* Container per i pulsanti del form */
.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Pulsante submit - già esistente ma migliorato */
.btn-submit {
    flex: 2;
    padding: 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Pulsante reset */
.btn-reset {
    flex: 1;
    padding: 12px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* ===== STILI PER INFORMAZIONI LEGALI ===== */

/* Box informazioni legali */
.legal-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

.legal-info h4 {
    margin: 0 0 12px 0;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.legal-info p {
    margin: 0 0 10px 0;
    text-align: justify;
}

.legal-info p:last-child {
    margin-bottom: 0;
}

.legal-info a {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-info a:hover {
    color: #533f03;
    text-decoration: none;
}

.legal-info strong {
    color: #533f03;
    font-weight: 600;
}

/* ===== MIGLIORAMENTI AI LINK CONTAINER ===== */

.link-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.link-container a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-container a:hover {
    color: #45a049;
    text-decoration: underline;
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 480px) {
    /* Stack dei pulsanti su mobile */
    .form-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-submit, .btn-reset {
        width: 100%;
        flex: none;
    }
    
    /* Pannelli caratteri più compatti */
    .allowed-chars-panel {
        padding: 10px;
        font-size: 12px;
    }
    
    .chars-category {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .chars-category strong {
        margin-bottom: 5px;
        min-width: auto;
    }
    
    /* Info legali più compatte */
    .legal-info {
        padding: 12px;
        font-size: 12px;
    }
    
    .legal-info h4 {
        font-size: 13px;
    }
}
/* ===== PULSANTE RESET ROSSO ===== */

.reset-button-container {
    margin-top: 15px;
    text-align: center;
}

.btn-reset-red {
    padding: 10px 20px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-reset-red:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}
/* ===== RESPONSIVE DESIGN COMPLETO ===== */

/* Tablet (768px e sotto) */
@media (max-width: 768px) {
    .container {
        width: 85%;
        margin: 30px auto;
        padding: 25px;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    /* Campi input più grandi su tablet */
    input[type=text], input[type=password], input[type=email] {
        padding: 14px;
        font-size: 16px; /* Evita zoom su iOS */
    }
    
    input[type=submit] {
        padding: 14px;
        font-size: 18px;
    }
    
    .btn-reset-red {
        padding: 12px 25px;
        font-size: 15px;
        min-width: 180px;
    }
}

/* Mobile (480px e sotto) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 95%;
        margin: 20px auto;
        padding: 20px 15px;
        border-radius: 6px;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    /* Campi input ottimizzati per mobile */
    input[type=text], input[type=password], input[type=email] {
        padding: 15px;
        font-size: 16px;
        margin: 10px 0;
    }
    
    input[type=submit] {
        padding: 15px;
        font-size: 18px;
        margin-top: 15px;
    }
    
    /* Field info più leggibili */
    .field-info {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    /* Toggle button più grande per tocco */
    .toggle-chars-info {
        font-size: 13px;
        padding: 2px 4px;
        margin-left: 10px;
    }
    
    /* Pannelli caratteri mobile-friendly */
    .allowed-chars-panel {
        padding: 12px;
        font-size: 12px;
        margin: 10px 0 15px 0;
    }
    
    .allowed-chars-panel h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .chars-category {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 8px;
    }
    
    .chars-category strong {
        margin-bottom: 4px;
        min-width: auto;
        font-size: 12px;
    }
    
    .chars-examples {
        font-size: 11px;
        padding: 2px 6px;
        margin-top: 2px;
    }
    
    /* Box requisiti password mobile */
    .password-requirements {
        font-size: 12px;
        padding: 10px;
        margin: 12px 0;
    }
    
    .password-requirements strong {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    /* Indicatore forza password */
    #password-strength {
        font-size: 12px;
        margin: 8px 0;
    }
    
    .strength-weak, .strength-medium, .strength-strong {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* Info legali mobile */
    .legal-info {
        padding: 12px;
        font-size: 12px;
        margin: 15px 0;
        line-height: 1.4;
    }
    
    .legal-info h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .legal-info p {
        text-align: left; /* Meglio su mobile */
        margin-bottom: 8px;
    }
    
    /* Messaggi errore/successo mobile */
    .errore, .successo {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .form-errors {
        padding: 12px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .form-errors li {
        padding-left: 18px;
        margin-bottom: 6px;
    }
    
    /* Pulsante reset mobile */
    .reset-button-container {
        margin-top: 12px;
    }
    
    .btn-reset-red {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 140px;
        width: auto;
    }
    
    /* reCAPTCHA responsive */
    .recaptcha-container {
        margin: 12px 0;
        transform: scale(0.9);
        transform-origin: center;
    }
    
    /* Link container mobile */
    .link-container {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .link-container a {
        font-size: 13px;
    }
}

/* Mobile molto piccolo (360px e sotto) */
@media (max-width: 360px) {
    .container {
        width: 98%;
        padding: 15px 12px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    /* Campi ancora più compatti */
    input[type=text], input[type=password], input[type=email] {
        padding: 12px;
        font-size: 16px;
    }
    
    input[type=submit] {
        padding: 12px;
        font-size: 16px;
    }
    
    .btn-reset-red {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 120px;
    }
    
    /* reCAPTCHA più piccolo */
    .recaptcha-container {
        transform: scale(0.8);
    }
    
    /* Pannelli ancora più compatti */
    .allowed-chars-panel {
        padding: 8px;
        font-size: 11px;
    }
    
    .chars-examples {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Landscape su mobile (altezza ridotta) */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        margin: 10px auto;
        padding: 15px;
    }
    
    h2 {
        margin-bottom: 15px;
        font-size: 20px;
    }
    
    .password-requirements,
    .legal-info,
    .allowed-chars-panel {
        margin: 8px 0;
        padding: 8px;
    }
    
    input[type=text], input[type=password], input[type=email] {
        margin: 6px 0;
        padding: 10px;
    }
    
    .reset-button-container {
        margin-top: 8px;
    }
}

/* ===== STILI SPECIFICI PER RECUPERA PASSWORD ===== */

/* Sottotitolo della pagina */
.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

/* Gruppo checkbox per opzioni recupero */
.checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.checkbox-group h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.checkbox-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.checkbox-item input[type=checkbox] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-item label {
    color: #555;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-item label:hover {
    color: #4CAF50;
}

/* Box informativo */
.info-box {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
    font-size: 13px;
    color: #1565c0;
}

/* Stato disabilitato per submit button */
input[type=submit]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Separatore nei link */
.separator {
    margin: 0 10px;
    color: #bbb;
}
