/* cairo-regular - arabic */
@font-face {
  font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cairo-v28-arabic-regular.woff2') format('woff2');
}

/* cairo-600 - arabic */
@font-face {
  font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cairo-v28-arabic-600.woff2') format('woff2');
}

/* تنسيق عام */
body {
   font-family: 'Cairo', sans-serif;
  margin: 0;
  background: #f5f5f5;
  color: #333;
  direction: rtl;
}

/* الهيدر الرئيسي */
.main-header {
  background: #222;
  padding: 5px 10px;
}

/* صف الهيدر */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 10px;
}

/* قسم الشعار وأيقونات المستخدم */
.logo-section,
.nav-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}

/* صورة الشعار */
.logo-img {
  width: 180px;
  height: auto;
}

/* أيقونات التنقل */
.nav-icons {
  gap: 8px;
}

.nav-icons a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 4px;
}

.nav-icons a:hover {
  opacity: 0.7;
}

/* قائمة المستخدم */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.user-name {
  color: #fff;
  font-size: 14px;
}

.user-menu .dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  padding: 8px;
  z-index: 1000;
  white-space: nowrap;
}

.user-menu.open .dropdown {
  display: flex;
  flex-direction: column;
}



.user-menu:hover .dropdown {
  display: flex;
  flex-direction: column;
}

.user-menu .dropdown a {
  color: #333;
  text-decoration: none;
  padding: 5px 10px;
  font-size: 14px;
}

.user-menu .dropdown a:hover {
  background: #f0f0f0;
}

/* نموذج التسجيل والدخول */
   .contailogin {
      display: flex;
      flex-wrap: wrap;
      min-height: 100vh;
    }

    .slider {
      flex: 1;
      background: #000;
      position: relative;
      overflow: hidden;
      min-height: 100vh;
    }

    .slide {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 1s ease-in-out;
    }

    .slide.active {
      opacity: 1;
      z-index: 1;
    }

    .slide img {
      width: 100%;
      height: 100%;
      object-fit: fill;
      position: absolute;
       filter: brightness(0.7); /* لتسليط الضوء على النص */
  transition: transform 1s ease-in-out, filter 1s;
    }
.slide.active img {
  transform: scale(1.05);
  filter: brightness(0.5);
}
.slide-caption {
  backdrop-filter: blur(4px); /* ضبابية خلف النص */
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  margin: 0 auto;
  animation: fadeInUp 1s ease-in-out;

}
.slide-caption h2 {
  font-size: 70px;
  color: #fefefe;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  animation: fadeInDown 1s ease-in-out;
}

.slide-caption p {
  font-size: 30px;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  animation: fadeInUp 1.2s ease-in-out;
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
    .auth-box {
      flex: 1;
      background: linear-gradient(to right, #cc00ff, #ffffff);
      padding: 40px 30px;
      max-width: 600px;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1);
      position: relative;
      z-index: 2;
    }

    .switch-buttons {
      margin-bottom: 20px;
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .switch-buttons button {
      background: #a90000;
      border: none;
      padding: 5px 15px;
      border-radius: 6px;
      cursor: pointer;
      transition: 0.3s;
      font-size: 14px;
      font-family: 'Cairo', sans-serif;
    }

    .switch-buttons button:hover {
      background: #dea008;
    }

    .switch-buttons .active-button {
      background: #000b91;
      color: #fff;
    }

    .auth-box form {
      display: none;
      flex-direction: column;
      gap: 10px;
      margin-top: 15px;
    }

    .auth-box form.active {
      display: flex;
    }

    input, select, button {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 14px;
    }

    button {
      background-color: #59008f;
      color: white;
      border: none;
      cursor: pointer;
      font-family: 'Cairo', sans-serif;
    }

    button:hover {
      background-color: #0056b3;
    }

    .alert {
      color: red;
      margin-bottom: 10px;
      font-size: 14px;
    }

@media (max-width: 768px) {
  .contailogin {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: 0;
  }

  .auth-box {
    position: absolute;
    top: 23%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 71%);
    padding: 20px 16px;
    width: 90%;
    max-width: 360px;
    border-radius: 15px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
.slide-caption h2 {
  font-size:30px;
  margin: 0px;
}
.slide-caption p {
  font-size: 16px;
  margin: 0px;
}
  body {
    overflow-x: hidden;
  }
}

/* تجاوب مع الجوال */
@media (max-width: 600px) {
  .logo-img {
    width: 130px;
  }

  .nav-icons a {
    font-size: 18px;
  }

  .user-avatar {
    width: 35px;
    height: 35px;
  }

  .user-name {
    font-size: 13px;
  }

  .user-menu .dropdown {
    left: auto;
    right: 0;
  }
}
