/* تنسيقات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #a8c45b 0%, #00c4cc 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  line-height: 1.6;
}

.page-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* كارد تسجيل الدخول */
.container {
  width: 100%;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

/* العنوان */
.login-title {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.login-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #a8c45b, #00c4cc);
  border-radius: 2px;
}

/* رسائل الخطأ */
.error-message {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

/* نموذج تسجيل الدخول */
.login-form {
  margin-top: 20px;
}

.input-group {
  margin-bottom: 25px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 600;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #00c4cc;
  box-shadow: 0 0 0 3px rgba(0, 196, 204, 0.1);
  transform: scale(1.02);
}

/* زر الدخول */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #a8c45b 0%, #00c4cc 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 196, 204, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* رابط التسجيل */
.register-link {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.register-link p {
  color: #666;
  margin-bottom: 12px;
  font-size: 15px;
}

.register-button {
  display: inline-block;
  background-color: transparent;
  color: #00c4cc;
  border: 2px solid #00c4cc;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.register-button:hover {
  background-color: #00c4cc;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 196, 204, 0.3);
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأثيرات responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px;
    font-size: 16px;
  }

  .register-button {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* تأثيرات إضافية للحقول */
.form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ff6b6b;
}

.form-input:valid:not(:focus):not(:placeholder-shown) {
  border-color: #a8c45b;
}

/* تأثير تحميل للزر */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* رابط نسيان كلمة المرور */
.forgot-password {
  text-align: center;
  margin: 15px 0;
}

.forgot-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #00c4cc;
  text-decoration: underline;
}
