* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
  body {
    display: flex;
    height: 100vh;
    background-color: #f0f0f0;
    overflow: hidden;
  }

  .left-side {
    width: 40%;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}
.left-side::-webkit-scrollbar {
  display: none;               
}
  .form-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    margin-top: 3rem;
  }
  .form {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
  }
  .form input,
  .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    font-size: 1rem;
  }
  .form select {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    border: 1px solid #e74c3c;
    background-color: white;
    color: #e74c3c;
}
  .form textarea {
    height: 100px;
    resize: vertical;
  }

  label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
  }

  .submit-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
  }

  .submit-btn:hover {
    background-color: #c0392b;
  }

  .message {
    color: #e74c3c;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
  }

  .form h2 {
    color: #e74c3c;
    margin-bottom: 2rem;
    font-size: 2rem;
  }

  .register-link {
    text-align: center;
  }

  .register-link a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
  }

  .register-link a:hover {
    text-decoration: underline;
  }

  #registerForm {
    transform: rotateY(180deg);
  }

  .right-side {
    width: 60%;
    background-color: rgb(250, 249, 249);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .right-side img {
    max-width: 60%;
  }

  .toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .toggle {
    background: #e74c3c;
    width: 40px;
    height: 20px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
  }

  .arrow {
    position: absolute;
    top: -5px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: #fff;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    transition: all 0.3s ease;
  }

  @media (max-width: 768px) {
    .right-side {
      display: none;
    }
    .left-side {
      width: 100%;
      padding: 1.5rem;
    }
    body{
      overflow: auto;
    }
  }

  
  
  
/* تخصيص SweetAlert بحيث يظهر في منتصف الصفحة */
.swal2-popup {
  position: absolute !important;  /* تأكد من أن التنبيه ثابت في الشاشة */
  top: 50% !important;         /* يضع التنبيه في منتصف الشاشة من الأعلى */
  left: 50% !important;        /* يضع التنبيه في منتصف الشاشة من اليسار */
  transform: translate(-50%, -50%) !important; /* لضمان التوسيط الدقيق */
  z-index: 9999;               /* التأكد من أن التنبيه يظهر فوق كل العناصر الأخرى */
  max-width: 90%;              /* يمكن تحديد الحد الأقصى للعرض */
  width: 100%;                 /* تحديد العرض الكامل للتنبيه */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* إضافة ظل خفيف لجعل التنبيه بارزًا */
}

/* تخصيص زر "موافق" داخل SweetAlert */
.swal2-confirm {
  background-color: #e74c3c;;  /* لون زر "موافق" */
  color: white;               /* النص الأبيض */
  padding: 10px 20px;         /* إضافة حواف مناسبة */
  border-radius: 5px;         /* حواف مستديرة */
  border: none;
}

.swal2-confirm:hover {
  background-color: #e74d3c64;  /* تأثير hover لتغيير لون الزر */
  cursor: pointer;
}

/* تخصيص باقي محتويات التنبيه */
.swal2-title {
  font-size: 20px;            /* حجم خط العنوان */
  text-align: center;         /* محاذاة العنوان في المنتصف */
  color: #e74c3c;;
}

.swal2-html-container {
  font-size: 16px;            /* حجم خط الرسالة */
  text-align: center;         /* محاذاة النص في المنتصف */
}

/* تنسيقات عامة للفورم */
.form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form h2 {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    position: relative;
}

.form h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e74c3c;
    border-radius: 3px;
}

/* تنسيق مجموعات الإدخال */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group label i {
    margin-left: 8px;
    color: #e74c3c;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    outline: none;
}

.input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.input-group::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 38px;
    color: #e74c3c;
}

/* تنسيق زر الإرسال */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.submit-btn i {
    font-size: 1.2rem;
}

/* تنسيق رسائل الخطأ/النجاح */
.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}




/* تعديلات للجوال */
@media (max-width: 768px) {
    .form {
        padding: 25px 20px;
    }
    
    .form h2 {
        font-size: 1.6rem;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 12px 15px 12px 35px;
    }
}




/* تنسيقات خاصة بالاتجاه RTL/LTR */
.left-side.rtl {
    direction: rtl;
    text-align: right;
}

.left-side.ltr {
    direction: ltr;
    text-align: left;
}

/* تعديلات حقول الإدخال */
.left-side.rtl .input-group input,
.left-side.rtl .input-group select,
.left-side.rtl .input-group textarea {
    padding: 12px 40px 12px 15px;
    text-align: right;
}

.left-side.ltr .input-group input,
.left-side.ltr .input-group select,
.left-side.ltr .input-group textarea {
    padding: 12px 15px 12px 40px;
    text-align: left;
}

/* تعديلات الأيقونات */
.left-side.rtl .input-group i {
    left: auto;
    right: 15px;
}

.left-side.ltr .input-group i {
    right: auto;
    left: 15px;
}

/* تعديلات زر التبديل */
.left-side.rtl .toggle-btn {
    flex-direction: row;
}

.left-side.ltr .toggle-btn {
    flex-direction: row;
}

.left-side.rtl .arrow {
    left: 20px;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.left-side.ltr .arrow {
    left: -5px;
    transform: rotate(180deg);
    transition: all 0.3s ease;
}

.left-side.rtl .arrow.active {
    left: -5px;
    transform: rotate(180deg);
}

.left-side.ltr .arrow.active {
    left: 25px;
    transform: rotate(0deg);
}

/* تعديلات النصوص */
.left-side.rtl .input-group label {
    text-align: right;
}

.left-side.ltr .input-group label {
    text-align: left;
}

/* تعديلات للعناصر المطلقة */
.left-side.rtl .form h2::after {
    right: 50%;
    left: auto;
    transform: translateX(50%);
}

.left-side.ltr .form h2::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

/* تعديلات للجوال */
@media (max-width: 768px) {
    .left-side.rtl, 
    .left-side.ltr {
        padding: 1.5rem;
    }
    
    .left-side.rtl .input-group input,
    .left-side.rtl .input-group select,
    .left-side.rtl .input-group textarea,
    .left-side.ltr .input-group input,
    .left-side.ltr .input-group select,
    .left-side.ltr .input-group textarea {
        padding: 12px 15px 12px 35px;
    }
    
    .left-side.rtl .input-group i,
    .left-side.ltr .input-group i {
        top: 38px;
    }
}








.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    backdrop-filter: blur(4px);
}

.popup-modal.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(0, 0, 0, 0.368);
    padding: 35px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.popup-modal.active .popup-content {
    transform: scale(1);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e74c3c;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.popup-content p {
    margin-bottom: 28px;
    font-size: 17px;
    line-height: 1.7;
    color: white;
    font-weight: bold;
    font-weight: 400;
}

.popup-content button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.popup-content button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.popup-content button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.popup-content button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.popup-content button:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}