/* Enhanced Auth Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    box-sizing: border-box;
}
html, body {
    height: 100%; 
    max-width: 100%;
    overflow-x: hidden;
}
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(25%) saturate(1.2);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #cca75f 0%, #b8964a 50%, #8b7337 100%);
    height: 100%; 
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* خلفية متحركة للإضافة الجمالية */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.logo {
    width: 170px;
    margin-bottom: -25px;
    margin-top: -25px;
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s ease;
}

.login-container, .register-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px 25px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 320px;
    text-align: center;
    position: relative;
    animation: slideUp 0.6s ease-out;
}

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

.login-container::before, .register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 18px 18px 0 0;
}

.login-container h2, .register-container h2 {
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.login-container h2::after, .register-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #cca75f, #d4b56a);
    border-radius: 2px;
}

.login-container input, .register-container input {
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.login-container input::placeholder, .register-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.login-container input:focus, .register-container input:focus {
    border-color: #cca75f;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204, 167, 95, 0.3);
}

.login-container button, .register-container button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #cca75f 0%, #b8964a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-container button::before, .register-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.login-container button:hover, .register-container button:hover {
    background: linear-gradient(135deg, #b8964a 0%, #a68541 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(204, 167, 95, 0.4);
}

.login-container button:hover::before, .register-container button:hover::before {
    left: 100%;
}

.login-container button:active, .register-container button:active {
    transform: translateY(0px);
    box-shadow: 0 6px 15px rgba(204, 167, 95, 0.3);
}

/* زر التسجيل الجديد في صفحة تسجيل الدخول */
.login-container button:nth-of-type(2) {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    font-weight: 500;
}

.login-container button:nth-of-type(2):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* زر الرجوع في صفحة التسجيل */
.register-container button:nth-of-type(2) {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    font-weight: 500;
    width: 100%;
}

.register-container button:nth-of-type(2):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

#errorMessage, .error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 10px 14px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.launch-badge {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, #cca75f 0%, #b8964a 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 6px 20px rgba(204, 167, 95, 0.3);
    z-index: 9999;
    pointer-events: none;
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* تأثيرات إضافية للتفاعل */
.login-container, .register-container {
    transition: all 0.3s ease;
}

.login-container:hover, .register-container:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* تأثير للنص */
.login-container p, .register-container p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

/* تحسين للحقول عند الخطأ */
.login-container input.error, .register-container input.error {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

/* تأثير التحميل */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* 🔁 تحسين تجاوب الحاويات العامة حسب حجم الشاشة */
@media (max-width: 1024px) {
  .login-container, .register-container {
    width: 90%;
    max-width: 340px;
    padding: 24px 20px;
  }

  .logo {
    width: 170px;
    margin: -20px auto 10px;
  }

  .login-container h2, .register-container h2 {
    font-size: 18px;
  }

  .login-container input, .register-container input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .login-container button, .register-container button {
    font-size: 14px;
    padding: 10px;
  }

  .launch-badge {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .login-container, .register-container {
    width: 95%;
    padding: 20px 16px;
  }

  .logo {
    width: 180px;
    margin-bottom: -10px;
  }

  .login-container h2, .register-container h2 {
    font-size: 16px;
  }

  .launch-badge {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .login-container, .register-container {
    width: 95%;
    padding: 25px 16px;
  }

  .logo {
    width: 170px;
    margin-bottom: -30px;
  }

  .login-container h2, .register-container h2 {
    font-size: 20px;
  }

  .login-container input, .register-container input {
    font-size: 13px;
  }

  .login-container button, .register-container button {
    font-size: 13px;
  }
}
.guest-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
  }
  .guest-btn:hover {
    background-color: #5a6268;
  }
/* OTP Modal Styles - START */
.otp-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.otp-modal-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.otp-modal-content p {
  color: #333;
  display: block;
  visibility: visible;
}

/* --- تعديل --- */
/* تم إضافة هذا الـ style لعكس اتجاه عرض الرقم */
#maskedPhone {
  color: #ffffff; /* لون أبيض */
  font-weight: bold;
  direction: ltr; /* يضمن عرض الرقم المخفي يسارًا والأرقام الظاهرة يمينًا */
  display: inline-block; /* ضروري لتطبيق الاتجاه بشكل صحيح */
}
/* --- نهاية التعديل --- */

.otp-input-container {
  margin: 20px 0;
}

.otp-input-container input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 5px;
  letter-spacing: 2px;
  color: #ffffff;
}

.otp-input-container input::placeholder {
  color: #aaa;
  opacity: 1;
}

.timer-container {
  margin: 15px 0;
  color: #666;
  display: block;
  visibility: visible;
}

.otp-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* --- تعديل --- */
/* تم تصغير الأزرار هنا */
.otp-buttons button {
  padding: 8px 15px; /* تقليل الحشو الداخلي */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px; /* تصغير حجم الخط */
}
/* --- نهاية التعديل --- */

#verifyOtpBtn {
  background-color: #007bff;
  color: white;
}

