  /* UI Pass 5 (S221): standalone signup page reskinned onto the app's CLEAN WHITE chrome
     (S217). This page does not load admin-gl.css, so the app tokens it needs are declared
     here to the SAME values as admin-gl.css :root. Semantic colors (Google logo, status
     reds/greens/ambers, brand blue) are intentionally left as literals. */
  :root {
    --brand:          #1B78FF;
    --brand-dk:       #1258CC;
    --page-bg:        #F1F5F9;
    --card-bg:        #FFFFFF;
    --card-border:    #E2E8F0;
    --sidebar-border: #E6EBF2;
    --input-border:   #CBD5E1;
    --text-primary:   #0F172A;
    --text-secondary: #64748B;
    /* Readable de-emphasized tier - AA on white (4.76:1). Faint value moved to --text-placeholder. */
    --text-tertiary:  #64748B;
    /* Intentionally-faint tier: placeholder/decorative use ONLY (ghost input text, hint labels). */
    --text-placeholder: #94A3B8;
    --chrome-fg:      #475569;
    --chrome-hover-bg:#F1F5F9;
    --chrome-active-bg:#EAF2FF;
  }

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

  body {
    font-family: 'Inter', sans-serif;
    background: var(--page-bg);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
  }

  .card {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 8px 24px rgba(15,23,42,0.10);
    margin: auto;
  }

  .card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--sidebar-border);
    padding: 28px 32px;
    text-align: center;
  }

  .brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    letter-spacing: 3px;
    color: #1B78FF;
    line-height: 1;
  }

  .brand-sub {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .welcome {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  .welcome strong { color: #1B78FF; }

  .card-body { padding: 28px 28px 32px; }

  .form-group { margin-bottom: 16px; }

  label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--chrome-fg);
    margin-bottom: 5px;
  }

  input, select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s;
    background: var(--card-bg);
  }

  input:focus, select:focus { border-color: var(--brand); }
  input::placeholder { color: var(--text-placeholder); }

  /* ── Path toggle tabs ── */
  .path-tabs {
    display: flex;
    border: 1.5px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
  }
  .path-tab {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--chrome-hover-bg);
    transition: background 0.15s, color 0.15s;
    border: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
  }
  .path-tab.active {
    background: var(--brand);
    color: #fff;
  }

  /* ── Submit buttons ── */
  .btn {
    width: 100%;
    padding: 13px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-top: 6px;
    transition: opacity 0.15s;
  }
  .btn:hover { opacity: 0.9; }
  .btn:disabled { opacity: 0.5; cursor: not-allowed; }
  /* S420 F15: the "join this business" screen */
  .btn-secondary { background: transparent; color: var(--brand); border: 1.5px solid var(--card-border); margin-top: 10px; }
  .join-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 14px; }
  .join-text strong { color: var(--text-primary); }

  /* ── Error / info ── */
  .error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
  }

  .footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 18px;
    line-height: 1.6;
  }
  .code-note { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-top: 6px; }
  .footer-note a { color: var(--brand); font-weight: 600; text-decoration: none; }

  .btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    min-height: 44px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
  }

  /* ── Screen 1: faded form backdrop behind the Google sign-in gateway (S250) ── */
  .stage { position: relative; overflow: hidden; }
  .stage-backdrop {
    padding: 28px 28px 32px;
    opacity: 0.4;
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
  }
  .stage-scrim {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
  }
  .signin-panel {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15,23,42,0.16), 0 1px 3px rgba(0,0,0,0.08);
    padding: 22px 24px 18px;
    text-align: center;
  }
  .signin-panel h2 { color: var(--text-primary); font-size: 20px; margin: 14px 0 8px; }
  .signin-panel p  { color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

  .divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
  }

  @media (max-width: 480px) {
    body { padding: 16px 12px; }
    .card-body { padding: 20px 20px 28px; }
    .card-header { padding: 24px 20px; }
  }
