/* ====== الأساسيات ====== */
body {
  font-family: "Arial", sans-serif;
  background: #f4f6fb;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ====== الكونتينر ====== */
.container {
  display: flex;
  flex-direction: column;
  /* افتراضي: فوق بعض */
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding-top: 10px;
  /* ✅ مسافة ثابتة من فوق */
}

.hero-card {
  width: 390px;
  padding: 2rem;
  border-radius: 20px;
  color: white;
  text-align: center;
  overflow: hidden;

  background:
    linear-gradient(120deg, #01081a, #12275d, #00022b, #052141),
    linear-gradient(240deg, #08183d, #05042d, #070a51, #000a20);
  background-size: 400% 400%;
  background-blend-mode: screen;
  /* يعطي تداخل ألوان أفضل */
  animation: swirlMore 8s ease-in-out infinite;
}

@keyframes swirlMore {
  0% {
    background-position: 0% 0%, 100% 100%;
  }

  25% {
    background-position: 50% 100%, 50% 0%;
  }

  50% {
    background-position: 100% 0%, 0% 100%;
  }

  75% {
    background-position: 50% 0%, 50% 100%;
  }

  100% {
    background-position: 0% 0%, 100% 100%;
  }
}

.hero-card .logo {
  height: 90px;
  width: 150px;
  margin-bottom: 1.5px;
}

.hero-card .welcome {
  display: inline-block;
  padding: 1.5px 10px;
  border-radius: 8px;
  font-weight: bold;
}

/* ====== الاوث كارد ====== */
.auth-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  width: 400px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

/* ====== التابز ====== */
.tabs {
  display: flex;
  justify-content: space-around;
  background: #f1f3f7;
  padding: 5px;
  border-radius: 25px;
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  border-radius: 20px;
}

.tab.active {
  background: white;
  color: #0a2a73;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ====== الفورم ====== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form label {
  font-size: 14px;
  color: #333;
}

.form input,
.form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* ====== الباسوورد ====== */
.password-box {
  position: relative;
}

.password-box input {
  width: 76%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding-right: 84px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.password-box .show {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #0a2a73;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.password-box .show:focus-visible {
  outline: 2px solid #0a2a73;
  border-radius: 6px;
}

.password-box .show:hover {
  text-decoration: underline;
}

/* تعليمات الباسوورد */
.password-rules {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-top: -6px;
  margin-bottom: 8px;
  text-align: left;
}

/* ====== عناصر إضافية ====== */
.primary {
  padding: 12px;
  background: #0a2a73;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.primary:hover {
  background: #094090;
}

.hidden {
  display: none;
}

.msg {
  font-size: 14px;
  text-align: center;
}

.remember-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.resend-box {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #444;
}

.resend-box button {
  background: none;
  border: none;
  color: #0a2a73;
  font-weight: bold;
  cursor: pointer;
}

.resend-box button:disabled {
  color: #aaa;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.col label {
  margin-bottom: 5px;
  font-weight: bold;
}

#forgot-link {
  display: block;
  text-align: center;
  color: #0056b3;
  font-size: 14px;
  text-decoration: none;
  margin: 10px 0;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

#forgot-link:hover {
  color: #003366;
  text-decoration: underline;
}

/* ====== للشاشات الكبيرة (لابتوب) ====== */
@media (min-width: 1024px) {
  body {
    align-items: flex-start;
    /* يبدأ من فوق */
  }

  .container {
    flex-direction: row;
    /* جنب بعض */
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    padding-top: 80px;
    margin-top: 50px;
    margin-bottom: 50px;
    /* نفس المسافة من فوق */
  }

  .hero-card {
    width: 400px;
    padding: 9rem;
    text-align: left;
  }

  .hero-card .logo {
    height: 150px;
    width: 200px;
    margin-bottom: 1.5px;
    margin-left: 100px;
  }

  .hero-text h2 {
    margin-left: 100px;
    font-size: 2rem;
  }

  .hero-text.welcome {
    margin-left: 110px;
  }

  .auth-card {
    width: 420px;
  }

}

@media (min-width: 1024px) {
  .hero-card {
    width: 400px;
    padding: 9rem;
    text-align: center;
    /* نخلي النصوص بالنص */
  }

  .hero-card .logo {
    height: 150px;
    width: 200px;
    margin: 0 auto 12px;
    /* يظل بالنص */
  }

  .hero-text h2 {
    margin: 0 auto;
    /* نخلي العنوان بالنص */
    font-size: 2rem;
    text-align: center;
    /* تأكيد */
  }

  .hero-text .welcome {
    margin: 4px 0 0;
    text-align: center;
  }
}

.hero-text h2 {
  margin: 0 0 20px;
  /* ✅ يخلي فيه فراغ 20px تحت العنوان */
  font-size: 2rem;
  text-align: center;
}

/* ✅ خلي جميع اللّيبلز (First name, Email, Password ...) نفس اللون والشكل */
.form label {
  color: #333;
  /* نفس لون Email و Password */
  font-size: 14px;
  /* نفس الحجم */
  font-weight: bold;
  /* يخلي النص واضح */
}



/* ====== تصغير الكاردات على الجوال ====== */
@media (max-width: 1023px) {

  .container {
    margin-top: 20px;
    margin-bottom: 20px;
    /* نفس المسافة من فوق */
  }
  
  .hero-card {
    width: 320px;
    /* أصغر عرض للهيرو كارد */
    padding: 1.5rem;
    /* تصغير البادينغ */
  }

  .auth-card {
    width: 320px;
    /* أصغر عرض للأوث كارد */
    padding: 1.5rem;
    /* تصغير البادينغ */
  }
}

/* 🎯 توحيد حجم الحقول في Login */
.form input[type="email"],
.form input[type="password"] {
  width: 100% !important;
  /* ياخذ نفس عرض المربع */
  box-sizing: border-box;
  /* يراعي البادينغ */
}

/* ✅ تعديل password-box بحيث ما يصير أصغر من الباقي */
.password-box {
  position: relative;
  width: 100% !important;
  /* نفس عرض حقول Login */
}

.password-box input {
  width: 100% !important;
  padding-right: 70px;
  /* مساحة لزر show */
  box-sizing: border-box;
}

.password-box .show {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* 🎯 حقول Sign Up كلها نفس الحجم داخل المربع الأبيض */
#form-signup .row {
  display: flex;
  gap: 12px;
}

#form-signup .col {
  flex: 1;
}

#form-signup input,
#form-signup select {
  width: 100% !important;
  box-sizing: border-box;
}

#msg-up {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
  transition: opacity 1.5s ease, filter 1.5s ease, transform 1.5s ease;
}

#msg-up.fade-out {
  opacity: 0;
  filter: blur(5px);
  transform: scale(0.95);
}