{% extends "base.html" %}
{% load i18n %}

{% block title %}Redirecting to {{ provider }}{% endblock %}

{% block content %}
<section class="section">
  <div class="container container--narrow">
    <div class="glass-card portal-card fade-in social-oauth-redirect">
      <div class="social-oauth-spinner" aria-hidden="true"></div>
      <h1 class="contact-form-title">Redirecting to {{ provider }}</h1>
      <p class="portal-intro">{% trans "Please wait while we connect you securely." %}</p>
      <p class="portal-footer-text">
        <a href="{{ redirect_to }}" class="portal-link">{% trans "Continue manually" %}</a>
      </p>
    </div>
  </div>
</section>
{% endblock %}

{% block extra_js %}
<script>window.location.replace("{{ redirect_to|escapejs }}");</script>
{% endblock %}
