<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Welcome to {{COMPANY_NAME}}</title>
        <style>
            /* Reset styles for email clients */
            body,
            table,
            td,
            p,
            a,
            li,
            blockquote {
                -webkit-text-size-adjust: 100%;
                -ms-text-size-adjust: 100%;
            }

            table,
            td {
                mso-table-lspace: 0pt;
                mso-table-rspace: 0pt;
            }

            img {
                -ms-interpolation-mode: bicubic;
                border: 0;
                height: auto;
                line-height: 100%;
                outline: none;
                text-decoration: none;
            }

            /* Main styles */
            body {
                margin: 0 !important;
                padding: 0 !important;
                background-color: #f4f4f4;
                font-family: Arial, sans-serif;
            }

            .email-container {
                max-width: 600px;
                margin: 0 auto;
                background-color: #ffffff;
            }

            .header {
                padding: 20px;
                text-align: center;
                background-color: #ffffff;
            }

            .logo {
                font-size: 24px;
                font-weight: bold;
                color: #333333;
            }

            .logo-icon {
                display: inline-block;
                width: 24px;
                height: 24px;
                background-color: #4caf50;
                border-radius: 50%;
                margin-right: 8px;
                vertical-align: middle;
            }

            .welcome-banner {
                background: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%);
                padding: 40px 20px;
                text-align: center;
                position: relative;
                overflow: hidden;
            }

            .welcome-title {
                font-size: 48px;
                font-weight: bold;
                color: #2c3e50;
                margin: 0;
                z-index: 2;
                position: relative;
            }

            .welcome-illustration {
                position: absolute;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                width: 80px;
                height: 80px;
            }

            .person-avatar {
                width: 60px;
                height: 60px;
                background-color: #ff6b35;
                border-radius: 50%;
                position: relative;
                margin: 0 auto;
            }

            .person-avatar::before {
                content: "";
                position: absolute;
                top: 15px;
                left: 50%;
                transform: translateX(-50%);
                width: 20px;
                height: 20px;
                background-color: #8b4513;
                border-radius: 50%;
            }

            .person-avatar::after {
                content: "";
                position: absolute;
                bottom: 10px;
                left: 50%;
                transform: translateX(-50%);
                width: 40px;
                height: 20px;
                background-color: #ffffff;
                border-radius: 10px 10px 0 0;
            }

            .decorative-shapes {
                position: absolute;
                top: 0;
                right: 0;
                width: 100%;
                height: 100%;
                opacity: 0.3;
            }

            .shape1 {
                position: absolute;
                top: 20px;
                right: 100px;
                width: 60px;
                height: 40px;
                background-color: #4caf50;
                border-radius: 30px 30px 0 30px;
            }

            .shape2 {
                position: absolute;
                bottom: 30px;
                right: 150px;
                width: 40px;
                height: 40px;
                background-color: #4caf50;
                border-radius: 50%;
            }

            .content {
                padding: 30px 40px;
            }

            .welcome-text {
                font-size: 18px;
                font-weight: bold;
                color: #333333;
                margin: 0 0 20px 0;
            }

            .body-text {
                font-size: 14px;
                color: #666666;
                line-height: 1.5;
                margin: 0 0 25px 0;
            }

            .cta-button {
                display: inline-block;
                background-color: #4caf50;
                color: #ffffff !important;
                text-decoration: none;
                padding: 12px 24px;
                border-radius: 6px;
                font-size: 14px;
                font-weight: bold;
                margin: 0 0 20px 0;
            }

            .alternative-text {
                font-size: 14px;
                color: #666666;
                margin: 20px 0;
            }

            .alternative-link {
                color: #2196f3;
                text-decoration: none;
                word-break: break-all;
            }

            .ignore-text {
                font-size: 12px;
                color: #999999;
                margin: 20px 0;
            }

            .signature {
                font-size: 14px;
                color: #666666;
                margin: 20px 0 0 0;
            }

            .footer {
                background-color: #f8f8f8;
                padding: 20px;
                text-align: center;
                font-size: 12px;
                color: #999999;
            }

            .footer-link {
                color: #2196f3;
                text-decoration: none;
            }

            /* Mobile responsive */
            @media only screen and (max-width: 600px) {
                .email-container {
                    width: 100% !important;
                }

                .content {
                    padding: 20px !important;
                }

                .welcome-title {
                    font-size: 36px !important;
                }

                .welcome-banner {
                    padding: 30px 15px !important;
                }
            }
            .bkt-powered-by {
                margin: 15px 0 0 0;
                padding-top: 15px;
                border-top: 1px solid #dddddd;
                font-size: 11px;
                color: #b3b3b3;
                font-style: italic;
            }
        </style>
    </head>

    <body>
        <table
            role="presentation"
            cellspacing="0"
            cellpadding="0"
            border="0"
            width="100%"
        >
            <tr>
                <td>
                    <div class="email-container">
                        <!-- Header -->
                        <div class="header">
                            <div class="logo">
                                <span class="logo-icon"
                                    ><img
                                        src="{{COMPANY_LOGO}}"
                                        width="30"
                                        height="30"
                                        alt="{{COMPANY_NAME}}"
                                /></span>
                                {{COMPANY_NAME}}
                            </div>
                        </div>

                        <!-- Welcome Banner -->
                        <div class="welcome-banner">
                            <div class="decorative-shapes">
                                <div class="shape1"></div>
                                <div class="shape2"></div>
                            </div>
                            <h1 class="welcome-title">Welcome</h1>
                            <div class="welcome-illustration">
                                <div class="person-avatar"></div>
                            </div>
                        </div>

                        <!-- Main Content -->
                        {{MESSAGE}}
                        <!-- Main Content -->

                        <!-- Footer -->
                        <div class="footer">
                            <p>Sent by {{COMPANY_NAME}}</p>
                            <p>{{COMPANY_ADDRESS}}</p>
                            <!-- Branding Section -->
                            {%powered_by_section%}
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </body>
</html>