#verifyOtpBtn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#resendOtpBtn {
  background-color: #28a745;
  color: white;
}
/* OTP Modal Styles - END */

/* =============================================== */
/*   تخصيص تصميم زر "نسيت كلمة المرور؟"         */
/* =============================================== */

#forgotPasswordBtn {
  /* --- إعادة تعيين أنماط الأزرار العامة --- */
  background: none !important; /* إزالة الخلفية بشكل قاطع */
  border: none !important; /* إزالة الحدود بشكل قاطع */
  box-shadow: none !important; /* إزالة الظل بشكل قاطع */
  padding: 8px !important; /* تعديل الحشو الداخلي */
  margin-top: 15px !important; /* تعديل المسافة العلوية */
  width: auto !important; /* جعل العرض تلقائيًا بحسب النص */
  display: inline-block !important; /* جعله عنصرًا سطريًا */
  
  /* --- تطبيق التصميم المطلوب --- */
  color: rgba(255, 255, 255, 0.8) !important; /* لون النص أبيض شفاف */
  font-size: 13px !important;
  font-weight: 500 !important;
  font-family: 'Cairo', sans-serif !important;
  text-decoration: underline !important; /* إضافة خط سفلي */
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

#forgotPasswordBtn:hover {
  color: #cca75f !important; /* تغيير اللون إلى الذهبي عند المرور */
  text-decoration: none !important; /* إزالة الخط السفلي عند المرور */
  transform: none !important; /* إزالة أي تأثير حركة عند المرور */
}


/* =============================================== */
/* أنماط مخصصة لنوافذ إعادة تعيين كلمة المرور (مطابقة للصور) */
/* =============================================== */

/* أنماط حقول الإدخال */
#forgotPasswordModal input,
#resetPasswordOtpModal input,
#newPasswordModal input {
  width: 100%;
  padding: 10px 14px; /* نفس حجم حقول تسجيل الدخول/التسجيل */
  margin: 6px 0;
  border: 2px solid rgba(255, 255, 255, 0.3); /* حدود بيضاء شفافة */
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Cairo', sans-serif;
  background: rgba(255, 255, 255, 0.1); /* خلفية شفافة */
  color: #ffffff; /* لون النص أبيض */
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

#forgotPasswordModal input::placeholder,
#resetPasswordOtpModal input::placeholder,
#newPasswordModal input::placeholder {
  color: rgba(255, 255, 255, 0.7); /* لون placeholder أبيض شفاف */
  font-weight: 400;
}

#forgotPasswordModal input:focus,
#resetPasswordOtpModal input:focus,
#newPasswordModal input:focus {
  border-color: #cca75f; /* حدود ذهبية عند التركيز */
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 167, 95, 0.3);
}

/* أنماط الأزرار */
#forgotPasswordModal .otp-buttons button,
#resetPasswordOtpModal .otp-buttons button,
#newPasswordModal .otp-buttons button {
  width: 100%;
  padding: 10px;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

/* الأزرار الذهبية (تحقق، إرسال رمز، تغيير كلمة المرور) */
#sendResetOtpBtn,
#verifyResetOtpBtn,
#updatePasswordBtn {
  background: linear-gradient(135deg, #cca75f 0%, #b8964a 100%);
}

#sendResetOtpBtn:hover,
#verifyResetOtpBtn:hover,
#updatePasswordBtn:hover {
  background: linear-gradient(135deg, #b8964a 0%, #a68541 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 167, 95, 0.4);
}

#sendResetOtpBtn:active,
#verifyResetOtpBtn:active,
#updatePasswordBtn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 15px rgba(204, 167, 95, 0.3);
}

/* زر إعادة إرسال رمز التحقق (الأخضر) */
#resendResetOtpBtn {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%); /* لون أخضر */
}

#resendResetOtpBtn:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

#resendResetOtpBtn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* أزرار الإلغاء (الرمادي) */
#cancelForgotPasswordBtn,
#cancelResetOtpBtn,
#cancelNewPasswordBtn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-weight: 500;
}

#cancelForgotPasswordBtn:hover,
#cancelResetOtpBtn:hover,
#cancelNewPasswordBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* أنماط نص المؤقت */
#resetPasswordOtpModal .timer-container {
  margin: 15px 0;
  color: #ffffff; /* لون أبيض */
  font-weight: 600;
}

/* أنماط رسائل الخطأ */
#forgotPasswordError,
#resetOtpError,
#newPasswordError {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: shake 0.5s ease-in-out;
}

/* أنماط النص داخل النوافذ المنبثقة */
.otp-modal-content p {
  color: rgba(255, 255, 255, 0.9); /* لون النص أبيض شفاف */
  font-weight: 400;
  line-height: 1.6;
}

