<!DOCTYPE html>
<html>
  <body style="font-family: -apple-system, system-ui, sans-serif; background:#0a0a0f; color:#e5e7eb; padding:32px;">
    <div style="max-width:480px; margin:0 auto; background:#111118; border:1px solid #1f2937; border-radius:16px; padding:32px;">
      <h1 style="margin:0 0 16px; font-size:20px; color:#fff;">ChatApp — Magic Link</h1>
      <p style="margin:0 0 24px; color:#9ca3af;">Use this 6-digit code in the app to sign in:</p>
      <div style="font-family: 'JetBrains Mono', monospace; font-size:32px; letter-spacing:8px; background:#0f0f18; border:1px solid #374151; border-radius:12px; padding:20px; text-align:center; color:#fff;">
        {{ .Token }}
      </div>
      <p style="margin:24px 0 8px; font-size:12px; color:#6b7280;">Or click the link below (only works inside a browser, not the desktop app):</p>
      <p style="margin:0; font-size:12px;"><a href="{{ .ConfirmationURL }}" style="color:#818cf8;">{{ .ConfirmationURL }}</a></p>
      <p style="margin:32px 0 0; font-size:11px; color:#4b5563;">Expires in 1 hour.</p>
    </div>
  </body>
</html>
