/* =====================================================
   Future DZ - صفحة الدخول (وبقية صفحات التوثيق) + الفوتر
   بالتدرج الوردي/البنفسجي بأسلوب Hi TV
   يعتمد على المتغيرات في hitv-theme.css (مع قيم احتياطية)
   ===================================================== */
:root {
  --hp-pink: #ff4d94;
  --hp-violet: #9b5cff;
  --hp-grad: linear-gradient(135deg, #ff4d94 0%, #9b5cff 100%);
}

/* ================= صفحة الدخول ================= */
#login > .vh-100,
.auth-page-wrap { position: relative; isolation: isolate; }

/* طبقة تدرج داكنة وردية فوق صورة الخلفية */
#login > .vh-100::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(255, 77, 148, 0.30), transparent 70%),
    radial-gradient(700px 480px at 10% 95%, rgba(155, 92, 255, 0.32), transparent 70%),
    linear-gradient(180deg, rgba(14, 15, 22, 0.90), rgba(18, 14, 30, 0.94));
}

.user-login-card {
  position: relative;
  background: rgba(24, 26, 36, 0.84) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 28px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 90px rgba(155, 92, 255, 0.16);
  overflow: hidden;
}
/* شريط التدرج أعلى البطاقة */
.user-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--hp-grad);
}
.user-login-card .auth-heading h5 { font-weight: 800; line-height: 1.5; }
.user-login-card .auth-heading .logo { max-height: 48px; width: auto; }

/* الحقول بشكل كبسولة */
.user-login-card .input-group {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  padding: 2px 8px;
  margin-bottom: 1.1rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.user-login-card .input-group:focus-within {
  border-color: var(--hp-pink) !important;
  box-shadow: 0 0 0 4px rgba(255, 77, 148, 0.16);
}
.user-login-card .input-group .form-control,
.user-login-card .input-group .form-control:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit;
  padding-block: 0.7rem;
}
.user-login-card .input-group .input-group-text { color: var(--hp-pink); }
.user-login-card .input-group .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.user-login-card .invalid-feedback { padding-inline: 14px; }

/* الأزرار */
.user-login-card .btn-primary {
  border-radius: 999px !important;
  padding: 0.8rem 1rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(255, 77, 148, 0.35);
}
.user-login-card .btn-dark {
  border-radius: 999px !important;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: inherit !important;
}
.user-login-card .btn-dark:hover { border-color: var(--hp-pink) !important; }
.user-login-card a.btn-link,
.user-login-card .btn-link { color: var(--hp-pink); font-weight: 600; text-decoration: none; }
.user-login-card .btn-link:hover { color: #ff8fbd; }
.user-login-card .form-check-input:checked { background-color: var(--hp-pink); border-color: var(--hp-pink); }

/* فاصل "Or" */
.user-login-card .border-style { position: relative; text-align: center; margin: 1.25rem 0; }
.user-login-card .border-style::before {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 148, 0.55) 30%, rgba(155, 92, 255, 0.55) 70%, transparent);
}
.user-login-card .border-style span { position: relative; padding: 0 12px; background: rgb(28, 29, 40); border-radius: 999px; }

@media (max-width: 575.98px) {
  .user-login-card { padding: 1.75rem 1.25rem !important; border-radius: 24px !important; }
}

/* الوضع الفاتح لصفحة الدخول */
[data-bs-theme="light"] #login > .vh-100::before {
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(255, 77, 148, 0.22), transparent 70%),
    radial-gradient(700px 480px at 10% 95%, rgba(155, 92, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(250, 245, 252, 0.93), rgba(245, 240, 252, 0.95));
}
[data-bs-theme="light"] .user-login-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(20, 20, 40, 0.08) !important;
  color: #1d1f27;
  box-shadow: 0 24px 60px rgba(60, 30, 90, 0.18);
}
[data-bs-theme="light"] .user-login-card .logo { filter: brightness(0); }
[data-bs-theme="light"] .user-login-card .input-group { background: #f3f4f9; border-color: #dfe2ec !important; }
[data-bs-theme="light"] .user-login-card .input-group .form-control::placeholder { color: #8b8f9c; }
[data-bs-theme="light"] .user-login-card .btn-dark { background: #eef0f6 !important; border-color: #dfe2ec !important; }
[data-bs-theme="light"] .user-login-card .border-style span { background: #ffffff; }

/* ================= الفوتر ================= */
.footer {
  position: relative;
  margin-top: 2.5rem;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: #0d0f14;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 2;
  background: var(--hp-grad);
}
.footer .footer-top {
  background:
    radial-gradient(620px 240px at 8% 0%, rgba(255, 77, 148, 0.16), transparent 70%),
    radial-gradient(620px 240px at 100% 0%, rgba(155, 92, 255, 0.18), transparent 70%),
    #12141a;
}
.footer .footer-title {
  position: relative;
  padding-inline-start: 14px;
  font-weight: 800;
}
.footer .footer-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 4px;
  background: var(--hp-grad);
}
.footer .footer-border {
  background: linear-gradient(to bottom, transparent, rgba(255, 77, 148, 0.55), rgba(155, 92, 255, 0.55), transparent);
}
.footer .footer-menu > li a:before { color: var(--hp-pink); }
.footer .footer-menu > li a:hover,
.footer .footer-menu > li a:hover:before { color: var(--hp-pink); }

/* روابط الصفحات: شريط بحدود وردية خفيفة */
.footer .footer-menu.menu-horizontal {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 77, 148, 0.28) !important;
  border-radius: 20px !important;
}

/* أيقونات التواصل: دوائر بتدرج عند التمرير */
.footer .social-media li a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
}
.footer .social-media li a:hover {
  background: var(--hp-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 148, 0.4);
}
.footer .footer-top .link-body-emphasis:hover { color: var(--hp-pink) !important; }
.footer .app-icon img { border-radius: 10px; }

.footer .footer-bottom {
  background: #0d0f14;
  border-top-color: rgba(255, 77, 148, 0.18);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767.98px) {
  .footer { border-radius: 22px 22px 0 0; }
  .footer .footer-top { padding: 40px 0 50px; }
  .footer .footer-border { display: none; }
}

/* الوضع الفاتح للفوتر */
[data-bs-theme="light"] .footer { background: #ffffff; }
[data-bs-theme="light"] .footer .footer-top {
  background:
    radial-gradient(620px 240px at 8% 0%, rgba(255, 77, 148, 0.12), transparent 70%),
    radial-gradient(620px 240px at 100% 0%, rgba(155, 92, 255, 0.12), transparent 70%),
    #ffffff;
}
[data-bs-theme="light"] .footer .footer-bottom { background: #f5f6fa; color: #5b5f6d; border-top-color: #e3e5ec; }
[data-bs-theme="light"] .footer .footer-menu.menu-horizontal { background: #f5f6fa !important; border-color: #ffd0e2 !important; }
[data-bs-theme="light"] .footer .social-media li a { background: #eef0f6; color: #12141a; }
[data-bs-theme="light"] .footer .social-media li a:hover { color: #fff; }
