/* Вход по ключу — общий вид для страницы сайта (/vhod) и окна ключа в приложении. Светлый премиум, токены Horizon. */
.vh {
  --vh-bg: #F3F3F0; --vh-card: #FFFFFF; --vh-text: #0E0E11; --vh-muted: #62626B; --vh-faint: #9A9AA2;
  --vh-line: rgba(10, 10, 12, .10); --vh-bad: #E5484D;
  --vh-grad: linear-gradient(100deg, #3D5AFE 0%, #8B6CF0 55%, #FF5A2C 100%);
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: minmax(0, 420px); justify-content: center; align-content: center; padding: 24px 16px;
  background: var(--vh-bg); color: var(--vh-text); overflow: auto;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
.vh, .vh *, .vh *::before, .vh *::after { box-sizing: border-box; }   /* страница /vhod без общих стилей приложения */
/* мягкие цветные пятна за карточкой */
.vh::before, .vh::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .55;
}
.vh::before { width: 520px; height: 520px; left: calc(50% - 470px); top: calc(50% - 360px); background: radial-gradient(circle, rgba(61, 90, 254, .45), transparent 65%); animation: vh-plyv 14s ease-in-out infinite alternate; }
.vh::after { width: 460px; height: 460px; left: calc(50% + 20px); top: calc(50% - 40px); background: radial-gradient(circle, rgba(255, 90, 44, .32), transparent 65%); animation: vh-plyv 17s ease-in-out infinite alternate-reverse; }
@keyframes vh-plyv { to { transform: translate(40px, -30px) scale(1.08); } }

.vh__c {
  position: relative; z-index: 1; width: 100%; padding: 36px 32px 28px; border-radius: 24px;
  background: color-mix(in srgb, var(--vh-card) 88%, transparent); backdrop-filter: blur(18px);
  border: 1px solid var(--vh-line);
  box-shadow: 0 1px 2px rgba(10, 10, 12, .04), 0 12px 32px -8px rgba(10, 10, 12, .14), 0 40px 80px -24px rgba(61, 90, 254, .18);
  animation: vh-vhod .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes vh-vhod { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.vh__logo { display: flex; align-items: center; gap: 10px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.vh__mark { width: 30px; height: 30px; border-radius: 9px; background: conic-gradient(from 200deg, #3D5AFE, #B4A3FF, #FF5A2C, #5FDDC8, #3D5AFE); box-shadow: 0 0 22px rgba(111, 134, 255, .5); }
.vh__h { margin: 26px 0 6px; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
.vh__p { margin: 0 0 22px; color: var(--vh-muted); font-size: 15px; line-height: 1.5; }

.vh__lab { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--vh-muted); }
.vh__pole { position: relative; display: flex; align-items: center; }
.vh__pole svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--vh-faint); pointer-events: none; }
.vh__in {
  width: 100%; height: 52px; padding: 0 48px 0 44px; border-radius: 14px; border: 1px solid var(--vh-line); background: #FAFAF8;
  font: 600 16px/1 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace; letter-spacing: .04em; color: var(--vh-text);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.vh__in::placeholder { color: var(--vh-faint); font-weight: 500; }
.vh__in:focus { border-color: #3D5AFE; background: #fff; box-shadow: 0 0 0 4px rgba(61, 90, 254, .14); }
.vh__oko { position: absolute; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--vh-faint); cursor: pointer; display: grid; place-items: center; }
.vh__oko:hover { background: rgba(10, 10, 12, .05); color: var(--vh-text); }
.vh__oko svg { position: static; width: 18px; height: 18px; }

.vh__btn {
  position: relative; width: 100%; height: 52px; margin-top: 16px; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden;
  background: var(--vh-grad); color: #fff; font: 700 16px/1 "Inter", system-ui, sans-serif; letter-spacing: -.01em;
  box-shadow: 0 10px 24px -10px rgba(61, 90, 254, .7); transition: transform .12s, box-shadow .2s, filter .2s;
}
.vh__btn:hover { filter: saturate(1.1) brightness(1.04); box-shadow: 0 14px 30px -10px rgba(61, 90, 254, .8); }
.vh__btn:active { transform: scale(.985); }
.vh__btn:disabled { cursor: progress; filter: grayscale(.2) brightness(.95); }
.vh__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); }
.vh__btn:disabled::after { animation: vh-blik 1.1s linear infinite; }
@keyframes vh-blik { to { transform: translateX(100%); } }

.vh__osh { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--vh-bad); }
.vh__c.tryas { animation: vh-tryas .38s; }
@keyframes vh-tryas { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.vh__shagi { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--vh-line); font-size: 12.5px; color: var(--vh-muted); }
.vh__shagi span { padding: 5px 10px; border-radius: 999px; background: rgba(10, 10, 12, .045); font-weight: 600; }
.vh__shagi i { font-style: normal; color: var(--vh-faint); }
.vh__pod { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--vh-faint); }

@media (max-width: 420px) { .vh__c { padding: 28px 20px 22px; border-radius: 20px; } .vh__h { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .vh::before, .vh::after, .vh__c, .vh__btn::after { animation: none !important; } }
