/* EagleTagz demo: buyer sign-in (change #22, part 1, October 2026). Script: account.js.
 * The top bar's "Sign in" (or the signed-in person's initial and the account menu), the sign-in
 * sheet (a dialog on a computer, a sheet from the bottom on a phone), and the email and code steps,
 * which the Store's checkout also uses. Same palette as the rest: page #0B1117, card #121A22, field
 * #1A2430, gold #F1C50E; the six text sizes; 44px targets. */

.etz-tb-account { flex: none; display: flex; align-items: center; }
.etz-tb-account[hidden] { display: none; }

.etz-acct-signin {
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #f1c50e;
  font: 600 16px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.etz-acct-signin:hover { background: rgba(255, 255, 255, 0.06); color: #ffd84d; }
.etz-acct-me {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: none;
  cursor: pointer;
}
.etz-acct-me:hover, .etz-acct-me[aria-expanded='true'] { background: rgba(255, 255, 255, 0.08); }
.etz-acct-avatar {
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 2px solid #f1c50e;
  border-radius: 16px;
  color: #f9fafb;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.etz-acct-avatar-lg { width: 40px; height: 40px; border-radius: 20px; font-size: 16px; flex: none; }
.etz-acct-signin:focus-visible, .etz-acct-me:focus-visible, .etz-acct-menu [role='menuitem']:focus-visible,
.etz-auth-btn:focus-visible, .etz-auth-link:focus-visible, .etz-auth-x:focus-visible {
  outline: 2px solid #f1c50e;
  outline-offset: 2px;
}

/* the account menu */
.etz-acct-menu {
  position: fixed;
  z-index: 80;
  width: 280px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  padding: 8px;
  display: flex;
  flex-direction: column;
  background: #121a22;
  border: 1px solid #2b3a4c;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #f9fafb;
}
.etz-acct-who { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid #233040; margin-bottom: 4px; }
.etz-acct-who-text { display: flex; flex-direction: column; min-width: 0; }
.etz-acct-small { font-size: 13px; color: #9ca3af; }
.etz-acct-email { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etz-acct-menu [role='menuitem'] {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #f9fafb;
  font: inherit;
  font-size: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.etz-acct-menu [role='menuitem']:hover, .etz-acct-menu [role='menuitem']:focus { background: rgba(255, 255, 255, 0.06); outline: none; }
.etz-acct-menu [role='menuitem'] i { width: 22px; text-align: center; color: #d1d5db; font-size: 17px; }
.etz-acct-menu [role='menuitem'] span { display: flex; flex-direction: column; }
.etz-acct-menu [role='menuitem'] b { font-weight: 600; }
.etz-acct-menu [role='menuitem'] small { font-size: 13px; color: #9ca3af; }
.etz-acct-sep { height: 1px; background: #233040; margin: 4px 0; }

/* the sign-in sheet */
html.etz-auth-open, html.etz-auth-open body { overflow: hidden; }
.etz-auth-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.etz-auth-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.etz-auth-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #121a22;
  border: 1px solid #2b3a4c;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: #f9fafb;
}
.etz-auth-grab { display: none; }
.etz-auth-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 22px;
  background: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
.etz-auth-x:hover { background: rgba(255, 255, 255, 0.06); color: #f9fafb; }
.etz-auth-title { margin: 4px 48px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; color: #f9fafb; }
.etz-auth-sub { margin: 0; font-size: 16px; line-height: 22px; color: #d1d5db; }
.etz-auth-sub[hidden] { display: none; }

/* phones: a sheet from the bottom (Mobbin: Airbnb, Apple sign-in sheets) */
@media (max-width: 639px) {
  .etz-auth-sheet { align-items: flex-end; padding: 0; }
  .etz-auth-panel {
    max-width: none;
    max-height: calc(100vh - 24px);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 12px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .etz-auth-grab { display: block; align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #374151; }
}

/* the email and code steps (in the sheet and on the checkout) */
.etz-auth-form { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.etz-auth-label { margin-top: 4px; font-size: 13px; font-weight: 600; color: #d1d5db; }
.etz-auth-input {
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #2b3a4c;
  border-radius: 8px;
  background: #1a2430;
  color: #f9fafb;
  font: 400 16px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.etz-auth-input::placeholder { color: #6b7280; }
.etz-auth-input:focus { outline: none; border-color: #f1c50e; box-shadow: 0 0 0 3px rgba(241, 197, 14, 0.25); }
.etz-auth-input[aria-invalid='true'] { border-color: #f87171; }
.etz-auth-code {
  height: 56px;
  padding: 0 16px;
  font: 400 22px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 12px;
}
.etz-auth-msg { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: #fca5a5; }
.etz-auth-msg[hidden] { display: none; }
.etz-auth-note { margin: 0; font-size: 13px; line-height: 18px; color: #9ca3af; }
.etz-auth-note:empty { display: none; }
.etz-auth-sent { margin: 0 0 4px; font-size: 16px; line-height: 22px; color: #d1d5db; }
.etz-auth-sent strong { color: #f9fafb; font-weight: 600; overflow-wrap: anywhere; }
.etz-auth-btn {
  height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  font: 700 17px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
}
.etz-auth-primary { background: #f1c50e; color: #111827; }
.etz-auth-primary:hover { background: #ffd84d; }
.etz-auth-btn:disabled { opacity: 0.65; cursor: progress; }
/* "Not now" under the creator name (change #22, part 2): a quiet text button, still 44 px to tap */
.etz-auth-quiet { height: 44px; margin-top: 4px; background: none; color: #d1d5db; font-weight: 600; font-size: 16px; }
.etz-auth-quiet:hover { color: #f9fafb; background: rgba(255, 255, 255, 0.06); }
.etz-auth-help { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: #9ca3af; }
.etz-auth-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f1c50e;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.etz-auth-link:hover { color: #ffd84d; }
.etz-auth-link:disabled { color: #9ca3af; cursor: progress; }
.etz-auth-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  font-size: 16px;
  text-decoration: none;
}
.etz-auth-back:hover span { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .etz-auth-panel { animation: etz-auth-in 0.18s ease-out; }
  @keyframes etz-auth-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
