
    body {
      font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      min-height: 100vh;
      min-height: 100dvh;
      overflow-x: hidden;
      overflow-y: auto;
      background:
        radial-gradient(1200px 700px at 10% 20%, rgba(22,182,176,.10), transparent 55%),
        radial-gradient(900px 600px at 85% 30%, rgba(59,130,246,.10), transparent 55%),
        radial-gradient(900px 700px at 40% 95%, rgba(148,163,184,.10), transparent 60%),
        linear-gradient(180deg, #f8fafc, #eef2f7);
      color: #1F2937;
    }
    body:not(.cq-light) {
      background:
        radial-gradient(1200px 700px at 10% 20%, rgba(22,182,176,.10), transparent 55%),
        radial-gradient(900px 600px at 85% 30%, rgba(59,130,246,.10), transparent 55%),
        radial-gradient(900px 700px at 40% 95%, rgba(148,163,184,.10), transparent 60%),
        linear-gradient(180deg, #f8fafc, #eef2f7);
      color: #1F2937;
    }
    #bg-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }
    .login-wrapper {
      position: relative;
      z-index: 10;
      width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 24px 16px;
    }
    .login-box {
      background: rgba(255, 255, 255, 0.96) !important;
      backdrop-filter: blur(30px) saturate(150%) !important;
      -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
      border: 2px solid rgba(148, 163, 184, 0.22) !important;
      box-shadow: 0 8px 32px rgba(2,6,23,0.08), 0 0 50px rgba(22,182,176,0.08), 0 0 0 1px rgba(255,255,255,0.96) inset !important;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      max-width: 420px;
      width: min(100%, 420px);
      padding: 40px;
      border-radius: 24px;
      position: relative;
    }
    .login-box:hover {
      box-shadow: 0 8px 32px rgba(2,6,23,0.12), 0 0 70px rgba(22,182,176,0.12), 0 0 0 1px rgba(255,255,255,0.98) inset !important;
      transform: translateY(-8px) scale(1.02);
    }
    .login-box::before {
      content: '';
      position: absolute;
      top: -2px;
      left: 12px;
      right: 12px;
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg,#16B6B0,#55D6C2,#16B6B0);
      filter: drop-shadow(0 0 12px rgba(22,182,176,0.6));
    }
    .login-box::after {
      content: '';
      position: absolute;
      inset: -8px;
      border-radius: 30px;
      background: radial-gradient(closest-side, rgba(22,182,176,0.10), transparent 70%);
      z-index: -1;
    }
    .login-box img {
      animation: logoFloat 3s ease-in-out infinite;
      filter: drop-shadow(0 0 15px rgba(22, 182, 176, 0.4));
      transition: transform 0.3s ease;
    }
    .login-box img:hover {
      transform: scale(1.1) rotate(5deg);
    }
    @media (max-width: 640px), (max-height: 760px) {
      .login-wrapper {
        align-items: flex-start;
        padding: 18px 12px 28px;
      }
      .login-box {
        width: 100%;
        padding: 24px 18px;
        border-radius: 20px;
      }
      .login-box:hover {
        transform: none;
      }
    }
    @keyframes logoFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-12px); }
    }
    .form-control {
      background: #ffffff !important;
      border: 1px solid rgba(148, 163, 184, 0.28) !important;
      color: #1F2937 !important;
      transition: all 0.3s ease;
      border-radius: 12px;
    }
    .form-control:focus {
      border-color: rgba(22, 182, 176, 0.5) !important;
      box-shadow: 0 0 0 3px rgba(22, 182, 176, 0.1), 0 0 20px rgba(22, 182, 176, 0.15) !important;
      transform: translateY(-2px);
      outline: none;
    }
    .form-control::placeholder { color: #94a3b8; }
    .btn-primary {
      position: relative;
      overflow: hidden;
      background: #16B6B0 !important;
      border: none !important;
      box-shadow: 0 4px 15px rgba(22, 182, 176, 0.4);
      transition: all 0.3s ease;
      color: #ffffff;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 25px rgba(22, 182, 176, 0.6);
      background: #0FA7A1 !important;
    }
    .btn-primary::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }
    .btn-primary:active::before {
      width: 300px;
      height: 300px;
    }
    html[dir="rtl"] .login-box .eye-icon { left: 12px !important; right: auto !important; }
    html[dir="rtl"] .login-box #emp-pass { padding-left: 44px !important; padding-right: 12px !important; }
    html[dir="ltr"] .login-box .eye-icon { right: 12px !important; left: auto !important; }
    html[dir="ltr"] .login-box #emp-pass { padding-right: 44px !important; padding-left: 12px !important; }
    .eye-icon {
      cursor: pointer;
      transition: all 0.3s ease;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      color: #9ca3af;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: auto;
      z-index: 2;
    }
    .eye-icon:hover {
      transform: translateY(-50%) scale(1.1);
      filter: drop-shadow(0 0 5px rgba(22, 182, 176, 0.6));
    }
    #toggle-pass { left: 12px !important; right: auto !important; }
    #emp-pass { padding-left: 44px !important; padding-right: 12px !important; }
    .forgot-password-link {
      display: inline-block;
      margin-top: 10px;
      font-size: 0.85rem;
      color: #6B7280;
      text-decoration: none;
      transition: all 0.3s ease;
      position: relative;
    }
    .forgot-password-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 2px;
      background: linear-gradient(90deg, #16B6B0, #55D6C2);
      transition: width 0.3s ease;
    }
    .forgot-password-link:hover {
      color: #16B6B0;
    }
    .forgot-password-link:hover::after {
      width: 100%;
    }
    .login-box > div:last-child button {
      transition: all 0.3s ease;
      padding: 5px 12px;
      border-radius: 8px;
    }
    .login-box > div:last-child button:hover {
      background: rgba(22, 182, 176, 0.1);
      color: #16B6B0 !important;
      transform: translateY(-2px);
    }
    .password-hint {
      position: absolute;
      top: -35px;
      right: 10px;
      background: rgba(255, 255, 255, 0.96);
      color: #334155;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 0.75rem;
      display: none;
      white-space: nowrap;
      border: 1px solid rgba(148, 163, 184, 0.22);
      box-shadow: 0 4px 12px rgba(2,6,23,0.1);
    }
    .success-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      backdrop-filter: blur(10px);
    }
    .success-message-box {
      background: linear-gradient(135deg, #16B6B0 0%, #55D6C2 100%);
      padding: 50px 70px;
      border-radius: 24px;
      text-align: center;
      box-shadow: 0 25px 70px rgba(22, 182, 176, 0.4), 0 0 100px rgba(22, 182, 176, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.2);
    }
    .login-toast {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.45);
      backdrop-filter: blur(6px);
      font-weight: 600;
    }
    .login-toast.success { background: rgba(34,197,94,0.95); color:#fff; }
    .login-toast.error { background: rgba(239,68,68,0.95); color:#fff; }
    .login-toast .icon {
      width: 26px; height: 26px;
      display: flex; align-items: center; justify-content: center;
      background: transparent; border-radius: 0;
    }
    @media (max-width: 480px) {
      .login-box { max-width: 94vw; padding: 22px; border-radius: 18px; }
      .btn-primary { font-size: 0.95rem; }
    }
    @media (max-height: 600px) {
      .login-box { padding: clamp(16px, 4vh, 28px); }
    }

/* CMP-03 login utility fallback */
.w-full { width: 100%; }
.block { display: block; }
.relative { position: relative; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }

.space-y-4 > * + * { margin-top: 1rem; }

.rounded { border-radius: .5rem; }

.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }

.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-sky-300 { color: #7dd3fc; }
.text-sky-200 { color: #bae6fd; }
.text-gray-800 { color: #1f2937; }
.bg-gray-100 { background: #f3f4f6; }

body.cq-light .text-slate-200,
body.cq-light .text-slate-300 { color: #64748b; }

body.cq-light .text-sky-300 { color: #0891b2; }


/* CMP-03 login final layout fix */
.login-box,
.login-box * {
  box-sizing: border-box;
}

#login-form .relative {
  width: 100%;
}

#login-form .form-control {
  width: 100%;
  max-width: 100%;
}

#help-toggle,
#lang-ar,
#lang-en {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  padding: 7px 12px;
  line-height: 1.2;
}

#lang-ar,
#lang-en {
  background: rgba(255, 255, 255, 0.88);
  color: #0f766e;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
}

#help-toggle:hover,
#lang-ar:hover,
#lang-en:hover {
  background: rgba(20, 184, 166, 0.08) !important;
  border-color: rgba(20, 184, 166, 0.35) !important;
}



/* CMP-03 password eye + help final fix */
html[dir="rtl"] #toggle-pass {
  right: 12px !important;
  left: auto !important;
}

html[dir="rtl"] #emp-pass {
  padding-right: 44px !important;
  padding-left: 12px !important;
}

