<!doctype html>
<html lang="ko">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>{{ $subject ?? '' }}</title>
</head>
<body style="margin:0;padding:0;background:#f6f7fb;">
<div style="max-width:640px;margin:0 auto;padding:24px;">
    <div style="background:#ffffff;border-radius:14px;padding:22px;border:1px solid #e9ebf3;">
        <div style="font-weight:900;font-size:16px;margin-bottom:8px;">{{ $brand ?? 'Service' }}</div>
        <div style="color:#666;font-size:13px;margin-bottom:16px;">{{ $subject ?? '' }}</div>

        <div style="font-size:14px;line-height:1.6;color:#222;">
            @if(!empty($name))
                <div style="margin-bottom:10px;"><b>{{ $name }}</b> 님,</div>
            @endif

            <div style="margin-bottom:14px;">비밀번호 초기화 요청이 접수되어 임시 비밀번호가 발급되었습니다.</div>

            <div style="background:#f3f5ff;border:1px solid #d9ddff;border-radius:12px;padding:14px;margin-bottom:14px;">
                <div style="font-size:12px;color:#556;margin-bottom:6px;">임시 비밀번호</div>
                <div style="font-weight:900;font-size:18px;letter-spacing:1px;">{{ $temp_password ?? '' }}</div>
            </div>

            <div style="margin-bottom:14px;">로그인 후 즉시 비밀번호를 변경해 주세요.</div>

            @if(!empty($siteUrl))
                <a href="{{ $siteUrl }}"
                   style="display:inline-block;background:#3b82f6;color:#fff;text-decoration:none;padding:10px 14px;border-radius:12px;font-weight:800;">
                    사이트로 이동
                </a>
            @endif

            <div style="margin-top:18px;color:#777;font-size:12px;">
                본 메일은 발신전용입니다.
            </div>
        </div>
    </div>

    <div style="text-align:center;color:#999;font-size:12px;margin-top:14px;">
        © {{ $year ?? date('Y') }} {{ $brand ?? 'Service' }}
    </div>
</div>
</body>
</html>
