     * {
         margin: 0;
         padding: 0;
         box-sizing: border-box;
     }

     body {
         font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
         background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
         min-height: 100vh;
         display: flex;
         flex-direction: column;
         line-height: 1.6;
         margin: 0;
         padding: 0;
     }

     /* Assicura che il contenuto principale occupi tutto lo spazio disponibile */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.show {
    opacity: 1;
}

/* Il main-container deve crescere per occupare lo spazio rimanente */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


     /* Header responsive */
     .header {
         background: white;
         padding: 15px 20px;
         display: flex;
         align-items: center;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
         position: relative;
         width: 100%;
     }

     .header-logo {
         display: flex;
         align-items: center;
         width: 100%;
     }

     .header-logo img {
         max-width: 100%;
         height: auto;
         max-height: 80px;
     }

     /* Linea tricolore */
     .tricolor-line {
         height: 4px;
         background: linear-gradient(90deg, #009246 0%, #009246 33%, #fff 33%, #fff 66%, #ce2b37 66%, #ce2b37 100%);
         width: 100%;
         border-radius: 2px;
     }

     /* Container principale */
     .main-container {
         flex: 1;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         padding: 20px;
         gap: 30px;
         width: 100%;
         max-width: 1200px;
         margin: 0 auto;
     }

     /* Logo centrale */
     .central-logo {
         text-align: center;
         width: 100%;
         max-width: 400px;
     }

     .central-logo img {
         width: 100%;
         max-width: 300px;
         height: auto;
         margin-bottom: 15px;
     }

     .system-name {
         font-size: clamp(0.8rem, 2vw, 1rem);
         color: #666;
         font-style: italic;
         margin-top: 10px;
     }

     /* Form container */
     .form-container {
         background: white;
         border-radius: 20px;
         padding: 30px;
         box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
         width: 100%;
         max-width: 400px;
         position: relative;
         border: 3px solid #FF6B35;
     }

     .form-container::before {
         content: '';
         position: absolute;
         top: -6px;
         left: -6px;
         right: -6px;
         bottom: -6px;
         background: white;
         border-radius: 26px;
         z-index: -1;
         border: 3px solid #FF6B35;
     }

     .form-title {
         color: #FF6B35;
         background: white;
         padding: 15px 20px;
         border-radius: 12px;
         font-size: clamp(1rem, 2.5vw, 1.2rem);
         font-weight: 700;
         text-align: center;
         margin-bottom: 20px;
         box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
         text-transform: uppercase;
         letter-spacing: 1px;
         border: 2px solid #FF6B35;
     }

     .form-subtitle {
         color: #333;
         background: white;
         padding: 15px 20px;
         border-radius: 12px;
         font-size: clamp(0.85rem, 2vw, 0.95rem);
         line-height: 1.5;
         text-align: center;
         margin-bottom: 25px;
         box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
         font-weight: 500;
         border: 2px solid #FF6B35;
     }

     .form-group {
         margin-bottom: 20px;
     }

     .form-group label {
         display: block;
         color: #FF6B35;
         font-weight: 600;
         margin-bottom: 8px;
         font-size: clamp(0.9rem, 2vw, 1rem);
         text-transform: uppercase;
         letter-spacing: 0.5px;
     }

     .form-group input {
         width: 100%;
         padding: 15px 18px;
         border: 2px solid #FF6B35;
         border-radius: 12px;
         font-size: clamp(0.9rem, 2vw, 1rem);
         background: white;
         transition: all 0.3s ease;
         box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
     }

     .form-group input:focus {
         outline: none;
         box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2), 0 4px 15px rgba(0, 0, 0, 0.2);
         transform: translateY(-2px);
         border-color: #FF6B35;
     }

     .login-btn {
         width: 100%;
         padding: 15px;
         background: #FF6B35;
         color: white;
         border: 2px solid #FF6B35;
         border-radius: 12px;
         font-size: clamp(1rem, 2.5vw, 1.2rem);
         font-weight: 700;
         cursor: pointer;
         transition: all 0.3s ease;
         text-transform: uppercase;
         letter-spacing: 2px;
         box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
         min-height: 50px;
     }

     .login-btn:hover {
         transform: translateY(-3px);
         box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
         background: #e55a2e;
         border-color: #e55a2e;
     }

     .login-btn:active {
         transform: translateY(-1px);
     }

     /* Linea decorativa */
     .decorative-line {
         height: 4px;
         background: linear-gradient(90deg, #e20613, #FF6B35, #1e3a8a);
         width: 100%;
         max-width: 400px;
         border-radius: 2px;
     }

     /* Footer */
     /* Il footer rimane invariato ma ora sarà sempre in fondo */
     .footer {
         background: linear-gradient(135deg, #1e3a8a, #3b5998);
         color: white;
         padding: 20px;
         text-align: center;
         box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
         margin-top: auto;
         /* Questo è importante per spingere il footer in fondo */
     }

     .footer .copyright {
         display: flex;
         align-items: center;
         justify-content: center;
         margin-bottom: 8px;
         font-size: clamp(0.9rem, 2vw, 1rem);
         font-weight: 600;
         flex-wrap: wrap;
     }

     .copyright-icon {
         margin-right: 8px;
         font-size: 18px;
         color: #FF6B35;
     }

     .footer .developer {
         font-size: clamp(0.8rem, 1.8vw, 0.9rem);
         color: #e2e8f0;
         margin-bottom: 5px;
         font-weight: 500;
     }

     .footer .version {
         font-size: clamp(0.75rem, 1.6vw, 0.85rem);
         color: #cbd5e0;
         font-weight: 400;
     }

     /* Loading animation */
     .login-btn.loading {
         position: relative;
         color: transparent;
     }

     .login-btn.loading::after {
         content: '';
         position: absolute;
         width: 20px;
         height: 20px;
         top: 50%;
         left: 50%;
         margin-left: -10px;
         margin-top: -10px;
         border: 3px solid white;
         border-radius: 50%;
         border-top-color: transparent;
         animation: spin 1s ease-in-out infinite;
     }

     @keyframes spin {
         to {
             transform: rotate(360deg);
         }
     }

     /* Media queries per dispositivi specifici */

     /* Tablet landscape */
     @media (min-width: 768px) and (max-width: 1024px) {
         .main-container {
             padding: 40px 30px;
             gap: 40px;
         }

         .form-container {
             padding: 35px;
             max-width: 450px;
         }

         .header {
             padding: 20px 30px;
         }
     }

     /* Tablet portrait */
     @media (max-width: 768px) {
         .main-container {
             padding: 25px 20px;
             gap: 25px;
         }

         .form-container {
             padding: 25px;
             max-width: 100%;
         }

         .header {
             padding: 15px 20px;
         }

         .header-logo img {
             max-height: 60px;
         }
     }

     /* Mobile landscape */
     @media (max-width: 640px) and (orientation: landscape) {
         .main-container {
             padding: 15px;
             gap: 15px;
         }

         .form-container {
             padding: 20px;
         }

         .central-logo img {
             max-width: 200px;
         }
     }

     /* Mobile portrait */
     @media (max-width: 480px) {
         .header {
             padding: 10px 15px;
         }

         .header-logo img {
             max-height: 100px;
         }

         .main-container {
             padding: 15px;
             gap: 20px;
         }

         .form-container {
             padding: 20px;
             border-radius: 15px;
         }

         .form-title {
             padding: 12px 15px;
             margin-bottom: 15px;
         }

         .form-subtitle {
             padding: 12px 15px;
             margin-bottom: 20px;
         }

         .form-group {
             margin-bottom: 15px;
         }

         .form-group input {
             padding: 12px 15px;
         }

         .login-btn {
             padding: 12px;
             min-height: 45px;
         }

         .footer {
             padding: 15px;
         }
     }

     /* Schermi molto piccoli */
     @media (max-width: 320px) {
         .main-container {
             padding: 10px;
             gap: 15px;
         }

         .form-container {
             padding: 15px;
         }

         .header {
             padding: 8px 10px;
         }
     }

     /* Schermi grandi (desktop) - MODIFICHE PRINCIPALI QUI */
     @media (min-width: 1200px) {
         .main-container {
             padding: 50px 20px;
             gap: 40px;
             max-width: 1400px;
         }

         /* Logo centrale più grande per schermi grandi */
         .central-logo {
             max-width: 600px;
         }

         .central-logo img {
             max-width: 500px;
         }

         /* Form container molto più largo */
         .form-container {
             padding: 50px 60px;
             max-width: 800px;
             border-radius: 25px;
         }

         .form-container::before {
             border-radius: 31px;
         }

         /* Layout orizzontale per il form su schermi molto grandi */
         .form-content {
             display: grid;
             grid-template-columns: 1fr 1fr;
             gap: 40px;
             align-items: center;
         }

         .form-fields {
             display: flex;
             flex-direction: column;
             gap: 25px;
         }

         .form-header {
             text-align: center;
         }

         .form-title {
             font-size: 1.4rem;
             padding: 20px 25px;
             margin-bottom: 25px;
         }

         .form-subtitle {
             font-size: 1.1rem;
             padding: 20px 25px;
             margin-bottom: 0;
         }

         .form-group {
             margin-bottom: 25px;
         }

         .form-group label {
             font-size: 1.1rem;
             margin-bottom: 12px;
         }

         .form-group input {
             padding: 18px 22px;
             font-size: 1.1rem;
             border-radius: 15px;
         }

         .login-btn {
             padding: 18px;
             font-size: 1.3rem;
             border-radius: 15px;
             min-height: 60px;
             letter-spacing: 3px;
         }

         /* Linea decorativa più larga */
         .decorative-line {
             max-width: 800px;
             height: 6px;
         }
     }

     /* Schermi extra grandi */
     @media (min-width: 1600px) {
         .main-container {
             max-width: 1600px;
             padding: 60px 20px;
             gap: 50px;
         }

         .central-logo {
             max-width: 700px;
         }

         .central-logo img {
             max-width: 600px;
         }

         .form-container {
             max-width: 1000px;
             padding: 60px 80px;
         }

         .form-content {
             gap: 60px;
         }

         .decorative-line {
             max-width: 1000px;
         }
     }

     /* Orientamento landscape per mobile */
     @media (max-height: 500px) and (orientation: landscape) {
         .main-container {
             padding: 10px;
             gap: 10px;
         }

         .central-logo {
             margin-bottom: 10px;
         }

         .central-logo img {
             max-width: 150px;
         }

         .system-name {
             font-size: 0.8rem;
             margin-top: 5px;
         }
     }

     /* Accessibilità */
     @media (prefers-reduced-motion: reduce) {
         * {
             animation-duration: 0.01ms !important;
             animation-iteration-count: 1 !important;
             transition-duration: 0.01ms !important;
         }
     }

     /* High contrast mode */
     @media (prefers-contrast: high) {
         .form-container {
             border: 3px solid #000;
         }

         .form-container::before {
             border: 3px solid #000;
         }

         .form-group input {
             border: 2px solid #000;
         }

         .login-btn {
             border: 2px solid #000;
         }

         .form-title,
         .form-subtitle {
             border: 2px solid #000;
         }
     }

     /* Stili per la modale di errore */
     .modal-overlay {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.6);
         backdrop-filter: blur(5px);
         display: flex;
         justify-content: center;
         align-items: center;
         z-index: 1000;
         opacity: 0;
         visibility: hidden;
         transition: all 0.3s ease;
     }

     .modal-overlay.show {
         opacity: 1;
         visibility: visible;
     }

     .modal-content {
         background-color: #fff;
         border-radius: 16px;
         padding: 30px;
         max-width: 420px;
         width: 90%;
         position: relative;
         box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
         transform: scale(0.8) translateY(20px);
         transition: all 0.3s ease;
         border: 3px solid #ff6b35;
     }

     .modal-overlay.show .modal-content {
         transform: scale(1) translateY(0);
     }

     .modal-header {
         display: flex;
         align-items: center;
         margin-bottom: 20px;
     }

     .modal-icon {
         width: 50px;
         height: 50px;
         background: linear-gradient(135deg, #ff6b35, #ff8c5a);
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         margin-right: 15px;
         flex-shrink: 0;
     }

     .modal-icon::before {
         content: "⚠";
         color: white;
         font-size: 24px;
         font-weight: bold;
     }

     .modal-title {
         font-size: 20px;
         font-weight: 600;
         color: #333;
         margin: 0;
     }

     .modal-close {
         position: absolute;
         top: 15px;
         right: 15px;
         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.2s ease;
     }

     .modal-close:hover {
         background-color: #f5f5f5;
         color: #333;
     }

     .modal-message {
         color: #666;
         font-size: 16px;
         line-height: 1.5;
         margin-bottom: 25px;
     }

     .modal-button {
         background: linear-gradient(135deg, #ff6b35, #ff8c5a);
         color: white;
         border: none;
         padding: 12px 24px;
         border-radius: 8px;
         font-size: 16px;
         font-weight: 500;
         cursor: pointer;
         transition: all 0.2s ease;
         width: 100%;
     }

     .modal-button:hover {
         transform: translateY(-2px);
         box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
     }

     @media (max-width: 480px) {
         .modal-content {
             padding: 20px;
             margin: 20px;
         }

         .modal-title {
             font-size: 18px;
         }
     }
      /* Schermata di caricamento */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.8s ease-out;
        }

        .loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loading-logo {
            width: 500px;
            height: 500px;
            margin-bottom: 40px;
            animation: pulse 2s ease-in-out infinite;
        }

        .loading-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .loading-subtitle {
            color: #666;
            font-size: 18px;
            margin-bottom: 40px;
            text-align: center;
            font-weight: 500;
        }

        .loading-spinner {
            position: relative;
            width: 60px;
            height: 60px;
        }

        .spinner-circle {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 3px solid rgba(255, 107, 53, 0.2);
            border-top: 3px solid #ff6b35;
            border-radius: 50%;
            animation: spin 1.5s linear infinite;
        }

        .spinner-circle:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            border-top-color: #ffa500;
            animation-duration: 2s;
            animation-direction: reverse;
        }

        .progress-bar {
            width: 300px;
            height: 4px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 2px;
            overflow: hidden;
            margin-top: 30px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff6b35, #ffa500);
            border-radius: 2px;
            width: 0%;
            animation: progress 3s ease-out forwards;
        }

        /* Animazioni */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes progress {
            0% { width: 0%; }
            30% { width: 30%; }
            60% { width: 60%; }
            90% { width: 85%; }
            100% { width: 100%; }
        }

        /* Stili per la modale di errore */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background-color: #fff;
            border-radius: 16px;
            padding: 30px;
            max-width: 420px;
            width: 90%;
            position: relative;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            transform: scale(0.8) translateY(20px);
            transition: all 0.3s ease;
            border: 3px solid #ff6b35;
        }
        
        .modal-overlay.show .modal-content {
            transform: scale(1) translateY(0);
        }
        
        .modal-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #ff6b35, #ff8c5a);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .modal-icon::before {
            content: "⚠";
            color: white;
            font-size: 24px;
            font-weight: bold;
        }
        
        .modal-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin: 0;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            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.2s ease;
        }
        
        .modal-close:hover {
            background-color: #f5f5f5;
            color: #333;
        }
        
        .modal-message {
            color: #666;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 25px;
        }
        
        .modal-button {
            background: linear-gradient(135deg, #ff6b35, #ff8c5a);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            width: 100%;
        }
        
        .modal-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
        }

        /* Nascondi il contenuto inizialmente */
        .main-content {
            opacity: 0;
            transition: opacity 0.5s ease-in;
        }

        .main-content.show {
            opacity: 1;
        }

        @media (max-width: 480px) {
            .loading-subtitle {
                font-size: 16px;
            }
            
            .loading-logo {
                width: 150px;
                height: 150px;
            }
            
            .progress-bar {
                width: 250px;
            }
            
            .modal-content {
                padding: 20px;
                margin: 20px;
            }
            
            .modal-title {
                font-size: 18px;
            }
        }
              /* Stili per il campo password con icona */
        .password-field {
            position: relative;
        }

        .password-field input {
            padding-right: 45px;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            padding: 5px;
            border: none;
            background: none;
            color: #666;
            transition: color 0.3s ease;
        }

        .password-toggle:hover {
            color: #ff6b35;
        }

        .password-toggle svg {
            width: 20px;
            height: 20px;
            stroke-width: 2;
        }
              /* Modale cambio password - Stile Singevo */
