<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>Registrasi Berhasil</title>
    <style>
        /* Reset */
        * { box-sizing: border-box; }

        body {
            margin: 0;
            padding: 0;
            background-color: #F7F6F4;
            font-family: Arial, sans-serif;
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        /* Wrapper */
        .email-wrapper {
            width: 100%;
            background-color: #F7F6F4;
            padding: 40px 16px;
        }

        /* Card */
        .email-card {
            background-color: #ffffff;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid #E1DED9;
            max-width: 520px;
            margin: 0 auto;
            width: 100%;
        }

        /* Header */
        .email-header {
            background-color: #A32D2D;
            padding: 22px 28px;
        }

        .email-header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .email-header-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .email-header-brand img {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            vertical-align: middle;
        }

        .email-header-brand span {
            color: #ffffff;
            font-size: 15px;
            font-weight: bold;
        }

        .email-header-label {
            color: #F7C1C1;
            font-size: 12px;
            white-space: nowrap;
            margin-left: 12px;
        }

        /* Greeting */
        .email-greeting {
            padding: 28px 28px 8px;
        }

        .email-greeting h2 {
            margin: 0 0 6px;
            font-size: 20px;
            font-weight: bold;
            color: #1C1A18;
        }

        .email-greeting p {
            margin: 0;
            font-size: 14px;
            color: #6B6865;
            line-height: 1.7;
        }

        /* Credentials Box */
        .email-creds {
            padding: 20px 28px;
        }

        .creds-box {
            background-color: #FCEBEB;
            border-radius: 8px;
            padding: 18px 20px;
        }

        .creds-badge-row {
            margin: 0 0 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid #F7C1C1;
        }

        .creds-badge {
            display: inline-block;
            background: #A32D2D;
            color: #ffffff;
            font-size: 11px;
            font-weight: bold;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .creds-table {
            width: 100%;
            font-size: 13px;
            border-collapse: collapse;
        }

        .creds-table td {
            padding: 6px 0;
            vertical-align: top;
        }

        .creds-label {
            color: #6B6865;
            width: 100px;
            min-width: 90px;
            white-space: nowrap;
        }

        .creds-value {
            color: #501313;
            font-weight: bold;
            word-break: break-all;
        }

        .creds-password {
            font-family: monospace;
            font-size: 14px;
            letter-spacing: 2px;
            background: #F7C1C1;
            color: #791F1F;
            padding: 3px 10px;
            border-radius: 4px;
            display: inline-block;
            word-break: break-all;
        }

        /* Warning */
        .email-warning {
            padding: 0 28px 28px;
        }

        .warning-box {
            background-color: #F7F6F4;
            border-radius: 8px;
            padding: 14px 18px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .warning-icon {
            flex-shrink: 0;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: #A32D2D;
            text-align: center;
            line-height: 16px;
            margin-top: 2px;
        }

        .warning-icon span {
            color: #fff;
            font-size: 10px;
            font-weight: bold;
        }

        .warning-text {
            font-size: 13px;
            color: #6B6865;
            line-height: 1.7;
        }

        /* Footer */
        .email-footer {
            border-top: 1px solid #EFEEEC;
            padding: 20px 28px;
        }

        .email-footer p {
            margin: 0;
            font-size: 12px;
            color: #9A9692;
            line-height: 1.7;
        }

        /* Mobile */
        @media only screen and (max-width: 480px) {
            .email-wrapper {
                padding: 24px 12px;
            }

            .email-header {
                padding: 18px 20px;
            }

            .email-greeting {
                padding: 24px 20px 8px;
            }

            .email-creds {
                padding: 16px 20px;
            }

            .creds-box {
                padding: 16px;
            }

            .email-warning {
                padding: 0 20px 24px;
            }

            .email-footer {
                padding: 18px 20px;
            }

            .email-greeting h2 {
                font-size: 18px;
            }

            .creds-label {
                width: 80px;
                min-width: 80px;
            }
        }
    </style>
</head>
<body>

<div class="email-wrapper">
    <div class="email-card">

        <!-- Header -->
        <div class="email-header">
            <div class="email-header-inner">
                <div class="email-header-brand">
                    <img src="{{asset('assets/custom/images/main_logo.png')}}" alt="Logo">
                    <span>YourApp</span>
                </div>
                <span class="email-header-label">Notifikasi Akun</span>
            </div>
        </div>

        <!-- Greeting -->
        <div class="email-greeting">
            <h2>Akun berhasil dibuat</h2>
            <p>
                Halo <strong style="color:#1C1A18;">{{$name}}</strong>, selamat datang. Berikut adalah informasi login Anda.
            </p>
        </div>

        <!-- Credentials Box -->
        <div class="email-creds">
            <div class="creds-box">
                <div class="creds-badge-row">
                    <span class="creds-badge">Kredensial Login</span>
                </div>
                <table class="creds-table">
                    <tr>
                        <td class="creds-label">Email</td>
                        <td class="creds-value">{{$email}}</td>
                    </tr>
                    <tr>
                        <td class="creds-label">Nama Lengkap</td>
                        <td class="creds-value">{{$name}}</td>
                    </tr>
                    <tr>
                        <td class="creds-label">Kata Sandi</td>
                        <td>
                            <span class="creds-password">{{$password}}</span>
                        </td>
                    </tr>
                </table>
            </div>
        </div>

        <!-- Warning -->
        <div class="email-warning">
            <div class="warning-box">
                <div class="warning-icon">
                    <span>!</span>
                </div>
                <div class="warning-text">
                    Segera ganti kata sandi Anda setelah login pertama kali untuk menjaga keamanan akun.
                </div>
            </div>
        </div>

        <!-- Footer -->
        <div class="email-footer">
            <p>
                Email ini dikirim secara otomatis. Mohon tidak membalas email ini.<br/>
                Jika Anda merasa tidak mendaftar, abaikan email ini.
            </p>
        </div>

    </div>
</div>

</body>
</html>
