body {
  font-family: 'Tajawal', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(45deg, #2a0a3d, #4b1b6a);
  position: relative;
  min-height: 100vh;
  color: #fff;
  margin: 0;
}

/*  استدعاء الخطوط محلياً لسرعة البرق */
@font-face {
    font-family: 'Tajawal';
    src: url('../assets/fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../assets/fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Tajawal';
    src: url('../assets/fonts/Tajawal-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* الآن يمكنك استخدام الخط في أي مكان بكل ثقة */
* {
    font-family: 'Tajawal', sans-serif;
}

/* النجوم الخلفية */
.stars { position: fixed; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.star {
  position: absolute; background: rgba(255, 235, 59, 0.8); width: 3px; height: 3px; border-radius: 50%;
  box-shadow: 0 0 20px 2px rgba(255, 235, 59, 0.5), 0 0 40px 4px rgba(106, 27, 154, 0.3);
  animation: twinkle 1.5s infinite alternate;
}
@keyframes twinkle { from { opacity: 0.3; transform: scale(0.8); } to { opacity: 1; transform: scale(1.2); } }

/* الفورم الزجاجي المشترك */
.login-container, .forgot-container, .reset-container, .verify-container {
  width: 90%; max-width: 420px; margin: 60px auto; padding: 40px 30px;
  background-color: rgba(255, 255, 255, 0.06); border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1); z-index: 2; position: relative; box-sizing: border-box;
}

h2 { text-align: center; margin-bottom: 30px; color: var(--brand-gold, #facc15); font-weight: 900; letter-spacing: 1px; }

/* الحقول والنصوص */
.input-group { position: relative; margin: 25px 0; width: 100%; animation: slideIn 0.6s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.input-group input {
  width: 100%; box-sizing: border-box; height: 50px; padding: 14px 45px 14px 40px; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; background: rgba(0, 0, 0, 0.2);
  color: #fff; outline: none; transition: all 0.3s ease; font-family: 'Tajawal', sans-serif;
}
.input-group input:focus { border-color: var(--brand-gold, #facc15); box-shadow: 0 0 10px rgba(250, 204, 21, 0.2); }

.input-group label {
  position: absolute; top: 50%; right: 45px; transform: translateY(-50%); padding: 0 5px;
  color: #cbd5e1; font-size: 15px; pointer-events: none; transition: 0.3s ease all;
}
.input-group input:focus + label, .input-group input:valid + label {
  top: 0; right: 35px; font-size: 13px; color: var(--brand-gold, #facc15); background-color: #3b1554; border-radius: 4px; padding: 2px 8px;
}

/* الأيقونات */
.icon { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: #ba68c8; font-size: 18px; }
.toggle-password { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; font-size: 16px; transition: 0.3s; }
.toggle-password:hover { color: #fff; }

/* الأزرار والروابط */
button[type="submit"] {
  width: 100%; padding: 14px; background: linear-gradient(45deg, var(--brand-pink, #f43f5e), #e11d48); border: none; color: white;
  border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: bold; font-family: 'Tajawal', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(225, 29, 72, 0.4); }

.google-btn {
  width: 100%; padding: 12px; background-color: #ffffff; color: #333; border: none; border-radius: 8px;
  cursor: pointer; font-size: 15px; font-weight: bold; font-family: 'Tajawal', sans-serif; display: flex; align-items: center; justify-content: center; transition: background 0.3s;
}
.google-btn:hover { background-color: #f1f5f9; }

hr { margin: 25px 0; border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.links-group { text-align: center; margin-top: 20px; font-size: 14px; color: #cbd5e1; }
.links-group a { color: var(--brand-gold, #facc15); text-decoration: none; font-weight: bold; }
.links-group a:hover { text-decoration: underline; }

/* خاص بصفحة الرمز (OTP) فقط */
.otp-inputs { display: flex; justify-content: space-between; margin: 30px 0; direction: ltr; }
.field-box {
  width: 45px; height: 55px; font-size: 24px; text-align: center; background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: #fff; font-weight: bold; transition: 0.3s;
}
.field-box:focus { border-color: var(--brand-gold, #facc15); box-shadow: 0 0 10px rgba(250, 204, 21, 0.3); outline: none; }