* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* background: #f4f4f6; */
  font-family: 'Vazirmatn UI FD', Tahoma, sans-serif;
  direction: rtl;
  display: flex;
  justify-content: center;
}

/* کانتینر اصلی */
.wrapper {
  width: 100%;
  /* max-width: 420px; */
  padding: 40px 20px;
}

/* دسکتاپ بزرگ */
@media (min-width: 768px) {
  .wrapper {
    max-width: 500px;
    padding: 60px 30px;
  }
}

/* عنوان */
.title {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
}

/* فرم */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Vazirmatn UI FD', Tahoma, sans-serif;
}

/* دکمه‌ها */
.btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

/* موبایل خیلی کوچک */
@media (max-width: 360px) {
  .btn-grid {
    grid-template-columns: 1fr;
  }
}

/* تبلت و دسکتاپ */
@media (min-width: 768px) {
  .btn-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

button {
  height: 50px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6f42c1, #5a32a3);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Vazirmatn UI FD', Tahoma, sans-serif;
}

button:hover {
  transform: scale(0.97);
}

/* راهنما */
.guide {
  font-size: 13px;
}

.guide-title {
  margin-bottom: 12px;
}

.guide-title span {
  color: red;
}

.guide ul {
  list-style: none;
  padding: 0;
}

.guide li {
  margin-bottom: 10px;
  padding-right: 20px;
  position: relative;
  line-height: 1.6;
}

.guide li::before {
  content: "✅";
  color: green;
  position: absolute;
  right: 0;
}

/* دسکتاپ: فاصله بهتر */
@media (min-width: 1024px) {
  body {
    align-items: center;
    min-height: 100vh;
  }

  .wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Toast Box */
.toast {
  min-width: 220px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 3s forwards;
}

/* انواع */
.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }
.toast.info { background: #6f42c1; }

/* انیمیشن */
@keyframes slideIn {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* بک‌گراند لودینگ */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* اسپینر */
.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #ddd;
  border-top: 4px solid #6f42c1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* انیمیشن */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}