/* ============================================================
   login.css — صفحة تسجيل الدخول
   ============================================================ */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* ---- خلفية متحركة ---- */
.login-bg { position: fixed; inset: 0; pointer-events: none; }

.login-bg__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: floatShape 8s ease-in-out infinite;
}

.login-bg__shape--1 {
  width: 500px; height: 500px;
  background: #1e40af;
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.login-bg__shape--2 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  bottom: -150px; left: -100px;
  animation-delay: 3s;
}
.login-bg__shape--3 {
  width: 300px; height: 300px;
  background: #06b6d4;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 5s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

/* ---- المحتوى ---- */
.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- رأس تسجيل الدخول ---- */
.login-header { text-align: center; }

/* ── اللوجو: صورة مباشرة بلا خلفية ── */
.login-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* حذفنا التدرّج والـ border-radius لإظهار شفافية اللوجو */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 16px rgba(30,64,175,.35));
}

.login-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 0;
}

.login-logo__fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #3b82f6;
}

.login-title {
  font-size: 22px;
  font-weight: 900;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* ---- بطاقة النموذج ---- */
.login-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.login-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* تخصيص الحقول داخل البطاقة الداكنة */
.login-card .form-label { color: #94a3b8; }

.login-card .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #f1f5f9;
}
.login-card .form-control::placeholder { color: #475569; }
.login-card .form-control:focus {
  background: rgba(255,255,255,.09);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.2);
}

.login-card .input-toggle-pass { color: #475569; }
.login-card .input-toggle-pass:hover { color: var(--primary-light); }

.login-card .checkbox-label { color: #64748b; }
.login-card .checkbox-custom { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); }

/* ---- صف تذكرني + نسيت كلمة المرور ---- */
.form-group--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* رابط نسيت كلمة المرور */
.forgot-link {
  font-size: 13px;
  color: #60a5fa;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
  white-space: nowrap;
}
.forgot-link:hover { color: #93c5fd; text-decoration: underline; }
.forgot-link i { font-size: 11px; }

/* ---- تذييل صفحة تسجيل الدخول ---- */
.login-footer {
  text-align: center;
  font-size: 12px;
  color: #334155;
  line-height: 1.8;
}
.login-footer__version { color: #1e293b; margin-top: 4px; }

/* ---- صفحات نسيت / إعادة تعيين كلمة المرور ---- */
.reset-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e40af, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(30,64,175,.4);
}

.reset-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  margin-top: 16px;
  transition: color .2s;
}
.reset-back-link:hover { color: #94a3b8; }

.password-strength {
  margin-top: 6px;
}
.password-strength__bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 4px;
}
.password-strength__fill {
  height: 100%;
  border-radius: 99px;
  transition: width .3s, background .3s;
  width: 0%;
  background: #ef4444;
}
.password-strength__fill.weak   { width: 33%; background: #ef4444; }
.password-strength__fill.medium { width: 66%; background: #f59e0b; }
.password-strength__fill.strong { width: 100%; background: #22c55e; }
.password-strength__text {
  font-size: 11px;
  color: #64748b;
}