/* 💎 واجهة تسجيل الدخول الفاخرة - Sama Jewellery Edition */

* {
  box-sizing: border-box;
}

body {
  font-family: "Cairo", sans-serif;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  /* 🌟 خلفية فاخرة بخامة حرير ذهبي مع نقوش ناعمة */
  background: radial-gradient(circle at 30% 20%, #fff8e1 0%, #f7e7a3 40%, #f3d77a 90%);
  background-image:
    repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 2px, transparent 2px, transparent 60px);
  background-blend-mode: soft-light;
}

/* 🌸 الحاوية العامة */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}

/* ✨ الصندوق الذهبي */
.login-container {
  background: linear-gradient(160deg, #fffef9, #fff8e1, #fff5cc);
  border: 1.5px solid #d4af37;
  border-radius: 18px;
  padding: 35px 30px;
  width: 380px;
  max-width: 90%;
  text-align: center;

  /* 🪄 الظلال الذهبية */
  box-shadow:
    0 10px 25px rgba(212, 175, 55, 0.25),
    0 0 60px rgba(255, 223, 128, 0.15),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.login-container:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px rgba(212, 175, 55, 0.35),
    0 0 80px rgba(255, 235, 160, 0.25),
    inset 0 0 14px rgba(255, 255, 255, 0.35);
}

/* 👑 تاج فاخر صغير فوق العنوان */
.page-title::before {
  content: "👑";
  display: block;
  font-size: 32px;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  margin-bottom: 10px;
  animation: glowCrown 3s ease-in-out infinite;
}

/* ✨ حركة لمعان خفيفة للتاج */
@keyframes glowCrown {
  0%, 100% {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5),
                 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(0);
  }
  50% {
    text-shadow: 0 0 18px rgba(255, 215, 0, 0.9),
                 0 0 35px rgba(255, 240, 180, 0.6);
    transform: translateY(-2px);
  }
}

/* ✴️ العنوان */
h1.page-title {
  color: #b9962f;
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(212,175,55,0.4);
}

h2 {
  color: #4d3b00;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255,240,180,0.6);
}

/* 🧩 حقول الإدخال */
.login-container input {
  width: 100%;
  margin: 10px 0;
  padding: 13px;
  border-radius: 10px;
  border: 1px solid #c5a231;
  font-size: 16px;
  outline: none;
  text-align: center;
  background-color: #fffdf6;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.06);
}

.login-container input:focus {
  border-color: #d4af37;
  box-shadow:
    0 0 10px rgba(212,175,55,0.4),
    inset 0 1px 6px rgba(255, 255, 255, 0.3);
}

/* 💛 زر الدخول */
.login-container button {
  width: 100%;
  background: linear-gradient(135deg, #d4af37, #b9962f);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-size: 17px;
  margin-top: 18px;
  transition: all 0.3s ease;
  box-shadow:
    0 6px 15px rgba(212,175,55,0.35),
    inset 0 2px 4px rgba(255,255,255,0.4);
}

.login-container button:hover {
  background: linear-gradient(145deg, #c19b2d, #a98624);
  box-shadow:
    0 10px 20px rgba(212,175,55,0.45),
    inset 0 2px 4px rgba(255,255,255,0.4);
  transform: scale(1.03);
}

/* ⚠️ رسالة الخطأ */
.error {
  color: #b22222;
  background: #fff4f4;
  border: 1px solid #f3b9b9;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  text-align: center;
}

/* 📱 تجاوب كامل */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
    padding-top: 50px;
  }

  .login-container {
    width: 92%;
    padding: 35px 20px;
    border-radius: 14px;
  }

  h1.page-title {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  body {
    align-items: center;
    padding: 0;
  }

  .login-wrapper {
    height: 100vh;
    justify-content: center;
  }

  .login-container {
    width: 95%;
    padding: 25px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(160deg, #fffef9, #fff9e6, #fef2b7);
    box-shadow:
      0 10px 25px rgba(212,175,55,0.25),
      inset 0 0 10px rgba(255,255,255,0.3);
  }

  h1.page-title {
    font-size: 20px;
  }

  .login-container button {
    font-size: 16px;
  }
}
