@font-face { font-family: vhInter; src: url(signin/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: vhInter; src: url(signin/inter-cyrillic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #f5f0e7; --card: #fbf8f2; --field: #fffdf9; --ink: #20242c; --ink2: #5b606a; --ink3: #8a8f99;
  --line: rgba(32, 36, 44, .13); --acc: #0000ff; --acc-fg: #fff; --soft: rgba(0, 0, 255, .08); --risk: #c8361f; --ok: #1f7a55;
  --r: 14px; --btn-r: 10px;
  --shadow: 0 24px 60px rgba(32, 36, 44, .14);
  --glow: radial-gradient(38% 48% at 88% 12%, rgba(243, 213, 128, .45), transparent 70%), radial-gradient(34% 38% at 6% 70%, rgba(238, 143, 118, .2), transparent 70%), radial-gradient(55% 55% at 45% 40%, rgba(0, 0, 255, .07), transparent 70%);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15161b; --card: #1d1f26; --field: #23262e; --ink: #ecebe6; --ink2: #a9adb7; --ink3: #767b86;
  --line: rgba(236, 235, 230, .13); --acc: #6d6dff; --acc-fg: #fff; --soft: rgba(109, 109, 255, .16); --risk: #ff7a62; --ok: #4fc493;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --glow: radial-gradient(38% 48% at 88% 12%, rgba(243, 213, 128, .09), transparent 70%), radial-gradient(34% 38% at 6% 70%, rgba(238, 143, 118, .07), transparent 70%), radial-gradient(55% 55% at 45% 40%, rgba(109, 109, 255, .12), transparent 70%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--glow), var(--bg); background-attachment: fixed; color: var(--ink);
  font: 400 15px/1.5 vhInter, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 0; }

.vh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; }
.vh-logo { display: block; height: 30px; }
.vh-logo img { height: 100%; width: auto; display: block; }
.vh-logo .on-dark { display: none; }
:root[data-theme="dark"] .vh-logo .on-light { display: none; }
:root[data-theme="dark"] .vh-logo .on-dark { display: block; }
.vh-acts { display: flex; align-items: center; gap: 4px; color: var(--ink2); }
.vh-theme { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.vh-theme:hover { background: var(--soft); color: var(--ink); }
.vh-theme svg { width: 18px; height: 18px; }
.vh-theme .moon { display: none; }
:root[data-theme="dark"] .vh-theme .sun { display: none; }
:root[data-theme="dark"] .vh-theme .moon { display: block; }

.np-language { position: relative; flex-shrink: 0; font-size: 13px; font-weight: 600; color: inherit; }
.np-language summary { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 10px; border-radius: 8px; list-style: none; white-space: nowrap; }
.np-language summary:hover { background: var(--soft); color: var(--ink); }
.np-language summary::-webkit-details-marker { display: none; }
.np-language svg { width: 16px; height: 16px; }
.np-language nav { position: absolute; right: 0; top: calc(100% + 4px); z-index: 100; min-width: 160px; padding: 6px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.np-language nav a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; color: inherit; white-space: nowrap; text-decoration: none; border-radius: 6px; font-weight: 500; }
.np-language nav a:hover { background: var(--soft); }
.np-language nav a[aria-current]::after { content: '✓'; color: var(--acc); }
.np-language-code { display: none; }

.vh-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 12px 16px 40px; }
.vh-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 36px 36px 30px; }
.vh-card h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 720; letter-spacing: -.03em; text-wrap: balance; }
.vh-sub { margin: 0 0 24px; color: var(--ink2); font-size: 14.5px; text-wrap: pretty; }
.vh-sub b { color: var(--ink); font-weight: 600; }
.vh-sub .em { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

.vh-field { margin: 0 0 14px; }
.vh-field label, .vh-lbl { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.vh-field .opt { font-weight: 400; color: var(--ink3); }
.vh-in { width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--btn-r); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.vh-in { height: 76px; padding: 10px 14px; resize: none; line-height: 1.45; }
.vh-in::placeholder { color: var(--ink3); }
.vh-in:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--soft); }
.vh-in.bad, .vh-code.bad input { border-color: var(--risk); }
.vh-pw { position: relative; }
.vh-pw .vh-in { padding-right: 84px; }
.vh-pw button { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.vh-pw button:hover { background: var(--soft); color: var(--ink); }
.vh-err { margin: -4px 0 14px; color: var(--risk); font-size: 13.5px; }
.vh-note { margin: 6px 0 0; color: var(--ink3); font-size: 13px; }

.vh-btn { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font: inherit; font-size: 15px; font-weight: 650; color: var(--acc-fg); background: var(--acc); border: 0; border-radius: var(--btn-r); cursor: pointer; transition: filter .12s, transform .06s; }
.vh-btn:hover { filter: brightness(1.12); }
.vh-btn:active { transform: translateY(1px); }
.vh-btn[disabled] { opacity: .45; cursor: default; filter: none; transform: none; }
.vh-btn.busy { pointer-events: none; }
.vh-btn.busy::after { content: ''; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: vh-spin .7s linear infinite; }
@keyframes vh-spin { to { transform: rotate(1turn); } }

.vh-who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 8px 8px 10px; background: var(--field); border: 1px solid var(--line); border-radius: var(--btn-r); font-size: 14px; }
.vh-ava { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--acc); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.vh-who > span:not(.vh-ava) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-who a { flex: none; font-size: 13px; font-weight: 600; padding: 4px 6px; }

