/* Вход клиента (auth.js): блок на шаге «Подтверждение» и своё окно входа. Только токены темы, без цветов салона. */

.au-box { margin: 18px 0 2px; }
.au-title { font-weight: 600; font-size: 16px; }
.au-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.au-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.au-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.au-btn:hover { border-color: var(--ink); }
.au-btn svg { flex: none; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.au-me {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 14px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
}
.au-me-ok { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.au-me-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.au-me-text b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-me-text span { font-size: 13px; color: var(--muted); }
.au-link { border: 0; background: none; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.au-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.field input:read-only { background: color-mix(in srgb, var(--card) 60%, var(--bg)); color: var(--ink-2); }

/* ---------- окно входа ---------- */
.au-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.au-sheet[hidden] { display: none; }
.au-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 10, .45); animation: au-fade .2s; }
.au-panel {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh; overflow: auto;
  background: var(--bg); border-radius: 20px 20px 0 0; padding: 22px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: au-up .25s cubic-bezier(.2, .8, .2, 1);
}
.au-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; color: var(--ink); }
@keyframes au-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes au-fade { from { opacity: 0; } }
.au-head { display: flex; align-items: center; gap: 10px; margin: 2px 44px 12px 0; }
.au-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.au-head svg { flex: none; width: 28px; height: 28px; }
.au-p { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.au-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.au-field { margin-top: 4px; margin-bottom: 12px; }
.au-code { letter-spacing: .5em; font-size: 22px !important; text-align: center; }
.au-err { margin: -4px 0 12px; color: var(--accent); font-size: 14px; }
.au-demo { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm, 10px); background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.au-steps { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); font-size: 15px; }
.au-steps li { margin: 4px 0; }
.btn.au-tg { background: #2aabee; border-color: #2aabee; color: #fff; }
.au-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.au-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: au-rot .8s linear infinite; }
@keyframes au-rot { to { transform: rotate(360deg); } }
.au-again { display: block; margin: 4px auto 0; }
.au-consent { padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; font-size: 14.5px; }
.au-consent p { margin: 12px 0 4px; color: var(--ink-2); }
.au-consent ul { margin: 0; padding-left: 20px; }
.au-consent-who { display: flex; align-items: center; gap: 10px; }
.au-consent-who div { display: flex; flex-direction: column; line-height: 1.25; }
.au-consent-who span:not(.au-ava) { font-size: 13px; color: var(--muted); }
.au-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 600; }

@media (min-width: 640px) {
  .au-sheet { align-items: center; }
  .au-panel { border-radius: 20px; }
}
@media (max-width: 360px) {
  .au-btn { font-size: 14px; gap: 6px; padding: 0 8px; }
}
