body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: inherit;
  background: #f5f6fa;
  direction: rtl;
  text-align: right;
}

.mslr-wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mslr-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.mslr-form input[type="text"],
.mslr-form input[type="password"],
.mslr-form input[type="tel"] {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  direction: rtl;
  text-align: right;
  color:#000;
}

.mslr-form button {
  display: block;
  text-align: center !important;
  width: 100%;
  background: #C93900;
  color: white;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}

.mslr-form button:hover {
  background: #903410;
}

.mslr-or {
  text-align: center;
  margin: 10px 0;
  font-weight: bold;
  color: #888;
  direction: rtl;
}

.mslr-logo-section {
  text-align: center;
  margin-bottom: 20px;
}

.mslr-logo-section .mslr-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.mslr-site-name {
  margin: 0;
  font-size: 20px;
  color: #000 !important;
  font-family: inherit;
}

.mslr-captcha-box {
  display: flex;
  align-items: center;
  margin-top: 10px;
  direction: rtl;
}

.mslr-captcha-box label {
  flex: 0 0 60%;
  font-weight: bold;
  font-size: 16px;
  user-select: none;
  color:#000;
}

.mslr-captcha-box input {
  flex: 0 0 40%;
  text-align: center;
  direction: ltr;
}

.mslr-password-checklist {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  text-align: right;
  direction: rtl;
}

.mslr-password-checklist li {
  font-size: 14px;
  color: #555;
  margin: 4px 0;
}

/* OTP input fields */
.mslr-otp-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  direction: rtl;
}

.mslr-otp {
  width: 50px;
  height: 50px;
  font-size: 22px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  direction: ltr;
}

/* پیام هشدار */
.mslr-message {
  background: #ffecec;
  color: #cc0000;
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  font-family: inherit;
}

/* فلش بازگشت */
.mslr-back-arrow {
  position: static;
  background: none;
  border: none;
  float: left;
  cursor: pointer;
  font-size: 24px;
  color: #555;
  font-family: inherit;
}
.mslr-back-arrow:hover {
  color: #903410;
}

/* لینک بازگشت مرحله اول */
.mslr-back-link {
  position: static;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: #555;
  font-family: inherit;
}
.mslr-back-link:hover {
  color: #903410;
}
#mslr-otp-timer {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #d9534f; /* رنگ قرمز هشدار */
  user-select: none;
}

#mslr-resend-otp {
  margin-top: 10px;
  background-color: #007bff;
  border: none;
  color: white;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: none; /* پیش‌فرض مخفی */
  transition: background-color 0.3s ease;
}

#mslr-resend-otp:hover:not(:disabled) {
  background-color: #0056b3;
}

#mslr-resend-otp:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.mslr-wrapper {
  position: relative;
}

.mslr-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.mslr-loading.show {
  display: flex;
}

.mslr-loading-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-weight: 600;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mslr-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ddd;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: mslr-spin 0.8s linear infinite;
}

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