Template source: _account_modals.html

{% load i18n %}

  <section class="modal hide" id="popup-signin-form">
    <a class="close custom" data-dismiss="modal">{% trans "Close" %}</a>
    <header class="banner">
      <hgroup>
        <h1 class="light">{% trans "Sign In" %}</h1>
      </hgroup>
    </header>
    <section class="ajax-content">
    {% load signin_modal %}
    {% signin_modal %}
    </section>
  </section>

<script type="text/javascript">

$('.modal').on('shown', function(event) {
  $(event.delegateTarget).find("input[tabindex=1]").focus()
});
$('.sign-in, #sign-in').click(function() {
    $('.modal').modal('hide');
    $(document).trigger('open_signin');
});
$('.sign-up, #sign-up').click(function() {
    $('.modal').modal('hide');
    $(document).trigger('open_signup');
});
</script>