/*
 * Капча регистрации (фаза captcha, ПортаЧат) — стили модалки.
 * Классы sc-* унаследованы от sample/captcha.css, оформление — фирменный
 * стиль проекта (план §5.7, решение владельца). Шрифт наследуется от
 * страницы (Okta Neue, html{font-size:16px} на ресурсе 3 → 1rem = 16px).
 */

/* затемнение поверх страницы */
.sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.sc-overlay.sc-open {
  display: flex;
}
/* загрузка новой загадки (класс process ставит reload()) */
.sc-overlay.process .sc-modal {
  filter: brightness(.65);
  pointer-events: none;
}

.sc-modal {
  background: #fff;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.sc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--greyText, #3a4156);
  margin-bottom: .75rem;
  text-align: center;
}

.sc-viewport {
  position: relative;
  width: 300px;
  height: 150px;
  overflow: hidden;
  border: .05rem solid var(--formBorder, #aacce3);
  border-radius: .5rem;
  background: #f0f0f0;
}
.sc-viewport canvas {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.sc-slider {
  width: 300px;
  margin-top: .875rem;
  accent-color: #0893fc;
  cursor: pointer;
}

.sc-status {
  font-size: .8rem;
  color: var(--greyText, #3a4156);
  margin-top: .5rem;
  text-align: center;
  min-height: 1.2rem;
}
.sc-status.sc-ok-state {
  color: #2e7d32;
  font-weight: 600;
}
.sc-status.sc-err-state {
  color: #c62828;
  font-weight: 600;
}

.sc-actions {
  display: flex;
  gap: .5rem;
  margin-top: .875rem;
  justify-content: space-between;
}
.sc-actions button {
  padding: .8rem 1.4rem;
  border-radius: 15rem;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 500;
  line-height: 180%;
  font-family: inherit;
}
/* вторичные кнопки */
.sc-reload,
.sc-cancel {
  background: #fff;
  border: .05rem solid #aacce3;
  color: #3a4156;
}
.sc-reload:hover,
.sc-cancel:hover {
  border-color: #0893fc;
  color: #0893fc;
}
/* основная кнопка — как .btn сайта */
.sc-ok {
  background: linear-gradient(90deg, #0893fc, #0008b6);
  color: #fff;
  text-transform: uppercase;
}
.sc-ok:hover {
  background: linear-gradient(90deg, #0893fc, #0893fc);
}
.sc-ok:disabled {
  background: var(--borderGrey, #becad3);
  cursor: not-allowed;
}

/* ошибка капчи в форме регистрации (выводит getRegForm, план §5.4) —
   по образцу .form-group .error ресурса 3 */
.form-captcha-error {
  color: #dd0029;
  font-size: .7rem;
  margin-bottom: .8rem;
}
