/* فونت و بدنه کلی */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Vazir", "Tahoma", "Noto Sans Arabic", sans-serif;
  direction: rtl;
  background: radial-gradient(circle at top, #4a2f19 0%, #2f1b0c 40%, #1c0f06 100%);
  color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* کارت مرکزی */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.auth-card {
  background: linear-gradient(145deg, #3d2614 0%, #2f1b0c 45%, #3d2614 100%);
  border-radius: 18px;
  border: 1px solid #d4af37;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 22px 20px 24px;
  position: relative;
  overflow: hidden;
}

/* لوگو و عنوان */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  gap: 10px;
}

.auth-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: #f5d76e;
}

/* متن زیر عنوان */
.auth-subtitle {
  font-size: 13px;
  color: #e0c068;
  margin-bottom: 16px;
}

/* ورودی‌ها */
.auth-field {
  margin-bottom: 12px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #f8f8f8;
}

.auth-field input,
.auth-field select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e0c068;
  background: #3d2614;
  color: #f8f8f8;
  font-size: 13px;
  outline: none;
}

.auth-field input::placeholder {
  color: #c7b18a;
}

.auth-field small {
  font-size: 11px;
  color: #c7b18a;
}

/* چک‌باکس */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  color: #f8f8f8;
}

.auth-checkbox input {
  margin-top: 3px;
}

/* خط طلایی */
.auth-divider {
  height: 1px;
  background: linear-gradient(to left, transparent, #d4af37, transparent);
  margin: 14px 0;
}

/* دکمه‌ها */
.auth-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
}

/* دکمه اصلی */
.btn-primary {
  background: #000000;
  border: 2px solid #d4af37;
  color: #d4af37;
}

.btn-primary:hover {
  background: #d4af37;
  color: #2f1b0c;
}

/* دکمه ثانویه */
.btn-secondary {
  background: transparent;
  border: 1px solid #a57c2b;
  color: #e0c068;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
}

/* پیام‌ها */
.auth-message {
  margin-top: 8px;
  font-size: 12px;
  min-height: 16px;
}

.auth-message.error {
  color: #ffb3b3;
}

.auth-message.success {
  color: #9ef7c1;
}

/* فوتر */
.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #e0c068;
}

.auth-footer a {
  color: #f5d76e;
  text-decoration: none;
}

/* استپر */
.stepper {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 12px;
  color: #c7b18a;
}

.stepper span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c7b18a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.step-active .step-circle {
  background: #d4af37;
  color: #2f1b0c;
}

/* اسلایدر */
.step-slider {
  display: flex;
  width: 200%;
  transition: transform 0.3s ease-in-out;
}

.step-panel {
  width: 50%;
  padding-right: 2px;
}

.step-2-active .step-slider {
  transform: translateX(-50%);
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .auth-card {
    padding: 18px 14px 20px;
  }

  .auth-title {
    font-size: 18px;
  }

  .auth-field input,
  .auth-field select {
    font-size: 12px;
    padding: 8px 9px;
  }

  .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}

/* ███ Modal قوانین ███ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 480px;
  background: #2d1a0d;
  border: 1px solid #d4af37;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.modal-content h2 {
  font-size: 16px;
  color: #f5d76e;
  margin-bottom: 12px;
}

/* اسکرول */
.modal-scroll {
  height: 55vh;
  overflow-y: auto;
  border: 1px solid #a57c2b;
  border-radius: 12px;
}

.modal-scroll iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
