{%  extends 'base.html.twig' %}

{% block title %}{{ parent() }} - Registar-se{% endblock %}
{% block stylesheets %}{{ parent() }}{% endblock %}
{% block body %}

    {% for flash_error in app.flashes('verify_email_error') %}
        <div class="alert alert-danger" role="alert">Erro email ou senha invalidos</div>
    {% endfor %}


    <div class="container position-sticky z-index-sticky top-0">

    </div>
    <main class="main-content  mt-0">

        <section>
            <div class="page-header min-vh-100">
                <div class="container">
                    <div class="row">

                        <div class="col-xl-4 col-lg-5 col-md-7 d-flex flex-column mx-lg-0 mx-auto">
                            <div class="justify-content-center" style="text-align: center;">
                                <img src="{{ asset('assets/img/greenrespo.jpeg') }}" class="rounded-circle col-6">
                            </div>
                            <div class="card card-plain">
                                <div class="card-header pb-0 text-start" >
                                    <h3 style="text-align: center; ">GEST-CLÍNICA</h3>
                                </div>

                            </div>

                            <div class="card card-plain">
                                <div class="card-header pb-0 text-start">

                                    <p class="mb-0">Insira os dados para registar-se no sistema!</p>
                                </div>

                                <div class="card-body">
                                    {{ form_start(registrationForm) }}

                                    <div class="input-group mb-3">
                                        {{ form_widget(registrationForm.nome,{attr:{'placeholder':'Nome do usuário'}}) }}
                                        <div class="input-group-append">
                                            <div class="input-group-text" style="display: block; margin-left: -5px;">
                                                <span class="fas fa-user-circle"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="input-group mb-3">
                                        {{ form_widget(registrationForm.email,{attr:{'placeholder':'Endereço de e-mail'}}) }}
                                        <div class="input-group-append">
                                            <div class="input-group-text" style="display: block; margin-left: -5px;">
                                                <span class="fas fa-envelope"></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="input-group mb-3">
                                        {{ form_widget(registrationForm.plainPassword, {attr:{'placeholder':'Senha do usuário'}}) }}
                                        <div class="input-group-append" >
                                            <div class="input-group-text" style="display: block; margin-left: -5px;">
                                                <span class="fas fa-lock"></span>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">
                                        <div class="col-8">
                                            <div class="icheck-primary">
                                                {{ form_row(registrationForm.agreeTerms) }}
                                            </div>
                                        </div>
                                        <!-- /.col -->

                                        <!-- /.col -->
                                    </div>
                                    <div class="col-12">
                                        <button type="submit" class="btn btn-success btn-block col-12"><i class="fa fa-user-edit"></i> Registar</button>
                                    </div>

                                    {{ form_end(registrationForm) }}
                                </div>
                                <div class="card-footer text-center pt-0 px-lg-2 px-1">
                                    <p class="mb-4 text-sm mx-auto">
                                        Já tenho uma conta!
                                        <a href="{{ path('app_login') }}" class="text-primary text-gradient font-weight-bold"><i class="fa fa-user-circle"></i> Fazer login</a><br/>
                                        Esqueceu a senha?
                                        <a href="{{ path('app_forgot_password_request') }}" class="text-primary text-gradient font-weight-bold"><i class="fa fa-key"></i> Recuperar</a>
                                    </p>

                                </div>
                            </div>
                            <div>&COPY; 2023, Todos direitos reservados. RESPONSERV </div>
                        </div>

                        <div class="col-7 d-lg-flex d-none h-100 my-auto pe-0 position-absolute top-0 end-0 text-center justify-content-center flex-column">
                            <div class=" position-relative overflow-hidden  justify-content-center h-100 m-3 px-7 border-radius-lg d-flex flex-column" >
                                <img style="background-size: cover; width: 100%; min-width: 1300px; height: 100%;" src="{{ asset('assets/img/clinica.jpg') }}">
                                <span class="mask opacity-6"></span>
                                {#<h4 class="mt-5 text-white font-weight-bolder position-relative">OFICINA GODINHO, LDA</h4>
                                <p class="text-white position-relative">The more effortless the writing looks, the more effort the writer actually put into the process.</p>#}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>
{% endblock %}
