/* =============================================
   استایل صفحات ورود / ثبت‌نام
   ============================================= */

body.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 40%, #243b55 0%, #141e30 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* کارت فرم */
.auth-card {
  background: #1a2a3a;
  border: 1px solid rgba(76,161,175,0.2);
  border-radius: 20px;
  padding: 45px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: slideUp 0.4s ease;
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo h1 {
  font-size: 28px;
  font-weight: 100;
  letter-spacing: 8px;
  margin: 0;
  color: #fff;
}
.auth-logo span { color: #4ca1af; }
.auth-logo p {
  color: #4ca1af;
  font-size: 11px;
  letter-spacing: 4px;
  margin-top: 6px;
}

.auth-title {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}

/* گروه ورودی */
.auth-group {
  margin-bottom: 18px;
  position: relative;
}
.auth-group label {
  display: block;
  font-size: 13px;
  color: #99aab5;
  margin-bottom: 7px;
}
.auth-group input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #2c3e50;
  border-radius: 10px;
  color: #fff;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.auth-group input:focus {
  border-color: #4ca1af;
  background: rgba(76,161,175,0.07);
}
.auth-group input[type="tel"],
.auth-group input[type="number"] {
  direction: ltr;
  text-align: left;
  letter-spacing: 2px;
}
.auth-group input::placeholder { color: rgba(255,255,255,0.25); }
.auth-group .eye-toggle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #99aab5;
  font-size: 18px;
  margin-top: 12px;
  user-select: none;
}

/* دکمه ارسال */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: #4ca1af;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 6px;
}
.auth-btn:hover  { background: #3a8d9b; }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* پیام خطا / موفقیت */
.auth-message {
  min-height: 18px;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  border-radius: 6px;
  padding: 8px 12px;
  display: none;
}
.auth-message.visible { display: block; }
.auth-message.error   { background: rgba(244,67,54,0.12); color: #ef9a9a; }
.auth-message.success { background: rgba(76,175,80,0.12); color: #a5d6a7; }

/* لینک‌های پایین فرم */
.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #99aab5;
}
.auth-footer a {
  color: #4ca1af;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* =============================================
   ویزارد مرحله‌ای (ثبت‌نام)
   ============================================= */
.steps-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #2c3e50;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #99aab5;
  transition: all 0.3s;
  background: transparent;
}
.step-dot.active  { border-color: #4ca1af; color: #4ca1af; }
.step-dot.done    { border-color: #4ca1af; background: #4ca1af; color: #fff; }
.step-line {
  flex: 1; height: 2px;
  background: #2c3e50;
  max-width: 50px;
  transition: background 0.3s;
}
.step-line.done { background: #4ca1af; }

/* پانل مراحل */
.step-panel { display: none; animation: fadeStep 0.3s ease; }
.step-panel.active { display: block; }

/* تایمر OTP */
.otp-timer {
  text-align: center;
  font-size: 13px;
  color: #99aab5;
  margin-top: 10px;
}
.otp-timer span { color: #4ca1af; font-weight: bold; }
.otp-resend {
  display: none;
  color: #4ca1af;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}
.otp-resend:hover { text-decoration: underline; }

/* ورودی OTP بزرگ */
.otp-input {
  letter-spacing: 12px !important;
  font-size: 26px !important;
  text-align: center !important;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeStep {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
  .auth-card { padding: 30px 22px; }
  .auth-logo h1 { font-size: 22px; letter-spacing: 5px; }
}
