How to create a custom CSS class for a specific page template?

The styles are not created in CSS, they are created in page markup.

If your theme and template are coded properly they make use of body_class() function, that will output number of classes for you to make use of in page source.

View source of your page and <body> tag to see what you have available and can target in CSS for your page.