<!-- templates/emails/affiliates_app/affiliate_signup_welcome.html -->
{% extends "emails/affiliates_app/base_affiliate_email.html" %}

{% block email_title %}Welcome to Ensolanka Affiliate Program{% endblock %}

{% block brand_title %}Welcome, Affiliate Partner!{% endblock %}

{% block brand_subtitle %}
Your partner account is ready – start earning by promoting Sri Lanka
{% endblock %}

{% block email_content %}

<h2 style="margin-top: 0;">Hello {{ full_name|default:user.get_username }},</h2>

<p>
    Congratulations and welcome to the <strong>Ensolanka Affiliate Program</strong> (Partner with Ensolanka).  
    You are now part of a global community that introduces international guests to affordable,  
    healthy, and experience‑rich living in Sri Lanka.
</p>

<p>
    Your affiliate account has been <strong>approved</strong> automatically. You can immediately log in,  
    access your dashboard, and start generating your unique referral links and promotional materials.
</p>

<div class="email-note">
    <strong>Your Account Details:</strong><br>
    Account Type: {{ account_role|default:"Affiliate Partner" }}<br>
    Email: {{ email }}<br>
    Username: {{ username }}<br>
    Temporary Password: <strong>{{ temporary_password }}</strong>
</div>

<p>
    For security, we strongly recommend you change your password after your first login.
</p>

{% if dashboard_url %}
<p style="text-align: center;">
    <a href="{{ dashboard_url }}" class="email-button">Go to Affiliate Dashboard</a>
</p>
{% endif %}

<div class="email-note">
    <strong>What you can do next:</strong><br>
    ✅ Get your unique affiliate code and referral link<br>
    ✅ Track clicks, signups, and earnings<br>
    ✅ Use our QR cards and digital marketing assets<br>
    ✅ Request payouts once your balance allows
</div>

<p>
    If you did not request this account, please contact our support team immediately.
</p>

<p>
    Thank you for partnering with us – let’s grow together!<br>
    <strong>Ensolanka Team</strong><br>
    <em>{{ tagline|default:"Partner with Ensolanka. Grow Together. Earn Together." }}</em>
</p>

{% endblock %}