{% extends 'affiliates_app/base_affiliate.html' %}
{% load static %}

{% block title %}Reset Link Sent | Partner with Ensolanka{% endblock %}

{% block extra_css %}
<style>
    .affiliate-reset-status-page {
        position: relative;
        min-height: 100vh;
        padding: 6rem 0;
        background:
            radial-gradient(circle at top left, rgba(250, 204, 21, 0.20), transparent 34%),
            radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 32%),
            linear-gradient(135deg, #052e1b 0%, #166534 52%, #064e3b 100%);
        color: #fff;
        overflow: hidden;
    }

    .affiliate-reset-status-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%),
            radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.10), transparent 28%);
        pointer-events: none;
    }

    .affiliate-reset-status-page::after {
        content: "";
        position: absolute;
        right: -160px;
        bottom: -180px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        pointer-events: none;
    }

    .affiliate-reset-status-page .container {
        position: relative;
        z-index: 2;
    }

    .affiliate-status-card {
        max-width: 760px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 36px;
        box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.35);
    }

    .affiliate-status-card-inner {
        padding: 3rem 2.4rem;
        text-align: center;
    }

    .affiliate-status-icon {
        width: 96px;
        height: 96px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 34px;
        background: linear-gradient(135deg, #dcfce7, #fef3c7);
        color: #166534;
        font-size: 2.7rem;
        box-shadow: 0 18px 36px rgba(22, 101, 52, 0.16);
        margin-bottom: 1.4rem;
    }

    .affiliate-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        background: #f0fdf4;
        color: #166534;
        font-size: 0.84rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }

    .affiliate-status-card h1 {
        color: #0f172a;
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 900;
        letter-spacing: -0.035em;
        margin-bottom: 1rem;
    }

    .affiliate-status-card p {
        color: #475569;
        font-size: 1.02rem;
        line-height: 1.75;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .affiliate-status-note {
        margin-top: 1.5rem;
        padding: 1.1rem 1.2rem;
        border-radius: 22px;
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
        text-align: left;
        line-height: 1.65;
    }

    .affiliate-status-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin-top: 2rem;
    }

    .affiliate-status-btn-primary {
        background: linear-gradient(135deg, #166534, #064e3b);
        color: #fff;
        border: none;
        border-radius: 48px;
        padding: 0.9rem 1.45rem;
        font-weight: 800;
        text-decoration: none;
        box-shadow: 0 16px 32px rgba(22, 101, 52, 0.24);
    }

    .affiliate-status-btn-primary:hover {
        color: #fff;
        background: linear-gradient(135deg, #15803d, #065f46);
    }

    .affiliate-status-btn-outline {
        border: 2px solid #166534;
        color: #166534;
        background: #ffffff;
        border-radius: 48px;
        padding: 0.85rem 1.45rem;
        font-weight: 800;
        text-decoration: none;
    }

    .affiliate-status-btn-outline:hover {
        background: #166534;
        color: #fff;
    }

    @media (max-width: 768px) {
        .affiliate-reset-status-page {
            padding: 4rem 0;
        }

        .affiliate-status-card-inner {
            padding: 2.2rem 1.35rem;
        }

        .affiliate-status-card {
            border-radius: 28px;
        }
    }
</style>
{% endblock %}

{% block content %}

<section class="affiliate-reset-status-page">
    <div class="container">
        <div class="affiliate-status-card">
            <div class="affiliate-status-card-inner">

                <div class="affiliate-status-icon">
                    <i class="bi bi-envelope-check-fill"></i>
                </div>

                <span class="affiliate-status-badge">
                    <i class="bi bi-check-circle-fill"></i>
                    Request Received
                </span>

                <h1>Check Your Email</h1>

                <p>
                    If the email address you entered belongs to a registered
                    <strong>Affiliate Partner</strong> account, password reset instructions
                    have been sent to that inbox.
                </p>

                <p>
                    Please open the email and follow the secure reset link to create a new password.
                </p>

                <div class="affiliate-status-note">
                    <strong>Didn’t receive an email?</strong><br>
                    Check your spam or junk folder, confirm that you entered the correct Affiliate account email,
                    or submit the password reset request again.
                </div>

                <div class="affiliate-status-actions">
                    <a href="{% url 'affiliates_app:affiliate_login' %}"
                       class="affiliate-status-btn-primary">
                        Back to Affiliate Sign In
                    </a>

                    <a href="{% url 'affiliates_app:affiliate_password_reset' %}"
                       class="affiliate-status-btn-outline">
                        Send Again
                    </a>
                </div>

            </div>
        </div>
    </div>
</section>

{% endblock %}