/* Окно входа. Стили не затрагивают шаблон сайта. */
.pc-login-root { display:inline-flex; }
.pc-head { display:inline-flex; align-items:center; }
.pc-head__control { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; padding:0; border:0; background:transparent; color:inherit; font:inherit; text-decoration:none; cursor:pointer; }
.pc-head__control:hover { color:#00a3df; }
.pc-head__control svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; }
.pc-modal-open { overflow:hidden !important; }
.pc-overlay[hidden],.pc-modal [hidden] { display:none !important; }
.pc-overlay { position:fixed; inset:0; z-index:2147483600; display:grid; place-items:center; padding:20px; box-sizing:border-box; }
.pc-overlay__shade { position:absolute; inset:0; background:rgba(230,233,236,.79); backdrop-filter:blur(2px); }
.pc-modal { position:relative; box-sizing:border-box; width:min(100%,636px); max-height:92vh; overflow-y:auto; padding:56px 40px 40px; border-radius:22px; box-shadow:0 20px 50px rgba(0,0,0,.15); background:#fff; color:#111; text-align:left; font-family:inherit; }
.pc-modal__close { position:absolute; top:18px; right:22px; padding:0 4px; border:0; background:transparent; font:inherit; font-size:34px; line-height:1; cursor:pointer; color:#555; }
.pc-modal h2 { margin:0 0 22px; color:#111; font-size:clamp(28px,3vw,34px); line-height:1.15; font-weight:700; text-align:center; }
.pc-modal__intro { margin:0 0 28px; font-size:18px; line-height:1.45; text-align:center; color:#555; }
.pc-modal label { display:block; margin:0 0 10px; font-size:18px; font-weight:700; color:#222; }
.pc-modal input { box-sizing:border-box; display:block; width:100%; height:62px; padding:0 22px; border:1px solid #b7bbc1; border-radius:10px; background:#fff; color:#111; font:inherit; font-size:24px; text-align:center; }
.pc-modal input::placeholder { color:#8d8d8d; }
.pc-modal input[data-pc-phone] { text-align:center; }
.pc-modal input[data-pc-phone]:focus::placeholder { color:#8d8d8d; opacity:1; }
.pc-modal input:focus { border-color:#009fe3; outline:2px solid rgba(0,159,227,.13); }
.pc-modal__submit { display:block; width:100%; min-height:60px; margin-top:24px; border:0; border-radius:10px; background:#00a1e5; color:#fff; font:inherit; font-size:22px; font-weight:600; cursor:pointer; }
.pc-modal__submit:hover { background:#008aca; }
.pc-modal__submit--verify { margin-top:18px; background:#00a1e5; }
.pc-modal__submit--verify:hover { background:#008aca; }
.pc-modal__secondary { display:block; width:100%; min-height:52px; margin-top:12px; border:1px solid #d7d9dd; border-radius:10px; background:#f7f7f8; color:#8b8d92; font:inherit; font-size:18px; cursor:pointer; transition:background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease; }
.pc-modal__secondary:not(:disabled) { background:#eaf7ff; border-color:#8fd6f5; color:#00a1e5; box-shadow:0 0 0 1px rgba(0,161,229,.04) inset; }
.pc-modal__secondary:not(:disabled):hover { background:#d8f0fb; border-color:#62c5ef; color:#008aca; }
.pc-modal button:disabled { opacity:.7; cursor:not-allowed; }
.pc-modal__code-step { text-align:center; }
.pc-modal__code-phone-label { margin:0 0 6px; font-size:18px; line-height:1.35; color:#666; text-align:center; }
.pc-modal__code-phone { margin:0 0 12px; font-size:18px; font-weight:700; line-height:1.35; text-align:center; }
.pc-modal__notice { margin:0 0 20px; font-size:16px; line-height:1.45; color:#666; text-align:center; }
.pc-modal__pin-input { height:68px; font-size:34px; font-weight:500; letter-spacing:.42em; text-indent:.42em; font-variant-numeric:tabular-nums; }
.pc-modal__attempts { margin:12px 0 0; font-size:16px; line-height:1.35; color:#7a7d83; text-align:left; }
.pc-modal__actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:12px; }
.pc-modal__actions button { padding:4px 0; border:0; background:transparent; color:#008acb; font:inherit; font-size:15px; cursor:pointer; }
.pc-modal__error { margin:16px 0 0; font-size:15px; line-height:1.45; color:#c72929; text-align:center; }
@media(max-width:640px) {
  .pc-overlay { padding:12px; }
  .pc-modal { padding:46px 20px 28px; border-radius:16px; }
  .pc-modal__close { top:12px; right:14px; }
  .pc-modal h2 { font-size:24px; margin-bottom:18px; }
  .pc-modal__intro { font-size:16px; margin-bottom:22px; }
  .pc-modal label { font-size:16px; }
  .pc-modal input { height:56px; font-size:20px; }
  .pc-modal__pin-input { height:60px; font-size:28px; letter-spacing:.34em; text-indent:.34em; }
  .pc-modal__submit { min-height:56px; font-size:19px; }
  .pc-modal__secondary { min-height:48px; font-size:16px; }
}

/* Встроенная форма входа на странице кабинета. */
.pc-login-root.pc-login-page {
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:560px;
  padding:35px 16px 70px;
}
.pc-login-page .pc-overlay {
  position:relative;
  inset:auto;
  z-index:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:0;
  background:transparent;
}
.pc-login-page .pc-modal {
  width:min(100%,520px);
  max-height:none;
  overflow:visible;
}
.pc-login-page__auth { margin-inline:auto; }
.pc-login-page__link {
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  text-decoration:none;
}
.pc-login-page__link:hover { color:#fff; }
@media (max-width:640px) {
  .pc-login-root.pc-login-page { min-height:0; padding:28px 12px 48px; }
  .pc-login-page .pc-modal { box-shadow:0 12px 32px rgba(0,0,0,.1); width:min(100%,420px); }
}

/* Невидимая капча: контейнер нужен для рендера, но визуально не занимает места. */
.pc-modal__captcha { min-height:0; width:0; height:0; overflow:hidden; }
