* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Main Content */
.main-content {
  display: flex;
  min-height: 100vh;
}

.login-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background: #f8f9fa;
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 550px; /* زيادة العرض من 450px إلى 550px */
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 30px; /* تقليل من 40px */
}

.login-header h1 {
  font-size: 2rem; /* تقليل من 2.5rem */
  color: #333;
  margin-bottom: 8px;
  font-weight: 700;
}

.login-header p {
  color: #666;
  font-size: 0.9rem; /* تقليل من 1rem */
}

/* Form Styles */
.form-group {
  margin-bottom: 20px; /* تقليل من 25px */
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem; /* تقليل من 0.95rem */
}

.form-group label i {
  color: #ff6b35;
  width: 14px; /* تقليل من 16px */
}

.form-group input {
  width: 100%;
  padding: 12px 16px; /* تقليل من 15px 20px */
  border: 2px solid #e1e5e9;
  border-radius: 10px; /* تقليل من 12px */
  font-size: 0.9rem; /* تقليل من 1rem */
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b35;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #ff6b35;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem; /* تقليل من 0.85rem */
  margin-top: 4px;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px; /* تقليل من 30px */
  font-size: 0.85rem; /* تقليل من 0.9rem */
}

.remember-me {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.remember-me input {
  display: none;
}

.checkmark {
  width: 16px; /* تقليل من 18px */
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
  background: #ff6b35;
  border-color: #ff6b35;
}

.remember-me input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 1px;
  color: white;
  font-size: 11px; /* تقليل من 12px */
  font-weight: bold;
}

.forgot-password {
  color: #ff6b35;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #e55a2b;
}

/* Login Button */
.login-btn-main {
  width: 100%;
  padding: 12px; /* تقليل من 15px */
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  border: none;
  border-radius: 10px; /* تقليل من 12px */
  color: white;
  font-size: 1rem; /* تقليل من 1.1rem */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px; /* تقليل من 25px */
}

.login-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.login-btn-main.loading .btn-text {
  opacity: 0;
}

.login-btn-main.loading .btn-loader {
  opacity: 1;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Divider */
.divider {
  text-align: center;
  margin: 20px 0; /* تقليل من 25px */
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5e9;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 0.85rem; /* تقليل من 0.9rem */
}

/* Social Login */
.social-login {
  display: flex;
  gap: 12px; /* تقليل من 15px */
  margin-bottom: 20px; /* تقليل من 25px */
}
.social-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* مهم جدًا لتنسيق a زي الزر */
  text-decoration: none;
  color: inherit;
}

.google-btn:hover {
  border-color: #db4437;
  color: #db4437;
}

.facebook-btn:hover {
  border-color: #4267b2;
  color: #4267b2;
}

/* Signup Link */
.signup-link {
  text-align: center;
  font-size: 0.9rem; /* تقليل من 0.95rem */
  color: #666;
}

.signup-link a {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #e55a2b;
}

/* Custom Egyptian Background Section */
.background-section {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 30px; /* تقليل من 40px */
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1539650116574-75c0c6d73f6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.egyptian-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.egyptian-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 140, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* رموز هيروغليفية عائمة - تصغير */
.hieroglyph {
  position: absolute;
  font-size: 2rem; /* تقليل من 3rem */
  color: rgba(255, 215, 0, 0.4);
  animation: float-hieroglyph 6s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  z-index: 2;
}

.h1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}
.h2 {
  top: 35%;
  right: 15%;
  animation-delay: 2s;
}
.h3 {
  bottom: 35%;
  left: 20%;
  animation-delay: 4s;
}
.h4 {
  top: 65%;
  right: 25%;
  animation-delay: 6s;
}

@keyframes float-hieroglyph {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-15px) rotate(5deg); /* تقليل من -20px */
    opacity: 0.8;
  }
}

/* نجوم ذهبية - تصغير */
.star {
  position: absolute;
  width: 6px; /* تقليل من 8px */
  height: 6px;
  background: #ffd700;
  border-radius: 50%;
  animation: twinkle-gold 4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  z-index: 2;
}

.star-1 {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}
.star-2 {
  top: 25%;
  left: 60%;
  animation-delay: 1s;
}
.star-3 {
  top: 15%;
  right: 10%;
  animation-delay: 2s;
}
.star-4 {
  top: 35%;
  left: 80%;
  animation-delay: 0.5s;
}
.star-5 {
  top: 45%;
  left: 10%;
  animation-delay: 1.5s;
}

@keyframes twinkle-gold {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  } /* تقليل من 1.8 */
}

/* Pyramids - تصغير الأهرامات */
.pyramid {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.6;
  z-index: 2;
}

.pyramid-large {
  border-left: 80px solid transparent; /* تقليل من 120px */
  border-right: 80px solid transparent;
  border-bottom: 120px solid rgba(255, 215, 0, 0.7); /* تقليل من 180px */
  bottom: 20%;
  left: 15%;
  animation: float 8s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.pyramid-medium {
  border-left: 60px solid transparent; /* تقليل من 80px */
  border-right: 60px solid transparent;
  border-bottom: 90px solid rgba(255, 179, 71, 0.7); /* تقليل من 120px */
  bottom: 25%;
  left: 45%;
  animation: float 10s ease-in-out infinite reverse;
  filter: drop-shadow(0 0 12px rgba(255, 179, 71, 0.5));
}

.pyramid-small {
  border-left: 35px solid transparent; /* تقليل من 50px */
  border-right: 35px solid transparent;
  border-bottom: 55px solid rgba(255, 140, 0, 0.7); /* تقليل من 75px */
  bottom: 30%;
  right: 20%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.5));
}

