<!DOCTYPE html>
<html lang="en" xml:lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Sign Out - SSO VietProDev</title>
  <style>
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #0f0f0f;
      color: #e5e5e5;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card {
      background: #1a1a1a;
      border: 1px solid #2a2a2a;
      border-radius: 16px;
      padding: 40px 36px;
      width: 100%;
      max-width: 420px;
      text-align: center;
    }
    .icon {
      width: 56px;
      height: 56px;
      background: rgba(239, 68, 68, 0.12);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 24px;
    }
    .icon svg { width: 28px; height: 28px; color: #ef4444; }
    h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
    p { font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 32px; }
    .client-name {
      display: inline-block;
      background: rgba(79, 70, 229, 0.15);
      color: #818cf8;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 20px;
      margin-bottom: 24px;
    }
    .btn-row { display: flex; flex-direction: column; gap: 12px; }
    button {
      width: 100%;
      padding: 13px;
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-signout { background: #ef4444; color: #fff; }
    .btn-signout:hover { background: #dc2626; }
    .btn-stay {
      background: transparent;
      border: 1px solid #2a2a2a;
      color: #888;
    }
    .btn-stay:hover { border-color: #3a3a3a; color: #aaa; }
    .footer { margin-top: 24px; font-size: 12px; color: #444; }
  </style>
</head>
<body>
  <div class="card">
    <div class="icon">
      <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15M12 9l-3 3m0 0l3 3m-3-3h12.75" />
      </svg>
    </div>

    <div class="client-name">{{ client }}</div>
    <h1>Sign out of SSO?</h1>
    <p>You will be signed out from this authorization server and all connected applications.</p>

    <div class="btn-row">
      {{{ formHtml }}}
    </div>

    <div class="footer">SSO VietProDev Authorization Server</div>
  </div>
</body>
</html>