html[dir="ltr"] #toggle-pass {
  right: 12px !important;
  left: auto !important;
}

html[dir="ltr"] #emp-pass {
  padding-right: 44px !important;
  padding-left: 12px !important;
}

#help-toggle {
  min-width: 92px;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-weight: 600;
}


/* CMP-03 login wrapper viewport fix */
.login-wrapper {
  box-sizing: border-box;
}

/* CMP-03 login: Support Modal isolation */
/* #support-modal is fixed and never takes document flow space when closed */
#support-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  margin: 0;
  padding: 0;
}

#support-modal[style*="display: flex"] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* style-site.css adds body bottom padding for in-flow footers; on login the
   footer is position:fixed so the padding only widens the vertical scroll. */
body {
  padding-bottom: 0 !important;
}

#support-modal,
#support-modal * {
  box-sizing: border-box;
}

/* CMP-03 password eye RTL/LTR final fix */
html[dir="rtl"] .login-box #toggle-pass {
  left: 12px !important;
  right: auto !important;
}

html[dir="rtl"] .login-box #emp-pass {
  padding-left: 44px !important;
  padding-right: 12px !important;
  text-align: right;
}

html[dir="ltr"] .login-box #toggle-pass {
  right: 12px !important;
  left: auto !important;
}

html[dir="ltr"] .login-box #emp-pass {
  padding-right: 44px !important;
  padding-left: 12px !important;
  text-align: left;
}

