<?if($PAGE_ID$="login")?>
<div class="login-input"><input type="text" name="user" id="login_name" placeholder="Ваш логин"/></div>
<div class="login-input"><input type="password" name="password" id="login_password" placeholder="Ваш пароль" /></div>
<div class="login-check">

<label for="login_not_save">
<input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/>
<span>Запомнить</span>
</label> 
</div>

<div class="login-btn"><button type="submit" title="Вход">Войти на сайт</button></div>

<div class="login-btm fx-row">
<a href="$REGISTER_LINK$" class="log-register">Регистрация</a>
<a href="$REMINDER_LINK$">Восстановить пароль</a>
</div>

<?else?>
<div class="login-box not-logged hidden">
<div class="login-close"><span class="far fa-times"></span></div>

<div class="login-title title">Авторизация</div>
<div class="login-avatar"><span class="far fa-user"></span></div>
<div class="login-input"><input type="text" name="user" id="login_name" placeholder="Ваш логин"/></div>
<div class="login-input"><input type="password" name="password" id="login_password" placeholder="Ваш пароль" /></div>
<div class="login-check">

<label for="login_not_save">
<input id="rem$PAGE_ID$" type="checkbox" name="rem" value="1" checked="checked"/>
<span>Запомнить</span>
</label> 
</div>

<div class="login-btn"><button type="submit" title="Вход">Войти на сайт</button></div>

<div class="login-btm fx-row">
<a href="$REGISTER_LINK$" class="log-register">Регистрация</a>
<a href="$REMINDER_LINK$">Восстановить пароль</a>
</div>
</div>
<?endif?>

<style>
#uidLogButton {display: none;} 
#baseLogForm {display: block!important;} 
#uidLogButtonAjx {display: none;} 
#baseLogFormAjx {display: block!important;} 
</style>