/* Base styles */
body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #f4edd3 0%, #ffffff 100%);
  direction: rtl;
}

/* Decorative background circles */
.decorative-circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(148, 35, 38, 0.3);
}

.circle-1 {
  width: 340px;
  height: 336px;
  top: -50px;
  right: -100px;
  background: rgba(148, 35, 38, 0.3);
}

.circle-2 {
  width: 268px;
  height: 265px;
  top: 10%;
  right: 20%;
  background: rgba(148, 35, 38, 0.5);
}

.circle-3 {
  width: 308px;
  height: 305px;
  bottom: -50px;
  right: -100px;
  background: rgba(148, 35, 38, 0.7);
}

.circle-4 {
  width: 308px;
  height: 305px;
  top: 20%;
  left: -100px;
  background: rgba(148, 35, 38, 1);
}

.circle-5 {
  width: 353px;
  height: 349px;
  bottom: -100px;
  left: -150px;
  background: rgba(148, 35, 38, 0.4);
}

/* Main card */
.main-card {
  background: white;
  border: none;
  max-width: 1200px;
  margin: 2rem auto;
}

/* Registration form section */
.registration-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-title {
  color: #942326;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.custom-input {
  background-color: rgba(217, 217, 217, 0.2);
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.95rem;
  color: rgba(81, 77, 85, 0.6);
  text-align: right;
  direction: rtl;
}

.custom-input:focus {
  background-color: rgba(217, 217, 217, 0.3);
  border: 2px solid #942326;
  box-shadow: none;
  outline: none;
}

.custom-input::placeholder {
  color: rgba(81, 77, 85, 0.6);
  font-weight: 500;
}

.custom-btn {
  background-color: #942326;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.custom-btn:hover {
  background-color: #7a1d20;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.facebook-text {
  color: #514d55;
  font-size: 0.95rem;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.facebook-text .fw-bold {
  font-weight: 800;
}

/* Login section */
.login-section {
  background: rgba(148, 35, 38, 0.05);
  border-radius: 0 20px 20px 0;
}

.login-content {
  max-width: 300px;
}

.welcome-title {
  color: #942326;
  font-weight: 800;
  font-size: 1.25rem;
}

.welcome-subtitle {
  color: #942326;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.login-btn {
  border: 2px solid #942326;
  color: #942326;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #942326;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* WhatsApp image */
.whatsapp-container {
  position: relative;
}

.whatsapp-image {
  width: 100px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .main-card {
    margin: 1rem;
    border-radius: 15px !important;
  }
  
  .login-section {
    border-radius: 0 0 15px 15px;
    background: rgba(148, 35, 38, 0.08);
  }
  
  .form-title {
    font-size: 1.3rem;
  }
  
  .welcome-title {
    font-size: 1.1rem;
  }
  
  .welcome-subtitle {
    font-size: 0.9rem;
  }
  
  .circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
    transform: scale(0.7);
  }
}

@media (max-width: 576px) {
  .circle-1, .circle-2, .circle-3, .circle-4, .circle-5 {
    transform: scale(0.5);
  }
  
  .custom-input {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .custom-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .login-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* RTL specific adjustments */
@media (min-width: 768px) {
  .login-section {
    border-radius: 0 20px 20px 0;
  }
}

/* Animation for smooth transitions */
.main-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
