<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\widgets\MaskedInput;

$this->title = 'Вход';
?>
<h1>Вход на портал</h1>

<?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

<?= $form->field($model, 'phone')->widget(MaskedInput::class, [
    'mask' => '8(999)999-99-99',
]) ?>

<?= $form->field($model, 'password')->passwordInput() ?>

<?= $form->field($model, 'rememberMe')->checkbox() ?>

<div class="form-group">
    <?= Html::submitButton('Войти', ['class' => 'btn']) ?>
</div>

<?php ActiveForm::end(); ?>

<p>Ещё не зарегистрированы? <?= Html::a('Регистрация', ['register']) ?></p>