.password-change-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.password-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.5s ease-out;
    border-top: 4px solid #ff6b35;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.password-modal-header {
    background: #fafafa;
    padding: 25px 30px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.password-modal-header h2 {
    color: #333;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.password-modal-header p {
    color: #666;
    margin: 10px 0 0 0;
    font-size: 14px;
}

.password-modal-body {
    padding: 30px;
    background: white;
}

.password-form-group {
    margin-bottom: 20px;
}

.password-form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.password-input-wrapper {
    position: relative;
}

.password-modal-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-modal-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.password-modal-input::placeholder {
    color: #999;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle-btn:hover {
    color: #ff6b35;
}

.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.password-requirements h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 12px;
}

.password-requirements li {
    margin-bottom: 5px;
}

.password-modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.password-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-btn-primary {
    background: #ff6b35;
    color: white;
}

.password-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
}

.password-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e5e5e5;
}

.password-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    color: #ff6b35;
}

.password-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #e53e3e;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
/* ==================== INDICATORE CAPS LOCK S.IN.GE.VO. STYLE ==================== */

.caps-lock-indicator {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    animation: capsLockSlideDown 0.4s ease-out;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.2);
}

.caps-lock-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.caps-lock-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 3px 15px rgba(243, 156, 18, 0.3);
}

