.vector-auth[hidden] { display: none; }
.vector-auth {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: rgba(10, 8, 20, .72);
  backdrop-filter: blur(8px);
}
.vector-auth__card {
  box-sizing: border-box;
  width: min(100%, 440px);
  padding: 24px;
  border: 1px solid var(--surface-border, rgba(140, 160, 190, .35));
  border-radius: 22px;
  background: var(--vp-surface, #242629);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.vector-auth__form { display: grid; gap: 14px; margin-top: 16px; }
.vector-auth__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 16px 0; }
.vector-auth__card > .btn { width: 100%; }
.vector-auth__card .vector-auth__error { color: #ffaba9; }
:root[data-theme="light"] .vector-auth__card .vector-auth__error { color: #b32627; }
.vector-auth__form input[aria-invalid="true"] { border-color: #e2464a; }
.vector-auth__open { white-space: nowrap; }
.vector-auth__yandex-login { position: relative; display: grid; justify-items: center; gap: 4px; }
.vector-auth__yandex-login[hidden] { display: none; }
.vector-auth__yandex-suggest {
  position: absolute;
  width: min(100%, 228px);
  height: 44px;
  visibility: hidden;
}
.vector-auth__yandex-login--ready .vector-auth__yandex-suggest { position: relative; visibility: visible; }
.vector-auth__yandex-suggest iframe { inset: 0; max-width: 100%; border: 0; }
.vector-auth__yandex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.vector-auth__yandex img { display: block; width: 228px; max-width: 100%; height: auto; }
.vector-auth__yandex-login--ready .vector-auth__yandex img { display: none; }
.vector-auth__yandex-login--ready .vector-auth__yandex { font-size: .8125rem; text-decoration: underline; text-underline-offset: .15em; }
.vector-auth__yandex:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vector-auth__yandex:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) {
  .vector-auth { align-items: end; padding: 10px; }
  .vector-auth__card { padding: 20px 16px; border-radius: 20px 20px 14px 14px; }
}


.vector-auth__form:empty { display: none; }
.vector-auth__links { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.vector-auth__card button { font-family: inherit; }
.vector-auth__links > button, .vector-auth__links > a { min-height: 44px; margin: 0; }
.vector-auth__other-methods > summary {
  padding: 11px 6px;
  min-height: 44px;
  box-sizing: border-box;
  text-align: center;
  font: inherit;
  cursor: pointer;
}
.vector-auth__other-methods > summary:focus-visible,
.vector-auth__telegram-open:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.vector-auth__other-methods > button { width: 100%; min-height: 44px; margin: 6px 0 0; }
.vector-auth__form input { font: inherit; }

.vector-auth__method-button { display: flex; align-items: center; gap: 12px; }
.vector-auth__methods { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.vector-auth__methods li {
  border-bottom: 1px solid var(--vp-divider);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 12px;
  padding: 10px 0;
}
.vector-auth__methods li > button { grid-column: 2; justify-self: start; min-height: 44px; margin: 0; }
.vector-auth__method-caption { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vector-auth__method-error { grid-column: 2; margin: 0; font-size: .875rem; line-height: 1.4; }
.vector-auth__method-status, .vector-auth__connected { font-size: .875rem; color: var(--vp-muted); }
.vector-auth__connected { color: var(--vp-success); }
.vector-auth__icon {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  color: var(--vp-text); background: var(--vp-raised);
}
.vector-auth__icon svg {
  display: block; width: 19px; height: 19px;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.vector-auth__icon[data-method="yandex"] { color: #fff; background: #e53618; font-weight: 750; }
.vector-auth__icon[data-method="telegram"] { color: #fff; background: #176f9d; }
