package smtp const ( // Common CSS styles shared across all email templates commonStyles = ` body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px; } .container { background-color: #ffffff; border: 1px solid #e1e1e1; border-radius: 5px; padding: 25px; margin-top: 20px; } .header { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e1e1e1; } .content { margin-bottom: 20px; } .footer { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e1e1e1; font-size: 0.9em; color: #666; } .button { display: inline-block; padding: 10px 20px; background-color: #007bff; color: #ffffff; text-decoration: none; border-radius: 5px; margin: 15px 0; } .button:hover { background-color: #0056b3; } @media only screen and (max-width: 600px) { body { padding: 10px; } .container { padding: 15px; } } ` // Template-specific styles defaultStyles = `` verificationStyles = ` .content { text-align: center; } .button { padding: 12px 24px; background-color: #28a745; font-weight: bold; } .button:hover { background-color: #218838; } .verification-link { margin: 20px 0; padding: 15px; background-color: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 5px; word-break: break-all; } ` welcomeStyles = ` .credentials { background-color: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 5px; padding: 20px; margin: 20px 0; } .credential-item { margin: 10px 0; } .label { font-weight: bold; color: #495057; } .value { font-family: monospace; background-color: #e9ecef; padding: 2px 6px; border-radius: 3px; } ` // Email templates with shared and specific styles defaultTemplate = ` {{.Subject}}

{{.Subject}}

{{.Body}}
` verificationTemplate = ` Email Verification

Verify Your Email

Thank you for registering. Please click the button below to verify your email address:

Verify Email
` welcomeTemplate = ` Welcome!

Welcome!

Your account has been successfully created. Here are your access details:

Username: {{.Username}}
Password: {{.Password}}
{{if .WebAppURL}}
Application URL: {{.WebAppURL}}
{{end}}
{{if .WebAppURL}} Access Your Account {{end}}

Important: Please change your password upon your first login.

` )