body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background-color: #f3f6fc;
}

/* الشريط العلوي */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background-color: white;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 90px;
}

.logo img {
  height: 70px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-weight: bold;
  font-size: 16px;
}

.login-btn a {
  text-decoration: none;
  color: #004aad;
  border: 2px solid #004aad;
  padding: 5px 15px;
  border-radius: 25px;
  font-weight: bold;
}

/* الفاصل تحت الشريط */
.header-spacer {
  height: 90px;
}

/* النموذج */
.form-container {
  width: 90%;
  max-width: 850px;
  margin: 40px auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.form-title img {
  width: 45px;
  height: 45px;
}

.line-vertical {
  width: 2px;
  height: 40px;
  background-color: #007bff;
}

.form-title h1 {
  font-size: 24px;
  color: #333;
  margin: 0;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #444;
}

.form-field input,
.form-field select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #d3d3d3;
  text-align: right;
}

/* عرض وإخفاء كلمة المرور */
.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  left: 10px;
  bottom: 5px;
  cursor: pointer;
  font-size: 18px;
}

/* الزر النهائي */
.full-width {
  text-align: left;
}

.submit-btn {
  padding: 12px 30px;
  background-color: #006aa7;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #004aad;
}
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    height: auto;
  }

  .logo img {
    height: 60px;
    margin-bottom: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
  }

  .login-btn {
    align-self: stretch;
    text-align: center;
    margin-top: 10px;
  }

  .form-container {
    padding: 20px;
    margin: 20px auto;
  }

  .form-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .line-vertical {
    display: none; /* نلغي الخط لأن المساحة صغيرة */
  }

  .form-title h1 {
    font-size: 20px;
    margin-top: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .eye-icon {
    left: 12px;
    bottom: 10px;
    font-size: 20px;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }

  .full-width {
    text-align: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 10px 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    margin: 10px 0;
  }

.login-btn {
  display: none;
}

.nav-links.show ~ .login-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
}
.logo {
    display: none;
  }
}
.logo-container {
  display: block;
}

/* إخفاء اللوجو في الموبايل افتراضيًا */
@media (max-width: 600px) {
  .logo-container {
    display: none;
  }

  .nav-links.show ~ .logo-container {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  .nav-links.show ~ .login-btn {
    display: block;
    text-align: center;
    margin-top: 10px;
  }

  .login-btn {
    display: none;
  }
}
