
    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); }
    }