.caps-lock-pulse {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(243, 156, 18, 0.6);
    border-radius: 50%;
    animation: capsLockPulse 2s ease-in-out infinite;
}

.caps-lock-text {
    flex: 1;
}

.caps-lock-title {
    font-weight: 700;
    font-size: 1rem;
    color: #d68910;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.caps-lock-subtitle {
    font-size: 0.85rem;
    color: #8b6914;
    font-weight: 500;
    line-height: 1.3;
}

.caps-lock-warning {
    width: 35px;
    height: 35px;
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 1rem;
    flex-shrink: 0;
    animation: capsLockBlink 1.5s ease-in-out infinite;
}

.caps-lock-border-animation {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: capsLockShine 3s ease-in-out infinite;
}

/* Animazioni */
@keyframes capsLockSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        padding: 0 1rem;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        padding: 1rem;
    }
}

@keyframes capsLockPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes capsLockBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.95);
    }
}

@keyframes capsLockShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Varianti colore per diversi stati */
.caps-lock-indicator.warning {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #e74c3c;
}

.caps-lock-indicator.warning .caps-lock-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.caps-lock-indicator.warning .caps-lock-title {
    color: #c0392b;
}

.caps-lock-indicator.warning .caps-lock-subtitle {
    color: #a93226;
}

/* Responsive */
@media (max-width: 576px) {
    .caps-lock-indicator {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .caps-lock-content {
        gap: 0.75rem;
    }
    
    .caps-lock-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .caps-lock-title {
        font-size: 0.9rem;
    }
    
    .caps-lock-subtitle {
        font-size: 0.8rem;
    }
    
    .caps-lock-warning {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Accessibilità - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .caps-lock-indicator {
        animation: none;
    }
    
    .caps-lock-pulse,
    .caps-lock-border-animation {
        animation: none;
    }
    
    .caps-lock-warning {
        animation: capsLockBlinkReduced 2s ease-in-out infinite;
    }
    
    @keyframes capsLockBlinkReduced {
        0%, 90%, 100% { opacity: 1; }
        95% { opacity: 0.7; }
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .caps-lock-indicator {
        background: linear-gradient(135deg, #2c2c2c 0%, #3c3c3c 100%);
        border-color: #f39c12;
        box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
    }
    
    .caps-lock-title {
        color: #f39c12;
    }
    
    .caps-lock-subtitle {
        color: #d4ac0d;
    }
}


        