/* The sign-in popup (auth.js), used by the app and the landing page, so it carries its own colours and sizes. */
.au-modal { --au-card: #161617; --au-field: #222224; --au-line: rgba(237,237,237,.14); --au-text: #ededed; --au-text2: #a1a1a6; --au-mute: #8e8e94; --au-green: #07b672; --au-green-text: #2ccf8b; --au-red: #e5484d;
  position: fixed; inset: 0; z-index: 60; background: rgba(5,6,9,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; overflow-y: auto; font-size: 14px; line-height: 1.45; color: var(--au-text); }
.au-modal[hidden], .au-modal [hidden] { display: none; }
.au-card { position: relative; box-sizing: border-box; width: 100%; max-width: 400px; padding: 24px; text-align: center; background: var(--au-card); border: 1px solid var(--au-line); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.au-card h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 8px 0; }
.au-x { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; padding: 0; border-radius: 6px; border: 1px solid var(--au-line); background: var(--au-field); color: var(--au-mute); cursor: pointer; display: grid; place-items: center; }
.au-x:hover { color: var(--au-text); border-color: var(--au-mute); }
.au-x svg { width: 14px; height: 14px; }
.au-logo { display: block; margin: 0 auto 8px; }
.au-hint { margin: 0; color: var(--au-mute); font-size: 12px; }
.au-setup { margin-top: 16px; font-size: 13px; color: var(--au-text2); overflow-wrap: anywhere; }
.au-buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 20px 0 8px; }
.au-slot { min-height: 44px; display: flex; justify-content: center; width: 100%; }
.au-btn { width: 300px; max-width: 100%; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--au-line); background: #202124; color: #fff; font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: border-color .15s ease-out; }
.au-btn:hover:not(:disabled) { border-color: var(--au-green); }
.au-btn:disabled { opacity: .45; cursor: not-allowed; }
.au-btn:disabled span::after { content: " · not set up"; }
.au-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.au-btn.au-dev { background: none; color: var(--au-text2); border-style: dashed; }
.au-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; text-align: left; }
.au-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--au-text2); font-weight: 500; }
.au-field input { box-sizing: border-box; width: 100%; background: var(--au-field); border: 1px solid var(--au-line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--au-text); }
.au-field input:focus { outline: none; border-color: var(--au-green); }
.au-field input[data-a=code] { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 20px; text-align: center; }
.au-field input[readonly] { color: var(--au-mute); }
.au-rules { list-style: none; margin: -4px 0 0; padding: 0; font-size: 12px; color: var(--au-mute); display: grid; gap: 2px; }
.au-rules li::before { content: '○ '; }
.au-rules li.ok { color: var(--au-green-text); }
.au-rules li.ok::before { content: '✓ '; }
.au-error { margin: 0; font-size: 13px; border-left: 3px solid var(--au-red); padding: 6px 10px; background: rgba(229,72,77,.1); border-radius: 4px; }
.au-submit { border: 0; border-radius: 12px; padding: 12px 16px; background: var(--au-green); color: #0f0f10; font: inherit; font-weight: 600; cursor: pointer; }
.au-submit:hover { filter: brightness(1.08); }
.au-submit:disabled { opacity: .35; cursor: not-allowed; }
.au-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.au-links button { background: none; border: 0; padding: 0; color: var(--au-green-text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font: inherit; font-size: 13px; }
.au-fine { color: var(--au-mute); font-size: 11px; margin: 16px 0 0; }
.au-fine a { color: var(--au-mute); }
.au-btn:focus-visible, .au-x:focus-visible, .au-submit:focus-visible, .au-links button:focus-visible, .au-fine a:focus-visible { outline: 2px solid var(--au-green); outline-offset: 2px; }
@media (max-width: 760px) {
  .au-modal { padding: 0; place-items: end stretch; }
  .au-card { max-width: none; border-radius: 16px 16px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 92svh; overflow-y: auto; }
  .au-x { width: 36px; height: 36px; }
  .au-field input { font-size: 16px; }   /* 16px stops iOS zooming into the field */
}
