<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to {{ config('app.name') }}</title>
    <style>
        body { font-family: Arial, sans-serif; background: #f4f4f4; margin: 0; padding: 0; }
        .container { max-width: 600px; margin: 30px auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
        .header { background: #1a56db; color: #fff; padding: 30px 40px; text-align: center; }
        .header h1 { margin: 0; font-size: 24px; }
        .body { padding: 30px 40px; color: #333; }
        .code-box { background: #f0f4ff; border: 2px dashed #1a56db; border-radius: 6px; padding: 16px 24px; text-align: center; margin: 20px 0; font-size: 22px; font-weight: bold; letter-spacing: 2px; color: #1a56db; }
        .btn { display: inline-block; margin-top: 20px; padding: 12px 28px; background: #1a56db; color: #fff; text-decoration: none; border-radius: 6px; font-size: 15px; }
        .footer { background: #f9f9f9; padding: 20px 40px; font-size: 12px; color: #999; text-align: center; }
    </style>
</head>
<body>
<div class="container">
    <div class="header">
        <h1>Welcome to {{ config('app.name') }}!</h1>
    </div>
    <div class="body">
        <p>Dear {{ $name }},</p>
        <p>Congratulations! Your membership has been activated. We are delighted to have you as a member of <strong>{{ config('app.name') }}</strong>.</p>

        <p>Your membership code is:</p>
        <div class="code-box">{{ $membership_code }}</div>

        <p>Please keep this code safe — you will need it to access member-only features and services.</p>

        <p>You can log in to your member portal using the button below:</p>
        <a href="{{ $login_url }}" class="btn">Log In to Member Portal</a>

        <p style="margin-top: 24px;">If you have any questions, please do not hesitate to contact our support team.</p>
        <p>Best regards,<br>{{ config('app.name') }} Team</p>
    </div>
    <div class="footer">
        &copy; {{ date('Y') }} {{ config('app.name') }}. All rights reserved.
    </div>
</div>
</body>
</html>
