{% load static %}
<!doctype html>
<html lang="pt-PT">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <title>{% block title %}Conta{% endblock %} · Kreate4Web</title>
  <link rel="icon" href="{% static 'branding/kreate4web-favicon.png' %}">
  <link rel="stylesheet" href="{% static 'css/client-portal.css' %}">
</head>
<body class="k4w-account-page">
<header class="k4w-account-header">
  <a href="{% if not request.user.is_authenticated %}{% url 'security:login' %}{% elif request.user.is_staff %}{% url 'admin:index' %}{% else %}{% url 'client_portal:dashboard' %}{% endif %}" class="k4w-account-brand">
    <img src="{% static 'branding/kreate4web-logo-horizontal.png' %}" alt="Kreate4Web">
  </a>
  {% if request.user.is_authenticated %}
  <nav>
    <a href="{% url 'security:account' %}">A minha conta</a>
    <a href="{% url 'security:overview' %}">Segurança e 2FA</a>
    <form method="post" action="{% url 'security:logout' %}">{% csrf_token %}<button type="submit">Terminar sessão</button></form>
  </nav>
  {% endif %}
</header>
<main class="k4w-account-main">
  {% if messages %}<div class="portal-messages">{% for message in messages %}<div class="portal-alert portal-alert--{{ message.tags|default:'info' }}">{{ message }}</div>{% endfor %}</div>{% endif %}
  {% block content %}{% endblock %}
</main>
<footer class="k4w-global-footer">
  <span>© {% now "Y" %} Kreate4Web · K4W</span>
  <span>Portal v{{ k4w_version }} · {{ k4w_environment }}</span>
  <span><a href="https://www.kreate4web.com/" target="_blank" rel="noopener">kreate4web.com</a></span>
</footer>
</body>
</html>
