{#
  Copyright (C) 2024 I-Form.

  invenio-theme-iform is free software; you can redistribute it and/or modify it
  under the terms of the MIT License; see LICENSE file for more details.
#}
{% extends config.THEME_ERROR_TEMPLATE %}

{% block message %}
  <div class="ui container center aligned rel-mt-5 rel-mb-5">
    <h1 class="ui icon header">
      <i class="user cancel icon red"></i>
      <div class="content">
        {{ _("Public Registration Disabled") }}
        <div class="sub header rel-mt-2">
          {{ _("Public user registration is currently closed on this repository.") }}
        </div>
      </div>
    </h1>

    <div class="ui message info left aligned" style="max-width: 600px; margin: 2em auto;">
      <div class="header">
        {{ _("Need an account?") }}
      </div>
      <p>
        {{ _("If you require an account to upload or manage research data, please contact an administrator at:") }}
      </p>
      <p style="font-size: 1.1em; font-weight: bold; text-align: center;">
        <a href="mailto:{{ admin_email }}"><i class="envelope icon"></i> {{ admin_email }}</a>
      </p>
    </div>

    <div class="rel-mt-3">
      <a href="{{ url_for('security.login') }}" class="ui button primary">
        <i class="sign-in icon"></i> {{ _("Back to Log In") }}
      </a>
      <a href="{{ url_for('index') }}" class="ui button">
        <i class="home icon"></i> {{ _("Home Page") }}
      </a>
    </div>
  </div>
{% endblock message %}
