如何设置构成表单的echo语句的样式

I want to style these echo statements like a login form. How can I style these echo statements?

echo '<form action="login.php" method="post"><input type="hidden" name="ac" value="log"> '; 
echo 'Username: <input type="text" name="username" />'; 
echo 'Password: <input type="password" name="password" />'; 
echo '<input type="submit" value="Login" />'; 
echo '</form>';

Try Following snipets

echo '<style>.testclassName{ text-align:right; }</style>';
echo '<form action="login.php" method="post"><input type="hidden" name="ac" value="log"> '; 
echo 'Username: <input type="text" name="username" class="testclassName"/>'; 
echo 'Password: <input type="password" name="password" />'; 
echo '<input type="submit" value="Login" />'; 
echo '</form>';