/* ============================================================
   signup.css — صفحة إنشاء الحساب الجديد
   ============================================================ */

/* ---- توسيع عرض البطاقة للتسجيل ---- */
.signup-wrapper {
  max-width: 680px;
}

.signup-card {
  padding: 36px 40px;
}

/* ---- شبكة الحقلين جنباً إلى جنب ---- */
.signup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 580px) {
  .signup-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .signup-card {
    padding: 28px 22px;
  }
}

/* ---- Required star ---- */
.required-star {
  color: #f87171;
  margin-right: 2px;
}

/* ---- Optional tag ---- */
.optional-tag {
  font-size: 11px;
  color: #475569;
  font-weight: 400;
}

/* ---- Textarea ---- */
.signup-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* ---- عداد الأحرف ---- */
.char-count {
  font-size: 11px;
  color: #475569;
  text-align: left;
  margin-top: 4px;
}

/* ---- مقياس قوة كلمة المرور ---- */
.password-strength {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-strength__bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
}

.password-strength__fill {
  height: 100%;
  border-radius: 4px;
  transition: width .3s ease, background .3s ease;
}

.password-strength__label {
  font-size: 11px;
  font-weight: 600;
  min-width: 48px;
  text-align: center;
}

.strength--weak   .password-strength__fill { width: 33%; background: #f87171; }
.strength--weak   .password-strength__label { color: #f87171; }

.strength--medium .password-strength__fill { width: 66%; background: #fbbf24; }
.strength--medium .password-strength__label { color: #fbbf24; }

.strength--strong .password-strength__fill { width: 100%; background: #34d399; }
.strength--strong .password-strength__label { color: #34d399; }

/* ---- Input status icon ---- */
.input-status {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

/* ---- تنبيه المراجعة ---- */
.signup-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px 0;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.6;
}

.signup-notice i {
  font-size: 16px;
  color: #60a5fa;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- رابط تسجيل الدخول في الأسفل ---- */
.signup-login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.signup-login-link .link-primary {
  color: var(--primary-light, #60a5fa);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}

.signup-login-link .link-primary:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ============================================================
   حالة النجاح — طلبك قيد المراجعة
   ============================================================ */

.signup-success-state {
  text-align: center;
  padding: 12px 0;
}

.signup-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1e40af, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  box-shadow: 0 8px 30px rgba(30,64,175,.4);
  animation: pulseIcon 2.5s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { box-shadow: 0 8px 30px rgba(30,64,175,.4); }
  50%       { box-shadow: 0 8px 50px rgba(139,92,246,.6); }
}

.signup-success-title {
  font-size: 22px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.signup-success-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- خطوات التتبع ---- */
.signup-success-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.signup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
}

.signup-step + .signup-step::before {
  content: '';
  position: absolute;
  right: calc(50% + 22px);
  top: 18px;
  width: calc(100% - 44px);
  height: 2px;
  background: rgba(255,255,255,.1);
  z-index: 0;
}

.signup-step__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.1);
  color: #334155;
  position: relative;
  z-index: 1;
}

.signup-step--done .signup-step__icon {
  background: rgba(52,211,153,.15);
  border-color: #34d399;
  color: #34d399;
}

.signup-step--active .signup-step__icon {
  background: rgba(251,191,36,.15);
  border-color: #fbbf24;
  color: #fbbf24;
  animation: pulseStep .8s ease-in-out infinite alternate;
}

.signup-step--done span { color: #34d399; }
.signup-step--active span { color: #fbbf24; }

@keyframes pulseStep {
  from { box-shadow: 0 0 0 0 rgba(251,191,36,.3); }
  to   { box-shadow: 0 0 0 6px rgba(251,191,36,.0); }
}

/* ============================================================
   قسم المنتظرين في صفحة إدارة المستخدمين
   ============================================================ */

.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(251,191,36,.15);
  border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.pending-badge i { font-size: 11px; }
