/* SMS OTP modal — оформление под форму темы: Montserrat, navy #2e5c8a,
   поля как .form-field, кнопка как .form-button */

.smsotp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.smsotp-modal {
  position: relative;
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 8px;
  padding: 42px 38px 34px;
  box-shadow: 0 2px 30px -4px #000;
  font-family: 'MontserratRegular', 'Montserrat', Arial, sans-serif;
  color: #0b202e;
  text-align: center;
}

.smsotp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 30px;
  line-height: 1;
  color: #a7a7a7;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
}

.smsotp-close:hover {
  color: #2e5c8a;
}

.smsotp-title {
  margin: 0 0 22px;
  font-family: 'MontserratBold', 'Montserrat', Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #2e5c8a;
}

.smsotp-text {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.5;
  color: #0b202e;
  word-break: break-word;
}

.smsotp-text b {
  color: #2e5c8a;
  white-space: nowrap;
}

.smsotp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 20px;
  text-align: center;
  letter-spacing: 6px;
  color: #0b202e;
  border: 1px solid #a7a7a7;
  border-radius: 5px;
  background-color: rgba(51, 51, 51, 0.06);
  outline: none;
  margin-bottom: 16px;
}

.smsotp-input:focus {
  border-color: #2e5c8a;
}

/* Плейсхолдер — без разрядки и мельче, чтобы «Введите код из СМС» не растягивался */
.smsotp-input::placeholder {
  letter-spacing: normal;
  font-size: 15px;
  opacity: 0.75;
}

.smsotp-msg {
  margin: 0 0 14px;
  min-height: 18px;
  font-size: 14px;
  color: #0b202e;
}

.smsotp-msg--error {
  color: #e23b3b;
}

.smsotp-submit {
  width: 100%;
  border: 2px solid #2e5c8a;
  border-radius: 30px;
  padding: 15px 20px;
  background: #2e5c8a;
  color: #fff;
  font-family: 'MontserratBold', 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: 0.3s;
}

.smsotp-submit:hover:not(:disabled) {
  background: #24496e;
  border-color: #24496e;
  box-shadow: 0 2px 3px rgba(46, 92, 138, 0.3);
}

.smsotp-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.smsotp-resend {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: none;
  color: #2e5c8a;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.smsotp-resend:disabled {
  color: #a7a7a7;
  cursor: default;
}

.smsotp-state[hidden] {
  display: none;
}

.smsotp-spinner {
  width: 46px;
  height: 46px;
  margin: 6px auto 20px;
  border: 4px solid rgba(46, 92, 138, 0.2);
  border-top-color: #2e5c8a;
  border-radius: 50%;
  animation: smsotp-spin 0.8s linear infinite;
}

@keyframes smsotp-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .smsotp-modal { padding: 34px 22px 26px; }
  .smsotp-title { font-size: 23px; }
}
