/* أنماط نافذة إعادة تعيين كلمة المرور */
.reset-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.reset-modal-container.active {
  opacity: 1;
  visibility: visible;
}

.reset-modal-content {
  background: #fff;
  max-width: 450px;
  width: 90%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.reset-modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.3s ease;
  z-index: 10;
}

.reset-modal-close:hover {
  color: #dc3545;
}

.reset-box {
  padding: 30px;
}

.reset-header {
  text-align: center;
  margin-bottom: 25px;
}

.reset-header h2 {
  color: #4a6cf7;
  margin-bottom: 10px;
  font-size: 24px;
}

.reset-header p {
  color: #6c757d;
  font-size: 15px;
}

.reset-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.reset-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e9ecef;
  transform: translateY(-50%);
  z-index: 1;
}

.reset-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: #4a6cf7;
  transform: translateY(-50%);
  z-index: 2;
  transition: all 0.3s ease;
  width: 0%;
}

.reset-progress-step {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #6c757d;
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
}

.reset-progress-step.active,
.reset-progress-step.completed {
  border-color: #4a6cf7;
  background: #4a6cf7;
  color: #fff;
}

.reset-form-group {
  margin-bottom: 20px;
}

.reset-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #343a40;
  font-weight: 500;
}

.reset-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.reset-form-input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
  outline: none;
}

.reset-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.reset-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reset-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reset-btn-primary {
  background: #4a6cf7;
  color: #fff;
}

.reset-btn-primary:hover:not(:disabled) {
  background: #3a5ad9;
}

.reset-btn-cancel {
  background: #f8f9fa;
  color: #6c757d;
}

.reset-btn-cancel:hover:not(:disabled) {
  background: #e9ecef;
}

.reset-message {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
}

.reset-message.success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.reset-message.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.reset-resend-link {
  text-align: center;
  margin-top: 15px;
}

.reset-resend-link a {
  color: #4a6cf7;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reset-resend-link a:hover {
  text-decoration: underline;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s ease infinite;
  margin-left: 8px;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.countdown-timer {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #6c757d;
}

@media (max-width: 576px) {
  .reset-box {
    padding: 20px;
  }
  
  .reset-form-actions {
    flex-direction: column;
  }
  
  .reset-progress-step {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

/* تنسيق أيقونات إظهار/إخفاء كلمة المرور */
.reset-form-group .toggle-password {
  position: absolute;
  left: 15px;
  top: 38px;
  cursor: pointer;
  color: #888;
  z-index: 2;
  transition: color 0.3s ease;
}

.reset-form-group .toggle-password:hover {
  color: #4a6cf7;
}

/* تحسين الحقول التي تحتوي على أيقونات */
.reset-form-group {
  position: relative;
}

.reset-form-group .reset-form-input {
  padding-right: 15px;
  padding-left: 45px; /* مساحة للأيقونة على اليسار */
}