<!--
  Familiar - Self-hosted AI Agent
  Copyright (c) 2026 George Scott Foley

  Licensed under the MIT License
  For commercial licensing, contact: licensing@familiar.ai
-->
{% extends "base.html" %}

{% block title %}Accept Invitation - Familiar Admin{% endblock %}

{% block content %}
<div class="min-h-[80vh] flex items-center justify-center">
    <div class="bg-white rounded-lg shadow-lg p-8 w-full max-w-md">
        <div class="text-center mb-8">
            <span class="text-5xl">🐍</span>
            <h1 class="text-2xl font-bold text-gray-800 mt-4">Accept Your Invitation</h1>
            <p class="text-gray-500 mt-2">Please confirm your email address to continue.</p>
        </div>

        <form method="POST" class="space-y-6">
            <input type="hidden" name="token" value="{{ token }}">
            <div>
                <label for="email" class="block text-sm font-medium text-gray-700 mb-1">
                    Email Address
                </label>
                <input type="email"
                       id="email"
                       name="email"
                       required
                       autofocus
                       class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent"
                       placeholder="you@organization.org">
            </div>

            <button type="submit"
                    class="w-full py-3 bg-purple-600 text-white rounded-lg font-semibold hover:bg-purple-700 transition">
                Confirm &amp; Accept Invitation
            </button>
        </form>

        <p class="text-center text-sm text-gray-500 mt-6">
            Enter the email address your invitation was sent to.
        </p>
    </div>
</div>
{% endblock %}
