<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>You're invited to join AuthentiKate</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
            margin: 0;
            padding: 20px;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px 20px;
            text-align: center;
        }

        .header h1 {
            margin: 0;
            font-size: 28px;
            font-weight: 600;
        }

        .content {
            padding: 30px 20px;
        }

        .button {
            display: inline-block;
            background: #667eea;
            color: white;
            text-decoration: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-weight: 500;
            margin: 20px 0;
        }

        .button:hover {
            background: #5a6fd8;
        }

        .footer {
            background: #f8f9fa;
            padding: 20px;
            text-align: center;
            color: #6c757d;
            font-size: 14px;
        }

        .invite-details {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 20px;
            margin: 20px 0;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="header">
            <h1>= AuthentiKate</h1>
            <p>You've been invited to join our authentication platform</p>
        </div>

        <div class="content">
            <h2>Hello!</h2>

            <p>You've been invited to create an account on <strong>AuthentiKate</strong>, our secure authentication
                platform. This will give you access to various applications and services.</p>

            <div class="invite-details">
                <h3>Invitation Details:</h3>
                <p><strong>Email:</strong> {{ $invitation->email }}</p>
                <p><strong>Invited by:</strong> {{ $invitation->creator->name }}</p>
                <p><strong>Expires:</strong> {{ $invitation->expires_at->format('F j, Y \a\t g:i A') }}</p>
            </div>

            <p>To accept this invitation and create your account, click the button below:</p>

            <div style="text-align: center;">
                <a href="{{ $invitation->getInviteUrl() }}" class="button">Accept Invitation</a>
            </div>

            <p>Or copy and paste this link into your browser:</p>
            <p
                style="word-break: break-all; background: #f8f9fa; padding: 10px; border-radius: 4px; font-family: monospace;">
                {{ $invitation->getInviteUrl() }}
            </p>

            <p><strong>Note:</strong> This invitation will expire on {{ $invitation->expires_at->format('F j, Y') }}. If
                you don't create your account by then, you'll need to request a new invitation.</p>
        </div>

        <div class="footer">
            <p>This invitation was sent from AuthentiKate.</p>
            <p>If you weren't expecting this invitation, you can safely ignore this email.</p>
        </div>
    </div>
</body>

</html>