<div class="post">
	<form name="login" method="post" class="newtopic" action="{{ form_action }}">
		<input type="hidden" name="redirect" value="{{ redirect }}" />
		<div class="postinfotop">
			<h2>{{ lang['login.title'] }}</h2>
		</div>
		<div class="accsection">
			<div class="topwrap">
				<div class="card">
					{% if (flags.error) %}
						<div class="alert alert-warning">{{ lang['login.error'] }}</div>
					{% endif %}
					{% if (flags.banned) %}
						<div class="alert alert-info">{{ lang['login.banned'] }}</div>
					{% endif %}
					{% if (flags.need_activate) %}
						<div class="alert alert-success">{{ lang['login.need_activate'] }}</div>
					{% endif %}
					<div class="row">
						<div class="col-lg-6 col-md-6">
							<label>{{ lang['login.username'] }}</label>
							<input type="text" name="username" class="form-control" />
						</div>
						<div class="col-lg-6 col-md-6">
							<label>{{ lang['login.password'] }}</label>
							<input type="password" name="password" class="form-control" />
						</div>
					</div>
					<button class="btn btn-primary" type="submit">{{ lang['login.submit'] }}</button>
				</div>
				<div class="clearfix"></div>
			</div>
		</div>
	</form>
</div>