.vt-auth {
  --auth-page: #f2f4f9;
  --auth-surface: #ffffff;
  --auth-raised: #f5f7fb;
  --auth-field: #ffffff;
  --auth-line: #e2e6ef;
  --auth-line-strong: #cdd3e1;
  --auth-text: #141a2e;
  --auth-muted: #525b78;
  --auth-faint: #5f6886;
  --auth-placeholder: #8a93b0;
  --auth-accent: var(--vt-a-700);
  --auth-accent-bg: var(--vt-a-soft-light);
  --auth-btn: var(--vt-a-700);
  --auth-btn-hover: var(--vt-a-600);
  --auth-ok: #12a150;
  --auth-ok-bg: rgba(18, 161, 80, .12);
  --auth-danger: #b42318;
  --auth-warn: #8a5300;
  --auth-warn-bg: #fdf3de;
  --auth-warn-line: rgba(138, 83, 0, .28);
  --auth-avatar-bg: #e6e8ff;
  --auth-avatar-text: #3730a3;
  --auth-shadow: 0 24px 60px rgba(20, 26, 46, .14), 0 2px 8px rgba(20, 26, 46, .06);

  min-height: 100vh;
  box-sizing: border-box;
  padding: 56px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--auth-page);
  color: var(--auth-text);
}
[data-bs-theme="dark"] .vt-auth {
  --auth-page: #0b0f1c;
  --auth-surface: #141a2e;
  --auth-raised: #1a2138;
  --auth-field: #0f1424;
  --auth-line: #262e4a;
  --auth-line-strong: #3a4466;
  --auth-text: #eceff8;
  --auth-muted: #a6aec8;
  --auth-faint: #8a93b0;
  --auth-placeholder: #7c86a6;
  --auth-accent: var(--vt-a-text-dark);
  --auth-accent-bg: rgba(129, 140, 248, .14);
  --auth-btn: var(--vt-a-500);
  --auth-btn-hover: #6b6ff5;
  --auth-ok: #34d399;
  --auth-ok-bg: rgba(52, 211, 153, .12);
  --auth-danger: #ff9393;
  --auth-warn: #fcd47a;
  --auth-warn-bg: rgba(251, 191, 36, .08);
  --auth-warn-line: rgba(251, 191, 36, .32);
  --auth-avatar-bg: #2a2f5c;
  --auth-avatar-text: #c7cbff;
  --auth-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.vt-auth a { color: var(--auth-accent); text-decoration: none; }
.vt-auth a:hover { text-decoration: underline; }

.vt-auth .vt-icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.vt-auth-main {
  width: 100%; max-width: 1040px; box-sizing: border-box;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  box-shadow: var(--auth-shadow);
  display: flex; flex-wrap: wrap; gap: 40px 72px;
}
.vt-auth-main--wide { max-width: 1080px; gap: 40px 64px; }
.vt-auth-side {
  flex: 1 1 340px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.vt-auth-form {
  flex: 1 1 400px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.vt-auth-main--wide .vt-auth-form { flex-basis: 440px; }

.vt-logo--auth { height: 40px; width: auto; }
[data-bs-theme="light"] .vt-logo--on-dark,
[data-bs-theme="dark"] .vt-logo--on-light { display: none; }

.vt-auth-h1 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1;
  font-weight: 600; letter-spacing: -.02em;
}
.vt-auth-h1--step { margin-top: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; }
.vt-auth-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--auth-muted); }
.vt-auth-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--auth-muted); }
.vt-auth-text strong { color: var(--auth-text); font-weight: 600; }

.vt-auth-assure {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.55; color: var(--auth-muted);
}
.vt-auth-assure strong { color: var(--auth-text); font-weight: 600; }
.vt-auth-badge {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--auth-ok-bg); color: var(--auth-ok);
}
.vt-auth-badge .vt-icon { width: 18px; height: 18px; }

