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

{% block title %}Reset your password{% endblock %}
{% block stylesheets %}{{ parent() }}{% endblock %}

{% block body %}
    <form method="post">

        {% if app.user %}
            <div class="mb-3">
                Tu estás logado como {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Sair</a>
            </div>
        {% endif %}


        <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-body">
                                        {% for flash_error in app.flashes('reset_password_error') %}
                                            <div class="alert alert-danger" role="alert">{{ flash_error }}</div>
                                        {% endfor %}
                                        <h4 class="text-uppercase text-center text-success">Restauração da senha</h4>

                                        {{ form_start(requestForm) }}
                                        <label>E-mail*</label>
                                        {{ form_widget(requestForm.email,{attr:{'placeholder':'E-mail de restauração da senha'}}) }}
                                        <div>
                                            <small>
                                                Entre com o teu email e nós iremos enviar-te o link para restaurar a sua senha.
                                            </small>
                                        </div>

                                        <button class="btn btn-success shadow-none"><i class="fa fa-envelope"></i> Email de restauração</button>
                                        {{ form_end(requestForm) }}
                                    </div>
                                    <div class="card-footer text-center pt-0 px-lg-2 px-1">
                                        <p class="mb-4 text-sm mx-auto">
                                            Já tem uma conta?
                                            <a href="{{ path('app_login') }}" class="text-primary text-gradient font-weight-bold">Entrar</a><br/>
                                              </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>

        {#
        <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
        <label for="inputEmail">Email</label>
        <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" autocomplete="email" required autofocus>
        <label for="inputPassword">Password</label>
        <input type="password" name="password" id="inputPassword" class="form-control" autocomplete="current-password" required>

        <input type="hidden" name="_csrf_token"
               value="{{ csrf_token('authenticate') }}"
        >


            Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
            See https://symfony.com/doc/current/security/remember_me.html

            <div class="checkbox mb-3">
                <label>
                    <input type="checkbox" name="_remember_me"> Remember me
                </label>
            </div>


        <button class="btn btn-lg btn-primary" type="submit">
            Sign in
        </button> #}
    </form>
{% endblock %}







