The Dropbox shared link page takes the password interactively, not as Basic auth, so using the --password option won't work.
To download files from Dropbox shared links programmatically, you should use the Dropbox API instead. For this in particular, you would use the /2/sharing/get_shared_link_file endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
Here's how you would use that with curl, for example:
curl -vX POST https://content.dropboxapi.com/2/sharing/get_shared_link_file \
--header "Authorization: Bearer <ACCESS_TOKEN>" \
--header "Dropbox-API-Arg: {\"url\": \"<SHARED_LINK>\",\"link_password\":\"<SHARED_LINK_PASSWORD>\"}"
Note: There's currently a known issue with this endpoint though, so it may incorrectly fail with a shared_link_access_denied error even if you supply the correct password. I'll update this answer when that's fixed.
Edit: The issue with calling /2/sharing/get_shared_link_file with a password is now fixed and should be working properly.