.vt-auth-accounts {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--auth-raised); border: 1px solid var(--auth-line);
  font-size: 14px; line-height: 1.5; color: var(--auth-muted);
}
.vt-auth-accounts-stack { display: flex; flex: none; }
.vt-auth-accounts-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--auth-raised); box-sizing: border-box;
  display: grid; place-items: center;
  background: var(--auth-avatar-bg); color: var(--auth-avatar-text);
}
.vt-auth-accounts-dot + .vt-auth-accounts-dot { margin-left: -8px; }
.vt-auth-accounts-dot .vt-icon { width: 15px; height: 15px; }

.vt-auth-field-group { display: flex; flex-direction: column; gap: 8px; }
.vt-auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vt-auth-label { font-size: 14px; font-weight: 600; margin: 0; }
.vt-auth-hint { font-size: 13px; color: var(--auth-faint); }
.vt-auth-field {
  width: 100%; height: 54px; box-sizing: border-box;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--auth-line-strong);
  background: var(--auth-field); color: var(--auth-text);
  font: inherit; font-size: 16px;
}
.vt-auth-field::placeholder { color: var(--auth-placeholder); }
.vt-auth-field:focus { outline: none; box-shadow: none; border-color: var(--auth-accent); }

.vt-auth-field:-webkit-autofill,
.vt-auth-field:-webkit-autofill:hover,
.vt-auth-field:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--auth-field) inset;
  box-shadow: 0 0 0 1000px var(--auth-field) inset;
  -webkit-text-fill-color: var(--auth-text);
  caret-color: var(--auth-text);
  transition: background-color 600000s 0s;
}
.vt-auth-field--code {
  text-align: center; letter-spacing: .12em; text-transform: uppercase;
  font-family: var(--bs-font-monospace); font-size: 22px; font-weight: 600;
}
.vt-auth-pw { position: relative; }
.vt-auth-pw .vt-auth-field { padding-right: 92px; }
.vt-auth-pw-toggle {
  position: absolute; right: 6px; top: 6px; height: 42px;
  padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--auth-muted);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.vt-auth-pw-toggle:hover { background: var(--auth-raised); }
.vt-auth-link {
  padding: 0; border: 0; background: none;
  color: var(--auth-accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.vt-auth-link:hover { text-decoration: underline; }
.vt-auth-link--lg { font-size: 15px; padding: 12px 4px; }

.vt-auth-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px;
  background: var(--auth-raised); border: 1px solid var(--auth-line);
  font-size: 14px; line-height: 1.55; color: var(--auth-muted);
}
.vt-auth-note .vt-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--auth-accent); }

.vt-auth .alert { border-radius: 14px; margin: 0; }

.vt-auth .alert-danger { --bs-alert-bg: var(--vt-danger-soft); --bs-alert-border-color: var(--vt-danger-border); --bs-alert-color: var(--vt-danger-text); --bs-alert-link-color: var(--vt-danger-text); }

