First, create a JetBrains Account. After registering, sign in and download the product you need from the list of all tools available to your account.
Once you install and start the product, you'll be prompted to log in. Use your JetBrains Account credentials to start working with the product.
To learn more about the activation process, refer to Activating JetBrains software with your JetBrains Account.