<section id="main_form1" class="margin-bttom10px" style="margin-bottom: 12px;">
    <div class="container">
        <div class="row login-div margin-top10">
            <div class="col-sm-12">
                <div class="col-sm-4 margin-auto">
                    <div class=" box-body table-responsive box-shadow col-sm-12 no-padding">


                        <div class="col-sm-12">

                            <?php
                            $form = $this->form;
                            $form->prepare();
                            $form->setAttribute('action', $this->url('user-login', ['controller' => 'index']));
                            $form->setAttribute('method', 'post');
                            $form->setAttribute('id', 'login-form');
                            echo $this->form()->openTag($form);
                            ?>


                            <div class="col-sm-12 no-padding my-account">
                                <div class="col-lg-12" style="color: red; padding:5px;"><?php echo $errorMsg;?></div>
                                <h2>Login with Account</h2>
                                <div class="form-group widthpercent100 pull-left">
                                    <label class="col-sm-12 margin-bot5px"><?php echo $this->translate('Email/Mobile'); ?></label>
                                    <div class="col-sm-12 margin-top-5"> <?php echo $this->formElement($form->get('username_redirect')); ?></div>
                                    <?php echo $this->formElementErrors($form->get('username_redirect'), ['class' => 'error']); ?>
                                </div>

                                <div class="form-group widthpercent100 pull-left">
                                    <label class="col-sm-12"><?php echo $this->translate('Password'); ?></label>
                                    <div class="col-sm-12 margin-top-5"><?php echo $this->formElement($form->get('password_redirect')); ?></div>
                                    <?php echo $this->formElementErrors($form->get('password_redirect'), ['class' => 'error']); ?>
                                </div>

                                <div class="form-group widthpercent100 pull-left">
                                    <div class="col-sm-12 margin-top-5">
                                        <?php echo $this->FormElement($form->get('link_type')); ?>
                                        <?php echo $this->FormElement($form->get('login_redirectform')); ?>
                                    </div>
                                </div>
                            </div>

                            <?php echo $this->form()->closeTag(); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>