.vt-auth-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.vt-auth-actions--split { justify-content: space-between; padding-top: 6px; }
.vt-auth-btn {
  height: 54px; padding: 0 36px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px;
  background: var(--auth-btn); color: #ffffff;
  font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.vt-auth-btn:hover:not(:disabled) { background: var(--auth-btn-hover); }
.vt-auth-btn:disabled { opacity: .45; cursor: not-allowed; }
.vt-auth-btn--block { width: 100%; }
.vt-auth-btn--tall { height: 56px; }
.vt-auth-opt {
  height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; border: 1px solid var(--auth-line-strong);
  background: transparent; color: var(--auth-text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.vt-auth-opt:hover { background: var(--auth-raised); }
.vt-auth-opt .vt-icon, .vt-auth-opt svg { width: 17px; height: 17px; }
.vt-auth-opt--danger { height: 52px; border-radius: 14px; color: var(--auth-danger); }

.vt-auth-digits { margin: 0; padding: 0; border: 0; min-width: 0; }
.vt-auth-digits-row { display: flex; align-items: center; gap: 10px; }
.vt-auth-digit {
  flex: 1 1 0; min-width: 0; height: 68px; box-sizing: border-box;
  border-radius: 14px; border: 1px solid var(--auth-line-strong);
  background: var(--auth-field); color: var(--auth-text);
  text-align: center; font-family: var(--bs-font-monospace); font-size: 28px; font-weight: 600;
}
.vt-auth-digits--sm .vt-auth-digit { height: 64px; font-size: 26px; }
.vt-auth-digit::placeholder { color: var(--auth-line-strong); }
.vt-auth-digit:focus { outline: none; box-shadow: none; border-color: var(--auth-accent); }
.vt-auth-digit-gap { flex: none; width: 12px; height: 2px; border-radius: 1px; background: var(--auth-line-strong); }
.vt-auth-legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; float: none; width: auto; }

.vt-auth-headline { display: flex; align-items: center; gap: 14px; }
.vt-auth-headline-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--auth-accent-bg); color: var(--auth-accent);
}
.vt-auth-headline-icon .vt-icon, .vt-auth-headline-icon svg { width: 22px; height: 22px; }
.vt-auth-headline-title { display: block; font-size: 19px; font-weight: 700; }
.vt-auth-headline-sub { display: block; font-size: 14px; color: var(--auth-muted); }
.vt-auth-chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  height: 44px; padding: 0 14px 0 5px; border-radius: 22px;
  border: 1px solid var(--auth-line-strong); background: transparent;
  color: var(--auth-text); font: inherit; cursor: pointer;
}
.vt-auth-chip:hover { background: var(--auth-raised); }
.vt-auth-chip .vt-icon { width: 16px; height: 16px; color: var(--auth-muted); }
.vt-auth-chip-name { font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-auth-chip-company { font-size: 13px; color: var(--auth-faint); white-space: nowrap; }
.vt-auth-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--auth-avatar-bg); color: var(--auth-avatar-text);
  font-size: 12px; font-weight: 700;
}

.vt-auth-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.vt-auth-progress-step { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-faint); }
.vt-auth-progress-step.is-current { color: var(--auth-accent); }
.vt-auth-progress-step.is-done { color: var(--auth-ok); }
.vt-auth-progress-dot {
  width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  border: 1.5px solid var(--auth-line-strong);
}
.is-current .vt-auth-progress-dot { border: 0; background: var(--auth-btn); color: #ffffff; }
.is-done .vt-auth-progress-dot { border: 0; background: var(--auth-ok-bg); }
.is-done .vt-auth-progress-dot svg { width: 13px; height: 13px; }
.vt-auth-progress-line { width: 32px; height: 2px; border-radius: 1px; background: var(--auth-line-strong); }
.vt-auth-progress-line.is-done { background: var(--auth-ok); opacity: .5; }

.vt-auth-steps { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.vt-auth-steps li { display: flex; gap: 14px; }
.vt-auth-step-no {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--auth-raised); border: 1px solid var(--auth-line);
  font-size: 13px; font-weight: 700; color: var(--auth-accent);
}
.vt-auth-step-title { display: block; font-size: 15px; font-weight: 600; }
.vt-auth-step-text { display: block; font-size: 14px; line-height: 1.5; color: var(--auth-muted); }

.vt-auth-qr-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  padding: 20px; border-radius: 20px;
  background: var(--auth-raised); border: 1px solid var(--auth-line);
}
.vt-auth-qr {
  flex: none; width: 196px; height: 196px; box-sizing: border-box;
  padding: 16px; border-radius: 16px; background: #ffffff;
}
.vt-auth-qr img { width: 164px; height: 164px; display: block; }
.vt-auth-manual { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vt-auth-manual-title { font-size: 15px; font-weight: 600; }
.vt-auth-manual-text { font-size: 13.5px; line-height: 1.55; color: var(--auth-muted); }
.vt-auth-secret {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 12px; border-radius: 12px;
  background: var(--auth-field); border: 1px solid var(--auth-line);
}
.vt-auth-secret code {
  flex: 1; min-width: 0; color: var(--auth-text);
  font-family: var(--bs-font-monospace); font-size: 13.5px; line-height: 1.5; word-break: break-all;
}
.vt-auth-icon-btn {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--auth-muted); cursor: pointer;
}
.vt-auth-icon-btn:hover { background: var(--auth-raised); }
.vt-auth-icon-btn .vt-icon { width: 18px; height: 18px; }

