
body {
  margin: 0;
  padding: 0;
  font-family: "Cairo", sans-serif;
  background-image: url(./12.jpg);
  background-size: cover;
  direction: rtl;
  padding-top: 70px; /* مكان الشريط العلوي الثابت */
  box-sizing: border-box;
}

/* الشريط العلوي */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to left, #0f9d58, #34a853);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 30px;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar .logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
}

.navbar .nav-links {
  display: flex;
  gap: 40px;
}

.navbar .nav-links a {
  text-decoration: none;
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar .nav-links a:hover {
  background-color: white;
  color: #0f9d58;
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

/* استجابة الموبايل */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .nav-links {
    flex-direction: column;
    width: 100%;
    padding-top: 10px;
  }

  .navbar .nav-links a {
    width: 80%;
    text-align: right;
  }
}

/* الحاوية الخارجية */
.form-containers {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 15px;
  
}

/* صندوق النموذج */
.form-container {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-in-out;
}

/* شعار البلدية */
.logo-box {
  text-align: center;
  margin-bottom: 30px;
}

#logo {
  width: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

#logo:hover {
  transform: scale(1.1) rotate(2deg);
}

.title {
  font-size: 24px;
  font-weight: bold;
  color: #2f855a;
  text-align: center;
}

/* الحقول */
.input {
  width: 95%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.3s;
}

.input:focus {
  border-color: #2f855a;
  box-shadow: 0 0 8px rgba(47, 133, 90, 0.3);
  outline: none;
  background-color: #fff;
}

/* رابط نسيت كلمة المرور */
.page-link {
  text-align: left;
  margin-bottom: 20px;
  font-size: 13px;
}

.page-link a {
  color: #2f855a;
  text-decoration: underline;
}

.page-link a:hover {
  color: #1a4733;
}

/* زر تسجيل الدخول */
.form-btn {
  background-color: #2f855a;
  color: white;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.form-btn:hover {
  background-color: #276749;
  transform: scale(1.03);
}

/* نص التسجيل */
.sign-up-label {
  margin-top: 20px;
  font-size: 13px;
  color: #444;
  text-align: center;
}

.sign-up-link {
  color: #2f855a;
  font-weight: bold;
  text-decoration: none;
}

.sign-up-link:hover {
  text-decoration: underline;
}

/* أنيميشن دخول النموذج */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* زر الواتساب العائم */
.wat {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.wat:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 4px 4px 10px #aaa;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #13472d;
}
