<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to {{ site_name }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f8f9fa;
        }
        .container {
            background: white;
            border-radius: 8px;
            padding: 40px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #2563eb;
            margin-bottom: 10px;
        }
        .welcome-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            border-radius: 8px;
            text-align: center;
            margin: 20px 0;
        }
        .features {
            display: grid;
            gap: 20px;
            margin: 30px 0;
        }
        .feature {
            display: flex;
            align-items: flex-start;
            gap: 15px;
        }
        .feature-icon {
            font-size: 24px;
            margin-top: 5px;
        }
        .cta {
            background: #2563eb;
            color: white;
            padding: 15px 30px;
            border-radius: 6px;
            text-decoration: none;
            display: inline-block;
            margin: 20px 0;
            font-weight: bold;
        }
        .footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
            color: #6b7280;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="logo">🚀 {{ site_name }}</div>
        </div>

        <div class="welcome-banner">
            <h1 style="margin: 0; font-size: 28px;">Welcome to {{ site_name }}!</h1>
            <p style="margin: 10px 0 0 0; opacity: 0.9;">Your account has been created successfully</p>
        </div>

        <p>Hello {{ user.get_full_name|default:user.username }},</p>
        
        <p>Welcome to {{ site_name }}! We're excited to have you on board. Your account (<strong>{{ user.email }}</strong>) has been created and you're ready to get started.</p>

        <div class="features">
            <div class="feature">
                <div class="feature-icon">🔐</div>
                <div>
                    <h3 style="margin: 0 0 5px 0;">Secure Login</h3>
                    <p style="margin: 0; color: #6b7280;">Use OTP codes for secure, passwordless authentication</p>
                </div>
            </div>
            <div class="feature">
                <div class="feature-icon">⚡</div>
                <div>
                    <h3 style="margin: 0 0 5px 0;">Fast Access</h3>
                    <p style="margin: 0; color: #6b7280;">Quick login with email verification codes</p>
                </div>
            </div>
            <div class="feature">
                <div class="feature-icon">🛡️</div>
                <div>
                    <h3 style="margin: 0 0 5px 0;">Enhanced Security</h3>
                    <p style="margin: 0; color: #6b7280;">No passwords to remember or compromise</p>
                </div>
            </div>
        </div>

        <p>To get started, simply request a login code whenever you want to sign in. We'll send you a secure code via email that you can use to access your account.</p>

        <div class="footer">
            <p>Thanks for joining {{ site_name }}!</p>
            <p>If you have any questions, feel free to contact our support team.</p>
        </div>
    </div>
</body>
</html>
