{% load i18n %}

{% block subject %}
Activate Your Account - {{ site_name }}
{% endblock subject %}

{% block text_body %}
Hi{% if user.first_name %} {{ user.first_name }}{% endif %},

Thank you for registering with {{ site_name }}!

To activate your account, please visit the following link:

http://{{ domain }}/{{ url }}

This activation link will expire in 24 hours for security reasons.

If you didn't create an account with us, you can safely ignore this email.

---
This is an automated message, please do not reply to this email.
© {{ site_name }} - All rights reserved
{% endblock text_body %}

{% block html_body %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f4f4f4;
        }
        .container {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            padding-bottom: 20px;
            border-bottom: 2px solid #4CAF50;
        }
        h1 {
            color: #4CAF50;
            margin: 0;
        }
        .content {
            margin: 30px 0;
        }
        .button {
            display: inline-block;
            padding: 12px 30px;
            background-color: #4CAF50;
            color: #ffffff !important;
            text-decoration: none;
            border-radius: 5px;
            margin: 20px 0;
            text-align: center;
        }
        .button:hover {
            background-color: #45a049;
        }
        .link-container {
            text-align: center;
            margin: 20px 0;
        }
        .footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        .code {
            background-color: #f5f5f5;
            padding: 10px;
            border-radius: 4px;
            word-break: break-all;
            font-family: monospace;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Welcome! 🎉</h1>
        </div>
        
        <div class="content">
            <p>Hi{% if user.first_name %} {{ user.first_name }}{% endif %},</p>
            
            <p>Thank you for registering with {{ site_name }}! To complete your registration and activate your account, please click the button below:</p>
            
            <div class="link-container">
                <a href="http://{{ domain }}/{{ url }}" class="button">Activate Your Account</a>
            </div>
            
            <p>Or copy and paste this link into your browser:</p>
            <div class="code">
                http://{{ domain }}/{{ url }}
            </div>
            
            <p><strong>Note:</strong> This activation link will expire in 24 hours for security reasons.</p>
            
            <p>If you didn't create an account with us, you can safely ignore this email.</p>
        </div>
        
        <div class="footer">
            <p>This is an automated message, please do not reply to this email.</p>
            <p>&copy; {{ site_name }} - All rights reserved</p>
        </div>
    </div>
</body>
</html>
{% endblock html_body %}
