        :root {
            --primary-color: #0d6efd;
            --danger-color: #dc3545;
            --light-color: #f8f9fa;
            --dark-color: #212529;
            --sidebar-bg: #2c3e50;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--dark-color) 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            color: #444;
        }

        .login-container {
            background-color: #fff;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 380px;
            text-align: center;
        }
        
        /* --- INICIO DE CAMBIOS CSS PARA ANIMACIÓN 3D --- */
        
        .logo-container {
            /* Agregamos perspectiva para dar profundidad a la animación */
            perspective: 800px; 
        }

        .logo-container img {
            width: 120px; /* Un poco más grande para que luzca mejor */
            height: 120px;
            border-radius: 50%;
            margin-bottom: 20px;
            object-fit: cover;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            
            /* Aplicamos la animación que definimos abajo */
            animation: spin3D 8s linear infinite;
        }
        
        /* Definimos la animación de rotación */
        @keyframes spin3D {
            from {
                /* Comienza sin rotación */
                transform: rotateY(0deg);
            }
            to {
                /* Termina con una vuelta completa sobre el eje Y */
                transform: rotateY(360deg);
            }
        }
        
        /* --- FIN DE CAMBIOS CSS --- */

        .login-container h2 {
            margin-bottom: 25px;
            color: var(--dark-color);
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 20px;
            position: relative;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #aaa;
        }

        input[type="text"], input[type="password"] {
            width: 100%;
            padding: 12px 15px 12px 40px;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        input[type="text"]:focus, input[type="password"]:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
        }

        button {
            width: 100%;
            background-color: var(--primary-color);
            color: white;
            padding: 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }

        button:hover {
            background-color: #0b5ed7;
        }
        
        .error-message {
            background-color: #f8d7da;
            color: #842029;
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            border: 1px solid #f5c2c7;
            font-size: 0.9rem;
        }