/* إعادة تعيين التنسيقات الأساسية */
*, *:after, *:before {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

/* استيراد الخط */
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/Tajawal-Medium.ttf') format("truetype"),
       local('Tajawal');
}

/* تنسيق عام للصفحة */
html, body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  /*background-color: #6e6e6e;*/
  
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab, #ffcc00, #9b59b6);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
  font-family: 'Tajawal', sans-serif;
  color: #333;
}


@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
 body {
    padding-top: 60px; /* تعديل المسافة بسبب الهيدر في الشاشات الصغيرة */
  }
/*main {
        padding-top: 90px; /* تعديل حسب ارتفاع الهيدر */
   /* }
/* تنسيق القائمة المنسدلة */

.dropdown-menu .dropdown-item {
  text-align: right;
}

/* تنسيق الخلفيات */
.bg-light {
  background-color: #f2f2f2 !important;
}

.bg-secondary {
  background-color: #404040 !important;
}

/* تنسيق الحاوية */
.container {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* تنسيق العناوين */
h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 700;
}

/* تنسيق الفقرات */
p {
  text-align: center;
  margin-bottom: 15px;
  color: #7f8c8d;
}
/********/

/* تنسيق الروابط */
a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* تنسيق مجموعة المدخلات */
.input-group {
  margin-bottom: 20px;
  position: relative;
}

/* تنسيق الأيقونات داخل المدخلات */
.input-group .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  font-size: 16px;
}

.input-group input {
  padding-left: 40px; /* مساحة للأيقونة */
}

/* تنسيق الملصقات */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 500;
}

/* تنسيق المدخلات */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f9fbfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
}

/* تنسيق زر الإرسال */
input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* تنسيق رسائل الخطأ والنجاح */
.error1 {
  color: #e74c3c;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 14px;
}

.or1 {
  color: #2ecc71;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
  font-size: 14px;
}

/* تنسيق رسائل التحقق */
.validation-message {
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.valid {
  color: #2ecc71;
}

.invalid {
  color: #e74c3c;
}

/* تنسيق الأيقونات */
.icon_pass {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
}
.icon-eye {
  cursor: pointer;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8c8d;
  font-size: 16px;
  z-index: 10; /* للتأكد من أن الأيقونة تظهر فوق الحقل */
}

/* تحديد المسافة البادئة لحقل كلمة المرور لإفساح المجال للأيقونة */
.input-group input[type="password"] {
  padding-left: 40px; /* نفس المسافة المستخدمة في الحقول الأخرى */
}
/* تنسيق الشاشات الصغيرة (أقل من 800px) */
@media (max-width: 800px) {
  body {
    padding-top: 100px; /* تعديل المسافة بسبب الهيدر في الشاشات الصغيرة */
  }

  .container {
    width: 90%;
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"] {
    padding: 10px 15px 10px 35px;
    font-size: 14px;
  }

  input[type="submit"] {
    padding: 10px;
    font-size: 14px;
  }

  .input-group .input-icon {
    font-size: 14px;
  }
}

/* تنسيق الشاشات الكبيرة (أكبر من 800px) */
@media (min-width: 801px) {
  .container {
    max-width: 500px;
  }
}
