/** @fileoverview Центрированное окно входа через Telegram, включая ошибку и мобильную раскладку. */
.support-login-dialog {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 32px; overflow-y: auto; color: #f3f1fa; background: #181818;
  border: 1px solid #383838; border-radius: 24px; color-scheme: dark;
  font-family: var(--ui-font); font-size: 14px; line-height: 20px;
  box-shadow: 0 24px 80px #0009; text-align: center;
}
.support-login-dialog:not([open]) { display: none; }
.support-login-dialog[open] { display: grid; justify-items: stretch; }
.support-login-dialog::backdrop { background: #000b; backdrop-filter: blur(8px); }
.support-login-dialog :is(p, h2) { margin: 0; }
.support-login-dialog [hidden] { display: none !important; }
.support-login-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 8px; border: 0; border-radius: 8px;
  color: #aaa; background: transparent; cursor: pointer;
}
.support-login-close svg { width: 16px; height: 16px; }
.support-login-symbol {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px;
  color: #d5bdff; background: #272727; border: 1px solid #414141; border-radius: 16px;
}
.support-login-symbol svg { width: 32px; height: 32px; }
.support-login-dialog .support-login-eyebrow { color: #baa3e5; font-size: 12px; line-height: 16px; margin-bottom: 8px; }
.support-login-dialog h2 { font-size: 24px; line-height: 32px; font-weight: 600; text-wrap: balance; }
.support-login-dialog .support-login-description { margin-top: 12px; color: #b4b4bd; font-size: 14px; line-height: 20px; text-wrap: pretty; }
.support-login-description strong { font-weight: 600; color: #eee; }
.support-login-steps { list-style: none; padding: 16px; margin: 24px 0; display: grid; gap: 12px; text-align: left; background: #1f1f1f; border-radius: 8px; }
.support-login-steps li { display: flex; align-items: center; gap: 12px; color: #dedee3; }
.support-login-steps li span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid #444; border-radius: 50%; color: #baa3e5; font-size: 12px; }
.support-login-primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; box-sizing: border-box; padding: 8px 12px; color: #181818; background: #c7adff; border: 1px solid transparent; border-radius: 8px; font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; }
.support-login-primary svg { width: 20px; height: 20px; }
/** Подтверждение объединения использует те же размеры, что и переход в Telegram. */
.support-login-dialog .support-merge-confirm { width: 100%; margin-top: 24px; cursor: pointer; }
.support-login-dialog .support-merge-confirm:disabled { opacity: .55; cursor: wait; }
.support-login-primary span:last-child { margin-left: auto; }
.support-login-primary span:nth-child(2) { margin-right: auto; }
.support-login-status { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 24px; color: #b4b4bd; font-size: 12px; line-height: 16px; }
.support-login-status p { text-align: left; }
.support-login-status time { font-variant-numeric: tabular-nums; color: #dedee3; white-space: nowrap; }
.support-login-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #baa3e5; animation: support-login-pulse 2s cubic-bezier(0.22,1,0.36,1) infinite; }
.support-login-dialog .support-login-footnote { margin-top: 8px; color: #898993; font-size: 12px; line-height: 16px; }
.support-login-dialog[data-state="merge"] .support-login-footnote { margin-top: 16px; color: #c8c5d0; }
.support-login-cancel { margin-top: 24px; padding: 8px 12px; border: 1px solid #414141; border-radius: 8px; background: transparent; color: #b4b4bd; font-size: 14px; line-height: 20px; cursor: pointer; }
.support-login-dialog :is(a, button) { transition: opacity 300ms var(--ui-motion), transform 300ms var(--ui-motion); }
.support-login-primary:hover { background: #d5bdff; color: #181818; }
.support-login-dialog button:hover { color: #fff; background: #272727; }
.support-login-dialog .support-merge-confirm:hover:not(:disabled) { background: #d5bdff; color: #181818; }
.support-login-dialog :is(a, button):active { transform: scale(.98); }
.support-login-dialog :is(a, button):focus-visible { outline: 2px solid #d5bdff; outline-offset: 4px; }
.support-login-dialog[data-state="error"] .support-login-status { align-items: flex-start; color: #ffa7ad; margin-top: 24px; }
.support-login-dialog[data-state="error"] .support-login-dot { background: #ffa7ad; animation: none; margin-top: 4px; }
@keyframes support-login-pulse { 50% { opacity: .35; } }
/** На телефоне окно остаётся внутри экрана и сохраняет удобные зоны нажатия. */
@media (max-width: 480px) { .support-login-dialog { padding: 32px 24px 24px; } }
@media (prefers-reduced-motion: reduce) { .support-login-dialog *, .support-login-dialog::backdrop { animation: none !important; transition: none !important; } }
