Get authentication

๐Ÿ“ฆ GitHub
โœจ The Prompt Phrase
What GitHub CLI command would you run to start the process of signing in and authenticating your account from the terminal?


~gh auth login~

๐Ÿ’ป Code Preview

๐Ÿ“ฆ All-in-One Code
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Get authentication - Interactive Tutorial</title>
  <style>
    :root {
      --bg: #0b1020;
      --bg2: #121a33;
      --card: rgba(255,255,255,0.08);
      --text: #eef4ff;
      --muted: #b8c4e0;
      --purple: #8b5cf6;
      --blue: #38bdf8;
      --green: #34d399;
      --pink: #f472b6;
      --red: #fb7185;
      --yellow: #facc15;
      --border: rgba(255,255,255,0.14);
      --shadow: 0 20px 50px rgba(0,0,0,0.35);
      --radius: 22px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Segoe UI", system-ui, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(139,92,246,0.25), transparent 30%),
        radial-gradient(circle at top right, rgba(56,189,248,0.18), transparent 30%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
      color: var(--text);
      min-height: 100vh;
      line-height: 1.65;
      padding: 24px;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .page {
      max-width: 1200px;
      margin: 0 auto;
    }

    .nav {
      position: sticky;
      top: 16px;
      z-index: 20;
      backdrop-filter: blur(14px);
      background: rgba(11,16,32,0.72);
      border: 1px solid var(--border);
      border-radius: 999px;
      box-shadow: var(--shadow);
      padding: 10px 16px;
      margin-bottom: 24px;
      display: flex;
      gap: 10px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .nav a {
      padding: 10px 14px;
      border-radius: 999px;
      color: var(--muted);
      transition: 0.25s ease;
      font-size: 0.95rem;
    }

    .nav a:hover,
    .nav a:focus {
      background: rgba(255,255,255,0.08);
      color: var(--text);
      outline: none;
    }

    .hero {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border);
      background: linear-gradient(145deg, rgba(139,92,246,0.18), rgba(56,189,248,0.12));
      border-radius: 32px;
      padding: 42px 28px;
      box-shadow: var(--shadow);
      margin-bottom: 24px;
      animation: fadeUp 0.8s ease;
    }

    .hero::before,
    .hero::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      filter: blur(20px);
      opacity: 0.5;
      pointer-events: none;
    }

    .hero::before {
      width: 220px;
      height: 220px;
      background: rgba(139,92,246,0.28);
      top: -60px;
      right: -40px;
    }

    .hero::after {
      width: 180px;
      height: 180px;
      background: rgba(52,211,153,0.18);
      bottom: -50px;
      left: -30px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,0.09);
      border: 1px solid var(--border);
      color: var(--muted);
      padding: 8px 14px;
      border-radius: 999px;
      margin-bottom: 18px;
      font-size: 0.92rem;
    }

    .hero h1 {
      font-size: clamp(2rem, 5vw, 4rem);
      line-height: 1.1;
      margin-bottom: 14px;
    }

    .gradient-text {
      background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero p {
      color: var(--muted);
      max-width: 760px;
      font-size: 1.05rem;
      margin-bottom: 20px;
    }

    .hero-code {
      background: rgba(3,7,18,0.8);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 18px;
      padding: 18px;
      font-family: Consolas, monospace;
      color: #dbeafe;
      overflow-x: auto;
      margin-bottom: 18px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .btn, .copy-label, .theme-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border-radius: 14px;
      padding: 12px 16px;
      border: 1px solid var(--border);
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
      font-weight: 600;
    }

    .btn {
      background: linear-gradient(135deg, var(--purple), var(--blue));
      color: white;
    }

    .btn:hover, .copy-label:hover, .theme-label:hover {
      transform: translateY(-2px);
    }

    .copy-toggle,
    .theme-toggle,
    .tab-radio,
    .quiz input[type="radio"] {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .copy-wrap {
      position: relative;
    }

    .copy-label,
    .theme-label {
      background: rgba(255,255,255,0.08);
      color: var(--text);
      min-width: 160px;
    }

    .copy-text-done,
    .theme-text-alt {
      display: none;
    }

    .copy-toggle:checked + .copy-label .copy-text-default,
    .theme-toggle:checked + .theme-label .theme-text-default {
      display: none;
    }

    .copy-toggle:checked + .copy-label .copy-text-done,
    .theme-toggle:checked + .theme-label .theme-text-alt {
      display: inline;
    }

    .copy-toggle:checked + .copy-label {
      background: linear-gradient(135deg, var(--green), #10b981);
      color: #062814;
    }

    .theme-toggle:checked + .theme-label {
      background: linear-gradient(135deg, #fde68a, #fbbf24);
      color: #3b2f00;
    }

    .progress-card {
      margin-top: 18px;
      display: grid;
      gap: 10px;
      max-width: 540px;
    }

    .progress-bar {
      width: 100%;
      height: 14px;
      border-radius: 999px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .progress-bar span {
      display: block;
      width: 76%;
      height: 100%;
      background: linear-gradient(90deg, var(--purple), var(--blue), var(--green));
      border-radius: inherit;
      animation: loadBar 1.6s ease;
    }

    .badges {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .badge {
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--border);
      padding: 8px 12px;
      border-radius: 999px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 24px;
      margin-bottom: 24px;
    }

    .stack {
      display: grid;
      gap: 24px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      backdrop-filter: blur(16px);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 24px;
      animation: fadeUp 0.8s ease;
    }

    .card h2 {
      font-size: 1.4rem;
      margin-bottom: 10px;
    }

    .card h3 {
      font-size: 1.05rem;
      margin-bottom: 8px;
    }

    .muted {
      color: var(--muted);
    }

    .list {
      display: grid;
      gap: 12px;
      margin-top: 16px;
    }

    .list li {
      list-style: none;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 14px 16px;
      border-radius: 16px;
    }

    .tooltip {
      position: relative;
      border-bottom: 1px dashed rgba(255,255,255,0.4);
      cursor: help;
      color: #c4b5fd;
    }

    .tooltip::after {
      content: attr(data-tip);
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 140%;
      width: 220px;
      background: #08101f;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 0.86rem;
      line-height: 1.45;
      opacity: 0;
      pointer-events: none;
      transition: 0.2s ease;
      box-shadow: var(--shadow);
    }

    .tooltip:hover::after,
    .tooltip:focus::after {
      opacity: 1;
    }

    details {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 14px 16px;
    }

    details + details {
      margin-top: 12px;
    }

    summary {
      cursor: pointer;
      font-weight: 700;
      list-style: none;
    }

    summary::-webkit-details-marker {
      display: none;
    }

    summary::after {
      content: "๏ผ‹";
      float: right;
      color: var(--blue);
    }

    details[open] summary::after {
      content: "๏ผ";
    }

    .step-grid {
      display: grid;
      gap: 14px;
      margin-top: 16px;
    }

    .step {
      display: grid;
      grid-template-columns: 46px 1fr;
      gap: 14px;
      align-items: start;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 14px;
    }

    .step-number {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--purple), var(--blue));
      font-weight: 800;
    }

    .tabs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .tab-label {
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.06);
      color: var(--muted);
      cursor: pointer;
      transition: 0.2s ease;
      font-weight: 600;
    }

    .tab-panel {
      display: none;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 18px;
    }

    #tab1:checked ~ .tabs .label1,
    #tab2:checked ~ .tabs .label2,
    #tab3:checked ~ .tabs .label3 {
      background: linear-gradient(135deg, var(--purple), var(--blue));
      color: white;
    }

    #tab1:checked ~ .panels .panel1,
    #tab2:checked ~ .panels .panel2,
    #tab3:checked ~ .panels .panel3 {
      display: block;
    }

    .code-box {
      background: #08101f;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 18px;
      padding: 18px;
      overflow-x: auto;
      font-family: Consolas, monospace;
      margin-top: 14px;
    }

    .token-cmd { color: #93c5fd; }
    .token-action { color: #86efac; }
    .token-flag { color: #f9a8d4; }

    .annotated {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    .annotated div {
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .mistake {
      border-left: 4px solid var(--red);
    }

    .tip {
      border-left: 4px solid var(--green);
    }

    .quiz-question {
      padding: 18px;
      border-radius: 18px;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      margin-bottom: 16px;
    }

    .option {
      display: block;
      margin-top: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.04);
      cursor: pointer;
      transition: 0.2s ease;
    }

    .option:hover {
      background: rgba(255,255,255,0.08);
    }

    .feedback {
      display: none;
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      font-weight: 600;
    }

    .correct {
      background: rgba(52,211,153,0.16);
      border: 1px solid rgba(52,211,153,0.35);
      color: #bbf7d0;
    }

    .wrong {
      background: rgba(251,113,133,0.14);
      border: 1px solid rgba(251,113,133,0.35);
      color: #fecdd3;
    }

    #q1a:checked ~ .f1a,
    #q2b:checked ~ .f2b,
    #q3b:checked ~ .f3b {
      display: block;
      position: relative;
    }

    #q1a:checked ~ .f1a::after,
    #q2b:checked ~ .f2b::after,
    #q3b:checked ~ .f3b::after {
      content: "๐ŸŽ‰ โœจ ๐ŸŽŠ";
      display: block;
      margin-top: 8px;
      font-size: 1.1rem;
      animation: pop 0.5s ease;
    }

    #q1b:checked ~ .f1b,
    #q1c:checked ~ .f1c,
    #q2a:checked ~ .f2a,
    #q2c:checked ~ .f2c,
    #q3a:checked ~ .f3a,
    #q3c:checked ~ .f3c {
      display: block;
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 16px;
    }

    .mini-card {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 16px;
      border-radius: 18px;
    }

    .footer {
      text-align: center;
      color: var(--muted);
      padding: 28px 16px 10px;
      font-size: 0.95rem;
    }

    .story {
      padding: 18px;
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(52,211,153,0.08));
      border: 1px solid rgba(255,255,255,0.09);
      margin-top: 16px;
    }

    .theme-toggle:checked ~ .page {
      --bg: #f4f7ff;
      --bg2: #e8eefc;
      --card: rgba(255,255,255,0.85);
      --text: #13213d;
      --muted: #4d6287;
      --border: rgba(19,33,61,0.12);
      --shadow: 0 18px 40px rgba(42,60,120,0.16);
    }

    .theme-toggle:checked ~ .page .nav {
      background: rgba(255,255,255,0.8);
    }

    .theme-toggle:checked ~ .page .hero-code,
    .theme-toggle:checked ~ .page .code-box,
    .theme-toggle:checked ~ .page .tooltip::after {
      background: #eef4ff;
      color: #13213d;
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes loadBar {
      from { width: 0; }
      to { width: 76%; }
    }

    @keyframes pop {
      from { transform: scale(0.9); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }

    @media (max-width: 900px) {
      .grid {
        grid-template-columns: 1fr;
      }

      .summary-grid {
        grid-template-columns: 1fr;
      }

      .hero {
        padding: 30px 20px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }
    }
  </style>
</head>
<body>
  <div class="page">
    <nav class="nav" aria-label="Tutorial sections">
      <a href="#what">What Is It?</a>
      <a href="#why">Why Use It?</a>
      <a href="#how">How It Works</a>
      <a href="#demo">Live Demo</a>
      <a href="#breakdown">Code Breakdown</a>
      <a href="#mistakes">Mistakes</a>
      <a href="#tips">Pro Tips</a>
      <a href="#quiz">Quiz</a>
      <a href="#summary">Summary</a>
    </nav>

    <input class="theme-toggle" id="themeToggle" type="checkbox" hidden>

    <header class="hero">
      <div class="eyebrow">๐ŸŽ“ Beginner-Friendly โ€ข ๐Ÿ” Authentication Quest โ€ข ๐Ÿ’ป CLI Adventure</div>
      <h1>Master <span class="gradient-text">gh auth login</span></h1>
      <p>
        Welcome, code explorer! This command is how you tell the
        <span class="tooltip" tabindex="0" data-tip="GitHub CLI is the official command-line tool for working with GitHub from your terminal.">GitHub CLI</span>
        to begin the login and authentication process. Think of it as showing your digital passport so the terminal can talk to your GitHub account. ๐Ÿš€
      </p>

      <div class="hero-code" aria-label="Command example">gh auth login</div>

      <div class="hero-actions">
        <a class="btn" href="#quiz">๐Ÿš€ Start the Challenge</a>

        <div class="copy-wrap">
          <input class="copy-toggle" id="copyHero" type="checkbox">
          <label class="copy-label" for="copyHero" aria-label="Copy command visual button">
            <span class="copy-text-default">๐Ÿ“‹ Copy Command</span>
            <span class="copy-text-done">โœ… Ready to Copy</span>
          </label>
        </div>

        <label class="theme-label" for="themeToggle" aria-label="Theme toggle">
          <span class="theme-text-default">๐ŸŒ™ Dark / โ˜€๏ธ Light</span>
          <span class="theme-text-alt">โ˜€๏ธ Light Theme On</span>
        </label>
      </div>

      <div class="progress-card">
        <div class="muted">Tutorial progress: you're about to unlock GitHub CLI authentication basics.</div>
        <div class="progress-bar" aria-label="Learning progress"><span></span></div>
        <div class="badges">
          <div class="badge">๐Ÿง  Skill: CLI Authentication</div>
          <div class="badge">โญ Level: Beginner</div>
          <div class="badge">๐Ÿ… Goal: Sign into GitHub CLI confidently</div>
        </div>
      </div>
    </header>

    <div class="grid">
      <main class="stack">
        <section class="card" id="what">
          <h2>๐Ÿค” What Is It?</h2>
          <p class="muted">
            This command tells GitHub CLI to start the process of signing you into your GitHub account from the terminal.
          </p>
          <div class="story">
            <strong>Story mode:</strong> Imagine the GitHub CLI is a helpful robot assistant. Before it can open private repo doors or manage pull requests for you, it needs proof that it's really acting on your behalf. <strong>gh auth login</strong> is the moment you introduce yourself. ๐Ÿค
          </div>
          <ul class="list">
            <li>๐Ÿ’ป <strong>gh</strong> is the GitHub CLI command.</li>
            <li>๐Ÿ” <strong>auth</strong> means authentication-related actions.</li>
            <li>๐Ÿšช <strong>login</strong> starts signing in to GitHub.</li>
          </ul>
        </section>

        <section class="card" id="why">
          <h2>๐ŸŒŸ Why Use It?</h2>
          <p class="muted">You use this command when you want GitHub CLI to connect to your GitHub account and unlock account-based features.</p>
          <ul class="list">
            <li>๐Ÿ”“ Lets GitHub CLI access your GitHub account securely.</li>
            <li>๐Ÿ“ฆ Needed before using many GitHub CLI features like repo and PR management.</li>
            <li>โšก Faster than doing everything manually in the browser.</li>
            <li>๐Ÿ› ๏ธ Essential for setup guides, automation, and development workflows.</li>
          </ul>
        </section>

        <section class="card" id="how">
          <h2>๐Ÿงฉ How Does It Work?</h2>
          <p class="muted">When you run the command, GitHub CLI guides you through login choices and authentication steps.</p>
          <div class="step-grid">
            <div class="step">
              <div class="step-number">1</div>
              <div>
                <h3>Open a Terminal</h3>
                <p class="muted">Use Command Prompt, PowerShell, Windows Terminal, or another shell.</p>
              </div>
            </div>
            <div class="step">
              <div class="step-number">2</div>
              <div>
                <h3>Run the Command</h3>
                <p class="muted">Type <strong>gh auth login</strong> and press Enter.</p>
              </div>
            </div>
            <div class="step">
              <div class="step-number">3</div>
              <div>
                <h3>Choose Login Options</h3>
                <p class="muted">GitHub CLI may ask about account type, protocol, and preferred login method.</p>
              </div>
            </div>
            <div class="step">
              <div class="step-number">4</div>
              <div>
                <h3>Authenticate</h3>
                <p class="muted">Complete the sign-in flow and GitHub CLI stores the authentication for future commands.</p>
              </div>
            </div>
          </div>
        </section>

        <section class="card" id="demo">
          <h2>๐ŸŽฎ Live Demo / Example</h2>

          <input class="tab-radio" type="radio" name="tabs" id="tab1" checked>
          <input class="tab-radio" type="radio" name="tabs" id="tab2">
          <input class="tab-radio" type="radio" name="tabs" id="tab3">

          <div class="tabs" role="tablist" aria-label="Example tabs">
            <label class="tab-label label1" for="tab1">๐Ÿ–ฅ๏ธ Basic Run</label>
            <label class="tab-label label2" for="tab2">๐Ÿงญ What Youโ€™ll See</label>
            <label class="tab-label label3" for="tab3">โœ… Result</label>
          </div>

          <div class="panels">
            <div class="tab-panel panel1">
              <p><strong>Scenario:</strong> You just installed GitHub CLI and want to connect it to your account.</p>
              <div class="code-box">gh auth login</div>
              <p class="muted">This starts the guided authentication flow.</p>
            </div>

            <div class="tab-panel panel2">
              <p><strong>Typical experience:</strong> GitHub CLI may ask a few setup questions before authentication.</p>
              <div class="code-box">? What account do you want to log into?
? What is your preferred protocol?
? How would you like to authenticate?</div>
              <p class="muted">The exact prompts can vary, but the idea is the same: GitHub CLI helps you log in step by step.</p>
            </div>

            <div class="tab-panel panel3">
              <p><strong>What happens next:</strong> Once finished, GitHub CLI is ready to use your account permissions.</p>
              <div class="code-box">โœ“ Authentication complete
โœ“ Logged in to GitHub</div>
              <p class="muted">After that, commands like repository or pull request actions can work under your account.</p>
            </div>
          </div>
        </section>

        <section class="card" id="breakdown">
          <h2>๐Ÿงช Code Breakdown</h2>
          <div class="code-box" aria-label="Annotated command">
            <span class="token-cmd">gh</span> <span class="token-action">auth</span> <span class="token-flag">login</span>
          </div>

          <div class="annotated">
            <div><strong>gh</strong> โ†’ launches GitHub CLI.</div>
            <div><strong>auth</strong> โ†’ opens the authentication command group.</div>
            <div><strong>login</strong> โ†’ starts the login process for your GitHub account.</div>
          </div>
        </section>

        <section class="card" id="mistakes">
          <h2>๐Ÿšซ Common Mistakes</h2>
          <details open>
            <summary>Running it before installing GitHub CLI</summary>
            <div class="annotated">
              <div class="mistake">If GitHub CLI is not installed, the command will not work because the <strong>gh</strong> command will be missing.</div>
            </div>
          </details>
          <details>
            <summary>Expecting it to open a repository</summary>
            <div class="annotated">
              <div class="mistake">This command is only for authentication. It does not create repos or clone code by itself.</div>
            </div>
          </details>
          <details>
            <summary>Skipping the prompts too quickly</summary>
            <div class="annotated">
              <div class="mistake">GitHub CLI may ask important questions about account type or protocol. Read carefully before choosing.</div>
            </div>
          </details>
          <details>
            <summary>Confusing login with authorization level</summary>
            <div class="annotated">
              <div class="mistake">Logging in is not the same as understanding every permission granted. Always review what access is being requested.</div>
            </div>
          </details>
        </section>

        <section class="card" id="tips">
          <h2>๐Ÿ’ก Pro Tips</h2>
          <div class="annotated">
            <div class="tip">๐Ÿ•ต๏ธ If you're troubleshooting, confirm GitHub CLI is installed first by running a basic GitHub CLI command.</div>
            <div class="tip">๐Ÿ” Read each authentication prompt carefully so you understand your login choices.</div>
            <div class="tip">๐Ÿ“˜ This command is often one of the first steps in a GitHub CLI setup guide.</div>
            <div class="tip">๐Ÿ After logging in, you can use other GitHub CLI commands more smoothly without repeated browser-based steps.</div>
          </div>
        </section>

        <section class="card quiz" id="quiz">
          <h2>๐Ÿ† Practice Quiz</h2>
          <p class="muted">Choose an answer and celebrate when you get it right. Youโ€™re doing great! ๐ŸŽ‰</p>

          <div class="quiz-question">
            <h3>1) What does <strong>gh</strong> represent?</h3>
            <input type="radio" name="q1" id="q1a">
            <label class="option" for="q1a">The GitHub CLI tool</label>

            <input type="radio" name="q1" id="q1b">
            <label class="option" for="q1b">A web browser</label>

            <input type="radio" name="q1" id="q1c">
            <label class="option" for="q1c">A Windows service</label>

            <div class="feedback correct f1a">Correct! <strong>gh</strong> is the GitHub CLI command.</div>
            <div class="feedback wrong f1b">Not quite. A browser may help with sign-in, but <strong>gh</strong> is the CLI tool itself.</div>
            <div class="feedback wrong f1c">Nope. It is not a background Windows service.</div>
          </div>

          <div class="quiz-question">
            <h3>2) What is the main purpose of <strong>gh auth login</strong>?</h3>
            <input type="radio" name="q2" id="q2a">
            <label class="option" for="q2a">To delete a GitHub account</label>

            <input type="radio" name="q2" id="q2b">
            <label class="option" for="q2b">To sign in and authenticate GitHub CLI</label>

            <input type="radio" name="q2" id="q2c">
            <label class="option" for="q2c">To install Git</label>

            <div class="feedback wrong f2a">Definitely not. This command is for access, not deletion.</div>
            <div class="feedback correct f2b">Exactly! It starts the login and authentication process.</div>
            <div class="feedback wrong f2c">Nice guess, but Git installation is a separate task.</div>
          </div>

          <div class="quiz-question">
            <h3>3) What usually happens after running this command?</h3>
            <input type="radio" name="q3" id="q3a">
            <label class="option" for="q3a">Your computer shuts down</label>

            <input type="radio" name="q3" id="q3b">
            <label class="option" for="q3b">GitHub CLI guides you through login choices</label>

            <input type="radio" name="q3" id="q3c">
            <label class="option" for="q3c">It instantly creates a repository</label>

            <div class="feedback wrong f3a">That would be a very dramatic login flow. Not correct.</div>
            <div class="feedback correct f3b">Perfect! GitHub CLI typically walks you through authentication options.</div>
            <div class="feedback wrong f3c">Nope. Authentication comes first; repo creation is a different command.</div>
          </div>
        </section>
      </main>

      <aside class="stack">
        <section class="card">
          <h2>๐Ÿช„ Quick Story Quest</h2>
          <p class="muted">
            You are the new terminal hero. Before your GitHub CLI can help with repos and pull requests, it needs to know who you are.
            Your quest: launch the login process and complete authentication like a pro. ๐Ÿ›ก๏ธ
          </p>
        </section>

        <section class="card">
          <h2>๐Ÿงญ Accordion Guide</h2>
          <details open>
            <summary>What is GitHub CLI?</summary>
            <p class="muted" style="margin-top:12px;">A command-line tool that lets you work with GitHub directly from the terminal.</p>
          </details>
          <details>
            <summary>What does authentication mean?</summary>
            <p class="muted" style="margin-top:12px;">It means proving your identity so a tool can access your GitHub account in an approved way.</p>
          </details>
          <details>
            <summary>Why log in from the terminal?</summary>
            <p class="muted" style="margin-top:12px;">Because it helps connect GitHub CLI to your account, making terminal-based GitHub tasks easier.</p>
          </details>
        </section>

        <section class="card" id="summary">
          <h2>๐Ÿ“Œ Summary Card</h2>
          <p class="muted">Your quick-reference cheat sheet for this command.</p>
          <div class="summary-grid">
            <div class="mini-card">
              <h3>Command</h3>
              <p class="muted">gh auth login</p>
            </div>
            <div class="mini-card">
              <h3>Purpose</h3>
              <p class="muted">Starts the GitHub CLI login and authentication process.</p>
            </div>
            <div class="mini-card">
              <h3>Best For</h3>
              <p class="muted">Connecting GitHub CLI to your account before using account-based features.</p>
            </div>
            <div class="mini-card">
              <h3>Remember</h3>
              <p class="muted">It starts a guided sign-in process; it does not create repos or install software.</p>
            </div>
          </div>
        </section>

        <section class="card">
          <h2>๐ŸŽ–๏ธ Achievement Board</h2>
          <ul class="list">
            <li>๐Ÿฅ‰ <strong>Explorer:</strong> You learned what the command means.</li>
            <li>๐Ÿฅˆ <strong>Authenticator:</strong> You know why GitHub CLI login matters.</li>
            <li>๐Ÿฅ‡ <strong>Terminal Hero:</strong> You can explain how <strong>gh auth login</strong> works.</li>
          </ul>
        </section>
      </aside>
    </div>

    <footer class="footer">
      Made with curiosity, gradients, and beginner-friendly explanations ๐Ÿ’œ<br>
      generated by AI Prompt Dictionary
    </footer>
  </div>
</body>
</html>
Live Preview