/**
 * ملف CSS لصفحة تسجيل الدخول المميزة
 */

/* إعادة تعيين وأنماط عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.premium-login {
  font-family: 'Tajawal', sans-serif;
  background-color: #1e3c72;
  color: #fff;
  line-height: 1.6;
  direction: rtl;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* خلفية متحركة */
.premium-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  z-index: -3;
}

/* الجسيمات المتحركة */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
}

/* الخطوط الذهبية */
.gold-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.gold-lines::before,
.gold-lines::after {
  content: '';
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(248, 181, 0, 0.2), transparent);
  width: 200%;
  height: 2px;
}

.gold-lines::before {
  top: 25%;
  left: -50%;
  transform: rotate(-5deg);
  animation: moveLine 15s linear infinite;
}

.gold-lines::after {
  top: 75%;
  left: -50%;
  transform: rotate(5deg);
  animation: moveLine 20s linear infinite reverse;
}

@keyframes moveLine {
  0% {
    transform: translateX(0) rotate(-5deg);
  }
  100% {
    transform: translateX(100%) rotate(-5deg);
  }
}

/* حاوية النموذج */
.login-container {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  padding: 40px;
  width: 400px;
  max-width: 90%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
}

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

/* زر الإغلاق */
.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: #f8b500;
  transform: rotate(90deg);
}

/* شعار الشركة */
.company-logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-image {
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* عنوان النموذج */
.login-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #f8b500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* حقول الإدخال */
.input-group {
  position: relative;
  margin-bottom: 25px;
}

.login-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.login-input:focus {
  outline: none;
  border-color: #f8b500;
  box-shadow: 0 0 0 3px rgba(248, 181, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.login-input:focus + .input-icon {
  color: #f8b500;
}

/* تذكرني ونسيت كلمة المرور */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.checkbox-container {
  display: flex;
  align-items: center;
}

.auth-checkbox {
  margin-left: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.auth-checkbox:checked {
  background-color: #f8b500;
  border-color: #f8b500;
}

.auth-checkbox:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
}

.forgot-password {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #f8b500;
  text-decoration: underline;
}

/* رسائل الخطأ والنجاح */
.error-message,
.success-message {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: fadeIn 0.5s ease-out;
}

.error-message {
  background-color: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #ffcdd2;
}

.success-message {
  background-color: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #c8e6c9;
}

/* زر تسجيل الدخول */
.login-button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #f8b500;
  color: #1e3c72;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'Tajawal', sans-serif;
}

.login-button:hover {
  background-color: #ffcc33;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 181, 0, 0.3);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(248, 181, 0, 0.3);
}

.button-icon {
  margin-left: 8px;
}

/* تأثير التموج عند النقر على الزر */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* وسائط الاستجابة */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }
  
  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .forgot-password {
    margin-top: 10px;
  }
}
