/* Корректировки поверх оригинальных WB CSS,
   чтобы страница корректно отображалась без React-приложения. */

html, body, #root { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 75% 10%, #7a3dc8 0%, transparent 60%),
    radial-gradient(900px 500px at 15% 90%, #5b1aa0 0%, transparent 60%),
    linear-gradient(180deg, #3d0a6c 0%, #1a0436 100%);
  background-attachment: fixed;
  background-color: #2a0a4c;
  min-height: 100vh;
}

/* Базовая раскладка страницы */
.Page-5yIHkLui7L {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 48px;
  box-sizing: border-box;
}

/* Шапка */
.Page__header-zDSd0W44ov { width: 100%; }
.HeaderView-qL6sFqDFmi {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.HeaderView__menu-button-iXJ4QL6dvl {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Иконочная кнопка */
.IconButton-dyRP\+yvOcb {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity .15s, background .15s;
}
.IconButton-dyRP\+yvOcb:hover { background: rgba(255,255,255,.08); }
.IconButton--disabled-eTg30MiadY { opacity: .45; cursor: default; }
.IconButton--disabled-eTg30MiadY:hover { background: transparent; }

/* Селектор языка */
.LanguageSelectInput-lwOhzWidO4 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.LanguageSelectInput-lwOhzWidO4:hover { background: rgba(255,255,255,.08); }

/* Центральная форма */
.Page__login-form-wrapper-4AMotcBsmv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.LoginFormView-X4RN9rZ6dB {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}
.LoginFormView__text-wrapper-FNFDwTDvLS { display: flex; flex-direction: column; gap: 16px; }

/* Текст */
.Text-HhXTJ17s7D { display: inline-block; }
.Text--color-White-K-stXP8yHI { color: #fff; }
.Text--color-Black-NZGYk6dPEv { color: #000; }
.Text--color-RichGreyNew-rbP0oBADU5 { color: #1e1e2c; }
.Text--color-inherit-IxnssouOp2 { color: inherit; }
.Text--size-h3-wkEHJoxypr { font-size: 44px; font-weight: 700; line-height: 1.1; }
.Text--size-xl-MwATz2WX-o { font-size: 18px; line-height: 1.4; }
.Text--size-l-TjXIW\+QT2T { font-size: 16px; }
.Text--size-m-ENSgsFb69I { font-size: 15px; }
.Text--size-input-fVXnjbQn8d { font-size: 18px; }
.Text--white-space-pre-line-fJgcKsXwtO { white-space: pre-line; }
.Text--white-space-pre-wrap-sHTmFWAOSC { white-space: pre-wrap; }

/* Ссылки */
.BrowserLink-Ek9\+7vBJ2k {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.BrowserLink-Ek9\+7vBJ2k:hover { opacity: .85; }
.BrowserLink--no-text-EfmYiIPCAb { line-height: 0; }

/* Поле ввода телефона */
.PhoneInput-bCP6nElF3W { width: 100%; }
.FormPhoneInputBorderless-8TXufZsDs3 { position: relative; }
.FormPhoneInputBorderless__measurements-text-MeHXvc6WWt {
  position: absolute; visibility: hidden; pointer-events: none; height: 0;
}
.FormPhoneInputBorderless__input-wrapper-PGFy5abTfm {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
}
.FormPhoneInputBorderless__input-wrapper--transparent-X469yE1iME {
  background: rgba(0,0,0,.0);
}
.FormPhoneInputBorderless__select-dR9O1RdqnB { display: flex; }
.CountrySelect-WBGh14qTS1 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 6px;
  color: #1e1e2c;
  font-size: 18px;
}
.CountrySelect__flag-dt8Z6WPhrO {
  width: 24px; height: 18px; object-fit: cover; border-radius: 2px;
}
.CountrySelect--readonly-ZoDWni04tW { cursor: default; }
.CountrySelect__input-icon--hidden-\+1go39qyLt { display: none; }

.FormPhoneInputBorderless__input-kbtzQCYJhh {
  flex: 1;
  display: flex;
  align-items: center;
}
.SimpleInput-JIIQvb037j {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 20px;
  padding: 12px 4px;
  color: #1e1e2c;
}
.SimpleInput--color-White-xHztX5DNyc { color: #fff; }
.SimpleInput-JIIQvb037j::placeholder { color: #a4a4b8; }
.SimpleInput--color-White-xHztX5DNyc::placeholder { color: rgba(255,255,255,.6); }

.FormPhoneInputBorderless__icon--Gigf6rCz4 {
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.FormPhoneInputBorderless__icon--hidden-Z678Z9Faqe { opacity: 0; pointer-events: none; }
.FormPhoneInputBorderless__image-5k2LEXofCa { width: 32px; height: 32px; display: block; }
.FormPhoneInputBorderless__image--transparent-p8WNu8wx94 { filter: brightness(0) invert(1); }

/* Низ страницы */
.Page__portal-link-UdiNiAzr6y {
  text-align: center;
  padding: 16px 0 0;
}

/* Ошибки */
.phone-error, .code-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255,80,90,.18);
  border: 1px solid rgba(255,80,90,.45);
  border-radius: 10px;
  color: #ffd2d6;
  font-size: 14px;
}

/* ====== Модалка ====== */
.Portal-modal { position: fixed !important; inset: 0; }
.Portal-modal[hidden] { display: none !important; }
.Portal-modal__9b0af8cf-0fee-4698-bc83-9a3586b235b6 { position: fixed; inset: 0; }

.Overlay-95nqm-Zflo {
  position: fixed;
  inset: 0;
  background: rgba(20, 5, 40, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.Modal-Cya-5-PdNp {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #471180 0%, #2e0a55 100%);
  border-radius: 24px;
  padding: 32px;
  box-sizing: border-box;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  position: relative;
}
.Modal__content-xcCADBhNa5 { width: 100%; }

.AcceptCodeModalView-89gH-M1Voa { width: 100%; }
.ModalContentWrapper-B2evNN7n49 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ModalContentWrapper__close-button-E2MqNh0-hL { align-self: flex-start; }
.Button-JFb2fC666E {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 16px;
}
.Button-JFb2fC666E:hover { background: rgba(255,255,255,.08); }
.Button--disabled, .Button--interface-disabled-Mi4KyjDBJH {
  opacity: .55; cursor: default;
}
.Button--disabled:hover { background: transparent; }

.CodeInputContentView { display: flex; flex-direction: column; gap: 20px; }
.CodeInputContentView__phone-input-GfXDokuLdH { width: 100%; }
.CodeInputContentView__text-hnsmwYPgWO { text-align: left; }
.CodeInputContentView__form-mgPTHveibl { margin-top: 12px; }
.CodeInputContentView__button-bnM0-pPqJ9 { display: flex; justify-content: center; padding-top: 8px; }
.ModalContentWrapper__link-nc4AcLZnfc { text-align: center; padding-top: 4px; }

.FormCodeInput { width: 100%; }
.SimpleCodeInput-016VPGuQ\+E {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}
.SimpleCodeInput__item-Pk-qM5fzm\+ { flex: 1; }
.InputCell-PB5beCCt55 {
  width: 100%;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.InputCell-PB5beCCt55:focus {
  border-color: #cb11ab;
  background: rgba(255,255,255,.14);
}
.InputCell-PB5beCCt55.filled { background: rgba(255,255,255,.14); }
.InputCell-PB5beCCt55.error {
  border-color: #ff5564;
  background: rgba(255, 85, 100, .18);
}

/* Состояние "успешно" — лёгкая зелёная подсветка ячеек */
.InputCell-PB5beCCt55.success {
  border-color: #29c46b;
  background: rgba(41, 196, 107, .18);
}

@media (max-width: 600px) {
  .Page-5yIHkLui7L { padding: 16px; }
  .Text--size-h3-wkEHJoxypr { font-size: 32px; }
  .Modal-Cya-5-PdNp { padding: 20px; border-radius: 18px; }
  .InputCell-PB5beCCt55 { height: 54px; font-size: 22px; }
  .HeaderView__language-select-72lVDW5b77 { display: none; }
}

/* === Overrides 2026-06-17: ближе к центру форма входа, центрирование кода === */
.Page__login-form-wrapper-4AMotcBsmv {
  margin-top: 0 !important;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Поднимаем форму чуть выше точного центра, ближе к шапке */
.LoginFormView-X4RN9rZ6dB {
  margin-top: -6vh;
}

/* Модалка ввода кода: центрируем содержимое */
.AcceptCodeModalView-89gH-M1Voa,
.ModalContentWrapper-B2evNN7n49 {
  align-items: center !important;
}
.CodeInputContentView {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  align-items: center;
}
.CodeInputContentView__phone-input-GfXDokuLdH,
.CodeInputContentView__code-wrapper-gRlkdoetv1,
.CodeInputContentView__form-mgPTHveibl,
.CodeInputContentView__button-bnM0-pPqJ9 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.CodeInputContentView__text-hnsmwYPgWO {
  text-align: center !important;
  width: 100%;
}
.FormCodeInput {
  width: 100%;
  display: flex;
  justify-content: center;
}
.SimpleCodeInput-016VPGuQ\+E {
  justify-content: center !important;
  gap: 12px !important;
  width: auto;
  margin: 0 auto !important;
}
.SimpleCodeInput__item-Pk-qM5fzm\+ {
  flex: 0 0 auto !important;
}
.InputCell-PB5beCCt55 {
  width: 56px !important;
  height: 64px !important;
}
@media (max-width: 600px) {
  .InputCell-PB5beCCt55 { width: 44px !important; height: 54px !important; }
  .SimpleCodeInput-016VPGuQ\+E { gap: 8px !important; }
}
