<head>
  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= javascript_include_tag 'close_messages' %>
</head>

<div class='bg_image'>
  <%=  image_tag('shutterstock_167459726_scaled.jpg', border:0) %>
</div>

<% if flash[:notice] %>
  <div class='notice'>
    <%= flash[:notice] %>
   </div>
<% end %>

<div id="loginBox" class="loginBox">

  <div class='login_wrap'>
    <div class='login'>
      <%= render :partial => 'layouts/logo' %>

      <%= form_tag(url: login_path) do %>
      <%= hidden_field_tag(:goal,params[:goal]) %>
        <div class='login_form form'>
          <div class="login_form__user">
          <span><i class="fa fa-user" aria-hidden="true"></i><%= text_field_tag(:loginname, "", placeholder: "Benutzername") %></span>
          </div>
          <div class="login_form__pass">
          <span><i class="fa fa-key" aria-hidden="true"></i><%= password_field_tag(:password, "", placeholder: "Password") %></span>
          </div>
          <div class='login_form__submit'>
            <%= button_tag(type: 'submit', class: 'button') do %>
            <span>
              <i class="fa fa-sign-in" aria-hidden="true"></i>
              Anmelden
            </span>
            <% end %>
          </div>
        </div>
      <% end %>
    <div>
  </div>

  <%= link_to({:controller => :login, :action => :impressum}, {:class => 'nav_link imprint_link', :target => '_blank'}) do %>
  <span><i class="fa fa-info" aria-hidden="true"></i> Impressum</span><% end %>

</div>