.otp-modal-content h3 {
  color: #ffffff; /* لون العنوان أبيض */
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.otp-modal-content h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #cca75f, #d4b56a);
  border-radius: 2px;
}

/* أنماط الحاوية الرئيسية للنافذة المنبثقة */
.otp-modal-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px 25px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
      0 20px 35px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 320px;
  text-align: center;
  position: relative;
  animation: slideUp 0.6s ease-out;
}

/* التأكد من أن الـ maskedPhone يظهر بشكل صحيح */
#resetMaskedPhone {
  color: #ffffff; /* لون أبيض */
  font-weight: bold;
  direction: ltr; /* يضمن عرض الرقم المخفي يسارًا والأرقام الظاهرة يمينًا */
  display: inline-block; /* ضروري لتطبيق الاتجاه بشكل صحيح */
}
/* =============================================== */
/* أنماط موحدة لجميع النوافذ المنبثقة (OTP ونسيت كلمة المرور) */
/* =============================================== */

/* أنماط الحاوية الرئيسية للنافذة المنبثقة */
.otp-modal-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px 25px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
      0 20px 35px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  width: 320px;
  text-align: center;
  position: relative;
  animation: slideUp 0.6s ease-out;
}

/* أنماط العناوين */
.otp-modal-content h3 {
  color: #ffffff; /* لون العنوان أبيض */
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  position: relative;
}

.otp-modal-content h3::after {
  content: \'\';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #cca75f, #d4b56a);
  border-radius: 2px;
}

/* أنماط الفقرات والنصوص العامة */
.otp-modal-content p {
  color: rgba(255, 255, 255, 0.9); /* لون النص أبيض شفاف */
  font-weight: 400;
  line-height: 1.6;
  display: block;
  visibility: visible;
}

/* أنماط حقول الإدخال */
.otp-input-container input {
  width: 100%;
  padding: 10px 14px;
  margin: 6px 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 13px;
  font-family: \'Cairo\', sans-serif;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  outline: none;
}

.otp-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.otp-input-container input:focus {
  border-color: #cca75f;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(204, 167, 95, 0.3);
}

/* أنماط الأزرار العامة داخل النوافذ المنبثقة */
.otp-buttons button {
  width: 100%;
  padding: 10px;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

/* الأزرار الذهبية (تحقق، إرسال رمز، تغيير كلمة المرور) */
#verifyOtpBtn,
#sendResetOtpBtn,
#verifyResetOtpBtn,
#updatePasswordBtn {
  background: linear-gradient(135deg, #cca75f 0%, #b8964a 100%);
}

#verifyOtpBtn:hover,
#sendResetOtpBtn:hover,
#verifyResetOtpBtn:hover,
#updatePasswordBtn:hover {
  background: linear-gradient(135deg, #b8964a 0%, #a68541 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(204, 167, 95, 0.4);
}

#verifyOtpBtn:active,
#sendResetOtpBtn:active,
#verifyResetOtpBtn:active,
#updatePasswordBtn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 15px rgba(204, 167, 95, 0.3);
}

/* زر إعادة إرسال رمز التحقق (الأخضر) */
#resendOtpBtn,
#resendResetOtpBtn {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

#resendOtpBtn:hover,
#resendResetOtpBtn:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
}

#resendOtpBtn:active,
#resendResetOtpBtn:active {
  transform: translateY(0px);
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

/* أزرار الإلغاء (الرمادي) */
#cancelForgotPasswordBtn,
#cancelResetOtpBtn,
#cancelNewPasswordBtn {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  margin-top: 10px;
  font-weight: 500;
}

#cancelForgotPasswordBtn:hover,
#cancelResetOtpBtn:hover,
#cancelNewPasswordBtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* أنماط نص المؤقت */
.timer-container {
  margin: 15px 0;
  color: #ffffff;
  font-weight: 600;
}

/* أنماط رسائل الخطأ */
.error-message {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: shake 0.5s ease-in-out;
}

/* التأكد من أن الـ maskedPhone يظهر بشكل صحيح */
#maskedPhone,
#resetMaskedPhone {
  color: #ffffff; /* لون أبيض */
  font-weight: bold;
  direction: ltr; /* يضمن عرض الرقم المخفي يسارًا والأرقام الظاهرة يمينًا */
  display: inline-block; /* ضروري لتطبيق الاتجاه بشكل صحيح */
}
.terms-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 8px;
}

.terms-agreement label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.terms-agreement a {
    color: #cca75f; /* اللون الذهبي */
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms-agreement a:hover {
    color: #f3ac39;
}

.terms-agreement input[type="checkbox"] {
    /* --- إعادة تصميم مربع الاختيار --- */
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.terms-agreement input[type="checkbox"]:checked {
    background-color: #cca75f;
    border-color: #cca75f;
}

.terms-agreement input[type="checkbox"]:checked::after {
    content: '✔'; /* علامة الصح */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}