.vh-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0 0 14px; }
.vh-code input { width: 100%; height: 54px; padding: 0; text-align: center; font: inherit; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--btn-r); outline: none; transition: border-color .12s, box-shadow .12s; }
.vh-code input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--soft); }
.vh-code input:nth-child(3) { margin-right: 8px; }
.vh-code input:nth-child(4) { margin-left: 8px; }
.vh-code.shake { animation: vh-shake .32s; }
@keyframes vh-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.vh-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.vh-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); }
.vh-check small { display: block; color: var(--ink3); font-size: 13px; font-weight: 400; margin-top: 2px; }
.vh-reveal[hidden] { display: none; }

.vh-badge { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 0 18px; border-radius: 12px; background: var(--soft); color: var(--acc); }
.vh-badge svg { width: 22px; height: 22px; }
.vh-badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.vh-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 18px 0 0; font-size: 13.5px; }
.vh-links.center { justify-content: center; }
.vh-links .muted { color: var(--ink3); }
.vh-sep { height: 1px; background: var(--line); margin: 22px -36px 18px; }
.vh-invite { margin: 0; color: var(--ink2); font-size: 13.5px; text-align: center; }

.vh-foot { padding: 0 16px 22px; text-align: center; font-size: 12.5px; color: var(--ink3); }
.vh-foot a { color: inherit; }

.vh-dots { display: flex; justify-content: center; gap: 14px; margin: 4px 0 20px; }
.vh-dots span { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--ink3); transition: background .1s, border-color .1s; }
.vh-dots span.on { background: var(--acc); border-color: var(--acc); }
.vh-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 260px; margin: 0 auto; }
.vh-pad button { height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font: inherit; font-size: 20px; font-weight: 550; cursor: pointer; }
.vh-pad button:hover { background: var(--soft); }
.vh-pad button.zero { grid-column: 2; }

.vh-mail { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.vh-mail-head { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.vh-mail-head b { color: var(--ink); font-weight: 600; }
.vh-mail-head .subj { grid-column: 1 / -1; margin-top: 6px; font-size: 16px; color: var(--ink); font-weight: 650; }
.vh-mail-body { padding: 34px 40px 30px; background: #fff; color: #20242c; }
.vh-mail-body img { height: 26px; display: block; margin: 0 0 28px; }
.vh-mail-body h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.02em; }
.vh-mail-code { margin: 0 0 22px; padding: 16px; text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .28em; font-variant-numeric: tabular-nums; background: #f5f0e7; border-radius: 10px; }
.vh-mail-btn { display: block; text-align: center; padding: 13px; background: #0000ff; color: #fff !important; border-radius: 10px; font-weight: 650; text-decoration: none !important; }
.vh-mail-body p { margin: 22px 0 0; color: #5b606a; font-size: 13.5px; }

@media (max-width: 640px) {
  .vh-top { padding: 12px 16px; }
  .vh-logo { height: 26px; }
  .np-language-name { display: none; }
  .np-language-code { display: inline; }
  .vh-main { align-items: flex-start; padding: 8px 0 24px; }
  .vh-card, .vh-mail { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 24px 20px; }
  .vh-mail { padding: 0; }
  .vh-mail-body { padding: 26px 22px; }
  .vh-sep { margin: 22px -20px 18px; }
  .vh-code { gap: 6px; }
  .vh-code input { height: 50px; font-size: 22px; }
  .vh-code input:nth-child(3) { margin-right: 4px; }
  .vh-code input:nth-child(4) { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .vh-code.shake { animation: none; } .vh-btn.busy::after { animation-duration: 2s; } }
.vh-toast { position: fixed; left: 50%; top: 18px; z-index: 60; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.vh-toast[hidden] { display: none; }
@media (max-width: 640px) { .vh-sep { margin: 22px 0 18px; } }

.vh-code1 { width: 100%; height: 54px; text-align: center; font: inherit; font-size: 26px; font-weight: 650; letter-spacing: .4em; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: var(--btn-r); outline: none; margin: 0 0 14px; }
.vh-code1:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--soft); }
.vh-js .vh-code1 { position: absolute; opacity: 0; pointer-events: none; height: 1px; width: 1px; margin: 0; }
.vh-code { display: none; }
.vh-js .vh-code { display: grid; }
.vh-hidden { display: none; }
form.vh-inline { display: inline; margin: 0; }
.vh-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--acc); cursor: pointer; }
.vh-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.vh-banner { position: fixed; left: 0; right: 0; top: 0; }
