<?php $form = ActiveForm::begin(['id'=>'login-form', 'action'=>['site/login'], 'options'=>['style'=>'display:none']]); ?>
<div class="form-group form-icon">
<?= $form->field($login_model, 'email')->textInput(['class'=>'form-control darkStyle', 'placeholder'=>'Введите вашу почту'])->label(false) ?>
<i class="glyphicon glyphicon-user input-icon" aria-hidden="true"></i>
</div>
<div class="form-group form-icon">
<?= $form->field($login_model, 'password')->passwordInput(['class'=>'form-control darkStyle', 'placeholder'=>'Введите пароль'])->label(false) ?>
<i class="glyphicon glyphicon-asterisk input-icon" aria-hidden="true"></i>
</div>
<?= Html::submitButton('Авторизоваться', ['class'=>'btn btn-submit', 'id'=>'login-btn']) ?>
<?php ActiveForm::end(); ?>
<?php $form = ActiveForm::begin(['id'=>'login-form', 'action'=>['site/login'], 'options'=>['style'=>'display:none']]); ?>
<div class="form-group form-icon">
<?= $form->field($login_model, 'email')->textInput(['class'=>'form-control darkStyle', 'placeholder'=>'Введите вашу почту'])->label(false) ?>
<i class="glyphicon glyphicon-user input-icon" aria-hidden="true"></i>
</div>
<div class="form-group form-icon">
<?= $form->field($login_model, 'password')->passwordInput(['class'=>'form-control darkStyle', 'placeholder'=>'Введите пароль'])->label(false) ?>
<i class="glyphicon glyphicon-asterisk input-icon" aria-hidden="true"></i>
</div>
<?= Html::submitButton('Авторизоваться', ['class'=>'btn btn-submit', 'id'=>'login-btn']) ?>
<?php ActiveForm::end(); ?>