Why won't iCloud let me sign in on my computer when I use the same passcode I use on my iPhone?
Your iPhone unlock passcode is not your Apple ID password. The passcode only works on the phone itself. If you don't know your Apple ID password, use Apple's Recover Your Apple ID page to reset it.