<form name="login" method="post" action="{{ form_action }}">
<input type="hidden" name="redirect" value="{{ redirect }}" />
<div class="form-wrap">
	<h1>{{ lang['login.title'] }}</h1>
	{% if (flags.error) %}
		<div class="berrors">
			{{ lang['login.error'] }}
		</div>
	{% endif %}
	{% if (flags.banned) %}
		<div class="berrors">
			{{ lang['login.banned'] }}
		</div>
	{% endif %}
	{% if (flags.need_activate) %}
		<div class="berrors">
			{{ lang['login.need_activate'] }}
		</div>
	{% endif %}
	<div class="form-item clearfix">
		<label>{{ lang['login.username'] }}</label>
		<input type="text" name="username" />
	</div>
	<div class="form-item clearfix">
		<label>{{ lang['login.password'] }}</label>
		<input type="password" name="password" />
	</div>
	<div class="form-submit">
		<button type="submit">{{ lang['login.submit'] }}</button>
	</div>
</div>
</form>