/* =============================================
   cyrus-otp.css - OTP Modal Specific Styles
   وابسته به متغیرهای تعریف شده در cyrus-header-core.css
   ============================================= */

/* ورودی‌های عمومی در مودال OTP */
.cyrus-otp-input {
  background: var(--cyrus-header-chip-bg) !important;
  border: 1px solid var(--cyrus-header-border) !important;
  color: inherit !important;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

.cyrus-otp-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}

/* کانتینر شماره + فیلد */
.cyrus-phone-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  direction: ltr;
}

/* پیشوند +98 */
.cyrus-phone-prefix {
  background: var(--cyrus-header-chip-bg);
  border: 1px solid var(--cyrus-header-border);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
  color: inherit;
  white-space: nowrap;
}

/* فیلد شماره موبایل */
.cyrus-phone-input {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--cyrus-header-chip-bg);
  border: 1px solid var(--cyrus-header-border);
  color: inherit;
  font-size: 16px;
  outline: none;
}

/* دکمه‌های مودال OTP (هماهنگ با سایر مودال‌ها) */
#cyrusOtpModal .cyrus-auth-provider {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 999px;
  justify-content: center;
}

/* دکمه بازگشت */
#otpBackBtn {
  background: none;
  border: none;
  color: var(--mt-text-secondary, #666);
  margin-top: 1rem;
  cursor: pointer;
  font-size: 14px;
}

html:not([data-theme="light"]) #otpBackBtn {
  color: rgba(255,255,255,0.6);
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 480px) {
  .cyrus-phone-input {
    max-width: 160px;
  }
  .cyrus-phone-prefix {
    padding: 0.6rem 0.8rem;
  }
}