/* Личный вход, вид t848 (26.10.2026, по образцу владельца): почти чёрный
   экран, синяя подсветка в верхнем левом углу (цвет дашборда,
   --series-routine #4fb3ff тёмной темы) и более глубокая синяя - едва
   заметно в нижнем правом, по центру одна небольшая карточка. Без фотографии
   и без заголовка на экране: логотип, два поля, кнопка.

   Палитра фиксированная, а не из токенов темы - по той же причине, что у
   login.css: вход виден до того, как у человека появилась тема. Из
   style.css берутся только шрифты (--font-body). */

body.login-v2 {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  color: #e8e9ec;
  font-family: var(--font-body);
  background-color: #111215;
  background-image:
    radial-gradient(ellipse 85% 65% at 6% 0%, rgba(79, 179, 255, .22), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(70, 110, 190, .08), transparent 70%);
  background-attachment: fixed;
}

.lv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lv-card {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  padding: 24px 30px 30px;
  /* no panel behind the form: logo, fields and button sit on the page (owner 27.10) */
  background: none;
  border: 0;
  box-shadow: none;
}

.lv-logo {
  display: block;
  width: 165px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Название компании - текстом страницы, а не внутри картинки: на ширине
   карточки мелкая надпись в SVG выходила мутной. */
.lv-brand {
  margin: 8px 0 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9aa4b1;
}

/* ---- поля ---- */

.lv-form { display: flex; flex-direction: column; gap: 12px; }

.lv-input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  background: #121317;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  color: #f2f3f5;
  font-size: 14px;
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lv-input::placeholder { color: #8b8f9a; }
.lv-input:hover { border-color: rgba(255, 255, 255, .2); }
.lv-input:focus {
  outline: none;
  border-color: #4c7df0;
  box-shadow: 0 0 0 3px rgba(76, 125, 240, .25);
}

/* Автозаполнение Chrome: свой жёлтый фон перекрашивается в цвет поля. */
.lv-input:-webkit-autofill,
.lv-input:-webkit-autofill:hover,
.lv-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f2f3f5;
  -webkit-box-shadow: 0 0 0 1000px #121317 inset;
  caret-color: #f2f3f5;
}

/* ---- пароль: показать/скрыть ---- */

.lv-pw { position: relative; }
.lv-pw .lv-input { padding-right: 40px; }

.lv-pw-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 0 7px 7px 0;
  color: #737782;
  cursor: pointer;
}

.lv-pw-toggle:hover { color: #e8e9ec; }
.lv-pw-toggle svg { width: 17px; height: 17px; display: block; }
.lv-pw-toggle .icon-hide { display: none; }
.lv-pw-toggle[aria-pressed="true"] .icon-show { display: none; }
.lv-pw-toggle[aria-pressed="true"] .icon-hide { display: block; }

/* ---- кнопки ---- */

.lv-submit {
  height: 42px;
  margin-top: 4px;
  background: #eceef2;
  color: #111215;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s ease;
}

.lv-submit:hover { background: #ffffff; }
.lv-submit[aria-busy="true"] { cursor: progress; }
.lv-submit:disabled { opacity: .7; }

/* «Sign in with Microsoft» (t655, по MS_SIGNIN в .env): над формой пароля,
   тёмная с логотипом - светлой остаётся одна кнопка, «Sign in». */
.lv-ms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  box-sizing: border-box;
  background: #22242a;
  color: #f2f3f5;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}

.lv-ms:hover { background: #2a2c33; }
.lv-ms[aria-busy="true"] { opacity: .6; cursor: progress; }

/* t1015: «Запомнить меня» - одна строка над обоими способами входа. */
.lv-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  color: #b4b8c2;
  font-size: 13px;
  cursor: pointer;
}

.lv-remember input { accent-color: #8ab4ff; margin: 0; }

.lv-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 14px;
  color: #8b8f9a;
  font-size: 12px;
}

.lv-or::before,
.lv-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .09);
}

/* У полей фокус показывает мягкое кольцо (.lv-input:focus выше). */
.lv-pw-toggle:focus-visible,
.lv-ms:focus-visible,
.lv-submit:focus-visible {
  outline: 2px solid #8ab4ff;
  outline-offset: 2px;
}

/* ---- ошибка ---- */

.lv-error {
  margin: 0 0 14px;
  padding: 9px 11px;
  background: rgba(226, 72, 61, .12);
  border: 1px solid rgba(226, 72, 61, .4);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #ffb3ad;
}

/* Телефон: карточка во всю ширину с полями 16px (padding у body). */
@media (max-width: 420px) {
  .lv-card { padding: 20px 20px 22px; }
}