/* Sun - تصغير الشمس */
.sun {
  position: absolute;
  top: 15%;
  right: 20%;
  width: 70px; /* تقليل من 100px */
  height: 70px;
  background: radial-gradient(circle, #ffd700 0%, #ff8c00 100%);
  border-radius: 50%;
  opacity: 0.9;
  animation: rotate 20s linear infinite;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
  z-index: 2;
}

.sun-rays {
  position: absolute;
  top: -20px; /* تقليل من -30px */
  left: -20px;
  width: 110px; /* تقليل من 160px */
  height: 110px;
  background: radial-gradient(
    circle,
    transparent 35%,
    rgba(255, 215, 0, 0.3) 36%,
    rgba(255, 215, 0, 0.3) 40%,
    transparent 41%
  );
  border-radius: 50%;
  animation: rotate 30s linear infinite reverse;
}

/* Sand Dunes - تصغير الكثبان */
.sand-dune {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0;
  opacity: 0.4;
  z-index: 1;
}

.dune-1 {
  width: 200px; /* تقليل من 300px */
  height: 40px; /* تقليل من 60px */
  background: linear-gradient(45deg, #daa520, #b8860b);
  left: 0;
  animation: wave 12s ease-in-out infinite;
}

.dune-2 {
  width: 170px; /* تقليل من 250px */
  height: 30px; /* تقليل من 45px */
  background: linear-gradient(45deg, #cd853f, #a0522d);
  left: 150px;
  animation: wave 15s ease-in-out infinite reverse;
}

.dune-3 {
  width: 140px; /* تقليل من 200px */
  height: 25px; /* تقليل من 35px */
  background: linear-gradient(45deg, #d2691e, #8b4513);
  right: 0;
  animation: wave 10s ease-in-out infinite;
}

/* Palm Trees - تصغير النخيل */
.palm-tree {
  position: absolute;
  bottom: 15%;
  z-index: 2;
}

.palm-1 {
  left: 25%;
  animation: sway 8s ease-in-out infinite;
}
.palm-2 {
  right: 30%;
  animation: sway 10s ease-in-out infinite reverse;
}

.palm-trunk {
  width: 8px; /* تقليل من 12px */
  height: 70px; /* تقليل من 100px */
  background: linear-gradient(45deg, #8b4513, #654321);
  border-radius: 4px;
  margin: 0 auto;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(139, 69, 19, 0.5);
}

.palm-leaves {
  width: 60px; /* تقليل من 80px */
  height: 30px; /* تقليل من 40px */
  background: linear-gradient(45deg, #228b22, #006400);
  border-radius: 50%;
  position: relative;
  top: -15px;
  left: -26px;
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.5);
}

.palm-leaves::before,
.palm-leaves::after {
  content: "";
  position: absolute;
  width: 35px; /* تقليل من 50px */
  height: 18px; /* تقليل من 25px */
  background: linear-gradient(45deg, #228b22, #006400);
  border-radius: 50%;
}

.palm-leaves::before {
  top: -12px;
  left: -15px;
  transform: rotate(-30deg);
}

.palm-leaves::after {
  top: -12px;
  right: -15px;
  transform: rotate(30deg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  } /* تقليل من -15px */
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.05);
  } /* تقليل من 1.1 */
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2deg);
  } /* تقليل من 3deg */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.background-section .content {
  max-width: 500px; /* تقليل من 600px */
  animation: slideInRight 0.8s ease-out;
  position: relative;
  z-index: 2;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.background-section h2 {
  font-size: 1rem; /* تقليل من 1.2rem */
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #ff6b35;
  font-weight: 600;
}

.background-section h1 {
  font-size: 2.8rem; /* تقليل من 3.5rem */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.background-section p {
  font-size: 1rem; /* تقليل من 1.1rem */
  margin-bottom: 30px;
  line-height: 1.8;
  opacity: 0.9;
}

.discover-btn {
  background: #ff6b35;
  color: white;
  border: none;
  padding: 12px 30px; /* تقليل من 15px 35px */
  border-radius: 25px;
  font-size: 1rem; /* تقليل من 1.1rem */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discover-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.success-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 40px; /* تقليل من 50px */
  border-radius: 16px;
  text-align: center;
  max-width: 350px; /* تقليل من 400px */
  width: 90%;
  animation: modalPop 0.5s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content i {
  font-size: 3rem; /* تقليل من 4rem */
  color: #28a745;
  margin-bottom: 20px;
}

.modal-content h3 {
  color: #333;
  margin-bottom: 12px;
  font-size: 1.5rem; /* تقليل من 1.8rem */
}

.modal-content p {
  color: #666;
  font-size: 0.9rem; /* تقليل من 1rem */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
  }

  .background-section {
    min-height: 50vh;
  }

  .background-section h1 {
    font-size: 2.2rem;
  }

  .login-container {
    max-width: 500px; /* تقليل للشاشات المتوسطة */
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 25px 20px;
    margin: 15px;
    max-width: 90%; /* استخدام النسبة المئوية للموبايل */
  }

  .login-header h1 {
    font-size: 1.8rem;
  }

  .background-section h1 {
    font-size: 1.8rem;
  }

  .background-section h2 {
    font-size: 0.9rem;
  }

  .social-login {
    flex-direction: column;
  }

  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pyramid-large,
  .pyramid-medium,
  .pyramid-small {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px 15px;
  }

  .background-section {
    padding: 25px 15px;
  }
}