.vt-auth-warn {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--auth-warn-bg); border: 1px solid var(--auth-warn-line);
  font-size: 14.5px; line-height: 1.55; color: var(--auth-warn);
}
.vt-auth-warn .vt-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.vt-auth-warn strong { font-weight: 700; }
.vt-auth-where { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.vt-auth-where-title { font-size: 14px; font-weight: 600; }
.vt-auth-codes { border-radius: 20px; background: var(--auth-field); border: 1px solid var(--auth-line); overflow: hidden; }
.vt-auth-codes-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--auth-line);
}
.vt-auth-codes-count { font-size: 14px; font-weight: 600; }
.vt-auth-codes-owner { font-size: 13px; color: var(--auth-faint); }
.vt-auth-codes ol {
  margin: 0; padding: 18px 20px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px;
}
.vt-auth-codes li { display: flex; align-items: baseline; gap: 12px; }
.vt-auth-code-no { font-family: var(--bs-font-monospace); font-size: 12px; color: var(--auth-faint); }
.vt-auth-code { font-family: var(--bs-font-monospace); font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--auth-text); white-space: nowrap; }
.vt-auth-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vt-auth-check { display: flex; align-items: center; gap: 12px; padding: 12px 4px; margin: 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.vt-auth-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--auth-btn); cursor: pointer; }
@media (max-width: 420px) {
  .vt-auth-codes ol { grid-template-columns: minmax(0, 1fr); }
}

.vt-auth-who {
  align-self: stretch;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 20px;
  background: var(--auth-raised); border: 1px solid var(--auth-line);
}
.vt-auth-who-ring { position: relative; flex: none; display: inline-flex; padding: 3px; border-radius: 50%; border: 2px solid var(--auth-accent); }
.vt-auth-who-ring .vt-auth-avatar { width: 52px; height: 52px; font-size: 18px; }
.vt-auth-who-lock {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--auth-surface); border: 2px solid var(--auth-raised); color: var(--auth-muted);
}
.vt-auth-who-lock svg { width: 12px; height: 12px; }
.vt-auth-who-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vt-auth-who-name { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.vt-auth-who-sub { font-size: 14px; color: var(--auth-muted); overflow-wrap: anywhere; }
.vt-auth-who-time { font-size: 13px; color: var(--auth-faint); }
.vt-auth-divider { display: flex; align-items: center; gap: 12px; padding-top: 6px; color: var(--auth-faint); font-size: 13px; }
.vt-auth-divider::before, .vt-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }

.vt-auth-card {
  width: 100%; max-width: 25.5rem;
  background: var(--auth-surface);
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  box-shadow: var(--auth-shadow);
  padding: 1.9rem 1.75rem;
}
.vt-auth-brand { display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.vt-auth-title { margin: 0 0 .2rem; text-align: center; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }

.vt-auth-foot {
  width: 100%; max-width: 1040px; box-sizing: border-box;
  margin-top: 14px; padding: 0 8px;
  display: flex; justify-content: flex-end;
  font-size: 13.5px;
}
.vt-auth-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.vt-auth .vt-auth-foot a { color: var(--auth-muted); }
.vt-auth--backup .vt-auth-foot { max-width: 1080px; }

.vt-auth--renew {
  position: fixed; inset: 0; z-index: 1085;
  min-height: 0; overflow-y: auto; justify-content: flex-start;
}
.vt-auth--renew > .vt-auth-main { margin: auto 0; flex: none; }

@media print {
  .vt-auth--backup { background: #ffffff; color: #000000; padding: 0; min-height: 0; }
  .vt-auth--backup .vt-auth-main { box-shadow: none; border: 0; padding: 0; background: #ffffff; }
  .vt-auth--backup .vt-auth-side,
  .vt-auth--backup .vt-auth-screen-only { display: none !important; }
  .vt-auth--backup .vt-auth-codes { border-color: #000000; background: #ffffff; }
  .vt-auth--backup .vt-auth-code,
  .vt-auth--backup .vt-auth-codes-count { color: #000000; }
  
  body:has(.vt-auth--renew) * { visibility: hidden; }
  .vt-auth--renew, .vt-auth--renew * { visibility: visible; }
  .vt-auth--renew { position: absolute; inset: 0 auto auto 0; overflow: visible; }
}