Text alignment for input tag


I want to get input for right aligned text but when I set text-align: right, the cursor goes not to the right end of text area but also only 60px to the right. I can set width for example 360px and it works but I want that the cursor goes to the right end of the text area independent of device model or text area size.
how can I do that?

here is my code:

<div class="item item-input-inset">
	<label class="item-input-wrapper">
	       <input class="name-input" type="text" ng-model="properties.lastName" placeholder="نام خانوادگی">

.name-input {
	text-align: right;
	width: 360px;
    min-width: 360px;

Thanks in advanced