:root {
  --green-brand: #059669;
  --brand: #059669;
  --brand-dark: #047857;
  --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --bg-main: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}
body.theme-sewing {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --green-brand: #2563eb;
  --green-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-main); color: var(--text); min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, h4, .stat-value { font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif; }
.hidden { display: none !important; }
.text-uppercase { text-transform: uppercase !important; letter-spacing: 0.4px; }

.login-wrapper {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; justify-content: center; align-items: stretch;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f0fdf4 82%, #e0f2fe 100%);
  overflow: hidden;
}
.login-bottom-gradient-wave {
  position: absolute; left: -10%; right: -10%; bottom: -40px; height: 56%;
  background: linear-gradient(115deg, rgba(16,185,129,0.09) 0%, rgba(56,189,248,0.15) 36%, rgba(5,150,105,0.1) 70%, rgba(14,165,233,0.13) 100%);
  background-size: 220% 220%; filter: blur(42px); pointer-events: none; z-index: 0;
  animation: loginLinearFlow 10s ease-in-out infinite alternate;
}
.login-bg-orb { position: absolute; border-radius: 50%; filter: blur(75px); opacity: 0.45; pointer-events: none; z-index: 0; animation: loginOrbFloat 11s ease-in-out infinite alternate; }
.login-bg-orb.orb-1 { width: 480px; height: 480px; background: #a7f3d0; bottom: -190px; left: 3%; }
.login-bg-orb.orb-2 { width: 460px; height: 460px; background: #bae6fd; bottom: -170px; right: 2%; animation-delay: -5s; }
.login-bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15,23,42,0.045) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none; z-index: 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,1) 100%);
}
.login-vector-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.login-vector-art { display: none; }
@media (min-width: 1280px) {
  .login-vector-art { display: block; position: absolute; top: 6%; right: 0; width: 57%; height: 83%; z-index: 0; opacity: .72; overflow: visible; pointer-events: none; }
}

.login-split-shell { position: relative; z-index: 1; width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; }
.login-main-row { flex: 1; display: grid; grid-template-columns: 1.42fr 0.85fr; align-items: center; gap: 42px; width: 100%; max-width: 1560px; margin: 0 auto; padding: 26px 38px 18px; }

.login-showcase-pane { display: flex; flex-direction: column; gap: clamp(14px, 1.35vw, 20px); animation: loginSlideRight 0.55s cubic-bezier(0.16,1,0.3,1); }
.login-brand-bar { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.login-logo-box { display: flex; align-items: center; justify-content: flex-start; color: #059669; font-size: 40px; height: clamp(68px, 5vw, 86px); flex-shrink: 0; }
.login-logo-box img { max-height: clamp(68px, 5vw, 86px); width: auto; max-width: 300px; object-fit: contain; display: block; }
.login-brand-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.login-brand-pills-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.login-tag-pill { display: inline-block; font-size: clamp(10px, 0.72vw, 11.5px); font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 3px 12px; border-radius: 20px; }
.login-erp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: clamp(10px, 0.72vw, 11.5px); font-weight: 800; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; padding: 3px 12px; border-radius: 20px; }
.login-hero-company { font-size: clamp(25px, 1.9vw, 33px); font-weight: 900; color: #0f172a; letter-spacing: -0.3px; text-transform: uppercase; line-height: 1.15; }
.login-comp-loc { font-size: clamp(12px, 0.85vw, 14px); font-weight: 600; color: #64748b; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.login-comp-loc i { color: #059669; font-size: 13px; }
.login-headline-block { max-width: 820px; width: 100%; }
.login-headline-block h2 { font-size: clamp(28px, 2.1vw, 37px); font-weight: 800; line-height: 1.2; color: #0f172a; margin-bottom: 8px; letter-spacing: -0.5px; }
.login-headline-block h2 span { background: linear-gradient(135deg, #059669 0%, #0284c7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-headline-block p { font-size: clamp(13.5px, 0.95vw, 15.5px); line-height: 1.6; color: #475569; font-weight: 500; }

.login-features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 0.9vw, 14px); max-width: 820px; width: 100%; }
.login-feat-card { display: flex; align-items: center; gap: 13px; padding: clamp(12px, 0.95vw, 16px) clamp(14px, 1.1vw, 18px); border-radius: 14px; background: rgba(255,255,255,0.92); border: 1.5px solid #e2e8f0; backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(15,23,42,0.03); transition: all 0.22s ease; animation: loginFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) backwards; animation-delay: var(--d, 0s); }
.login-feat-card:hover { background: #ffffff; border-color: #a7f3d0; transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(5,150,105,0.14); }
.lf-ico { width: clamp(40px, 3vw, 48px); height: clamp(40px, 3vw, 48px); border-radius: 12px; background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; display: flex; align-items: center; justify-content: center; font-size: clamp(16px, 1.1vw, 19px); flex-shrink: 0; }
.lf-ico.is-blue { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.lf-ico.is-amber { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.lf-ico.is-indigo { background: #eef2ff; color: #4f46e5; border-color: #c7d2fe; }
.lf-ico.is-rose { background: #fff1f2; color: #e11d48; border-color: #fecaca; }
.lf-ico.is-teal { background: #f0fdfa; color: #0d9488; border-color: #99f6e4; }
.login-feat-card b { display: block; font-size: clamp(13px, 0.92vw, 15px); font-weight: 800; color: #0f172a; }
.login-feat-card small { display: block; font-size: clamp(11.5px, 0.8vw, 13px); color: #64748b; margin-top: 2px; font-weight: 500; }

.login-workflow-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; max-width: 820px; width: 100%; padding: clamp(10px, 0.8vw, 13px) clamp(14px, 1vw, 17px); border-radius: 13px; background: rgba(255,255,255,0.9); border: 1.5px dashed #cbd5e1; }
.lw-step { display: inline-flex; align-items: center; gap: 7px; font-size: clamp(11.5px, 0.82vw, 13px); font-weight: 700; color: #1e293b; background: #f8fafc; border: 1px solid #e2e8f0; padding: 6px 12px; border-radius: 9px; }
.lw-step i { color: #059669; font-size: 12px; }
.lw-arrow { font-size: 10px; color: #94a3b8; }

.portal-help-banner { max-width: 820px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: clamp(14px, 1vw, 18px) clamp(16px, 1.2vw, 22px); border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(236,253,245,0.92) 100%); border: 1.5px solid #a7f3d0; box-shadow: 0 8px 22px -8px rgba(5,150,105,0.14); }
.phb-left { display: flex; align-items: center; gap: 14px; }
.phb-ico { width: 46px; height: 46px; border-radius: 12px; background: #059669; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.phb-left strong { display: block; font-size: clamp(13.5px, 0.95vw, 15px); font-weight: 800; color: #0f172a; }
.phb-left small { display: block; font-size: clamp(11.5px, 0.82vw, 13px); color: #475569; margin-top: 2px; }
.phb-phone { font-size: clamp(12.5px, 0.9vw, 14.5px); font-weight: 800; color: #047857; background: #fff; border: 1px solid #a7f3d0; padding: 8px 15px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; }

@property --login-border-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.login-form-pane { position: relative; display: flex; align-items: center; justify-content: center; }
.login-sports-watermark { display: none; }
@media (min-width: 1280px) {
  .login-sports-watermark { display: block; position: absolute; pointer-events: none; top: calc(100% - 58px); right: calc(50% - 240px); width: 600px; height: auto; color: #087e74; opacity: 0.16; }
}
.login-card {
  position: relative; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,0.97), rgba(255,255,255,0.97)) padding-box,
              conic-gradient(from var(--login-border-angle, 0deg), #10b981 0deg, #38bdf8 90deg, #059669 180deg, #34d399 270deg, #10b981 360deg) border-box;
  border: 2.2px solid transparent; backdrop-filter: blur(18px);
  width: 100%; max-width: 440px; padding: 28px 32px 24px; border-radius: 22px;
  box-shadow: 0 24px 55px -12px rgba(15,23,42,0.12), 0 0 24px rgba(16,185,129,0.12);
  animation: loginCardPop 0.45s cubic-bezier(0.16,1,0.3,1), loginBorderSpin 5.5s linear infinite;
}
.login-card.is-shake { animation: btnShake 0.36s ease-in-out, loginBorderSpin 5.5s linear infinite; box-shadow: 0 0 0 3px rgba(244,63,94,0.22); }
.login-card-top-badge { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid #f1f5f9; font-size: 11px; }
.login-card-top-badge span { font-weight: 800; color: #059669; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; }
.login-card-top-badge small { color: #64748b; font-weight: 600; }

.login-brand { text-align: center; margin-bottom: 20px; }
.brand-logo-circle { width: auto; max-width: 240px; height: 64px; background: transparent; border: none; color: var(--green-brand); display: inline-flex; justify-content: center; align-items: center; font-size: 30px; margin: 0 auto 10px; overflow: visible; box-shadow: none; }
.brand-logo-circle img { max-height: 64px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.mobile-comp-header { display: none; margin-bottom: 6px; }
.mobile-comp-header strong { display: block; font-size: 16px; font-weight: 800; color: #0f172a; text-transform: uppercase; }
.mobile-comp-header small { display: block; font-size: 10.5px; font-weight: 700; color: #059669; letter-spacing: 0.6px; }
.login-brand h2 { font-size: 21px; font-weight: 800; color: #0f172a; }
.login-brand p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.input-field { margin-bottom: 16px; }
.login-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.input-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #1e293b; }
.login-label-row label { margin-bottom: 0; }
.login-caps-warn { font-size: 10.5px; font-weight: 800; color: #d97706; background: #fffbeb; border: 1px solid #fde68a; padding: 1.5px 7px; border-radius: 5px; }
.input-icon-box { display: flex; align-items: center; border: 1.5px solid #cbd5e1; border-radius: 11px; padding: 0 13px; height: 45px; background: #ffffff; transition: all 0.18s ease; }
.input-icon-box:hover { border-color: #94a3b8; }
.input-icon-box:focus-within { border-color: var(--green-brand); box-shadow: 0 0 0 3.5px rgba(5,150,105,0.14); }
.input-icon-box i { color: #64748b; margin-right: 10px; font-size: 14px; }
.input-icon-box input { border: none; outline: none; width: 100%; height: 100%; font-size: 13.5px; font-weight: 600; color: #0f172a; background: transparent; }
.btn-pass-eye { background: none; border: none; color: #94a3b8; cursor: pointer; padding: 4px; font-size: 14px; display: inline-flex; align-items: center; transition: transform 0.15s ease, color 0.15s ease; }
.btn-pass-eye:hover { color: #0f172a; transform: scale(1.1); }
.btn-pass-eye:active { transform: scale(0.9); }
.btn-pass-eye i { margin-right: 0 !important; }
.err-box { background: #fff1f2; border: 1.2px solid #fecaca; color: #be123c; font-size: 12.5px; font-weight: 700; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.setup-info-box { background: #ecfdf5; border: 1.2px solid #a7f3d0; color: #065f46; font-size: 12px; font-weight: 600; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.setup-info-box i { color: #059669; margin-top: 2px; }
.save-pin-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 12px; flex-wrap: wrap; }
.save-pin-chk { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; color: #334155; user-select: none; }
.save-pin-chk input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.link-setup-btn { background: none; border: none; color: var(--brand); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 5px; transition: transform 0.15s ease, color 0.15s ease; }
.link-setup-btn:hover { color: var(--brand-dark); }
.link-setup-btn:active { transform: scale(0.96); }
.link-setup-btn:disabled { opacity: 0.7; cursor: wait; }

.btn-login { position: relative; overflow: hidden; width: 100%; height: 46px; background: var(--green-gradient); color: #fff; padding: 0 18px; border: none; border-radius: 11px; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 18px rgba(5,150,105,0.28); transition: all 0.2s cubic-bezier(0.16,1,0.3,1); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-login::before { content: ""; position: absolute; top: 0; left: -120%; width: 65%; height: 100%; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%); transform: skewX(-22deg); animation: boosterShimmer 3.8s infinite ease-in-out; }
.btn-login:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5,150,105,0.38); }
.btn-login:active:not(:disabled) { transform: scale(0.97); box-shadow: 0 4px 12px rgba(5,150,105,0.25); }
.btn-login:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-login.is-loading { opacity: 0.94; cursor: wait; box-shadow: 0 8px 22px rgba(5,150,105,0.35); }
.btn-login.is-loading::before { animation: boosterShimmer 1s infinite linear; }
.login-footer { margin-top: 20px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); border-top: 1px solid #f1f5f9; padding-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.login-footer small { font-size: 10.5px; color: #94a3b8; text-transform: uppercase; font-weight: 700; }

.login-global-footer { position: relative; z-index: 2; width: 100%; padding: 0; font-size: 11.5px; font-weight: 700; color: #334155; }
.login-global-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: repeating-linear-gradient(to right, rgba(100,116,139,0.42) 0 10px, transparent 10px 18px); }
.login-global-footer-inner { width: 100%; max-width: 1560px; margin: 0 auto; padding: 12px 38px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.login-gf-left { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.login-srv-pill, .login-live-clock-pill, .login-tech-pill { display: inline-flex; align-items: center; gap: 7px; color: #1e293b; }
.login-srv-pill, .login-tech-pill { padding-right: 16px; border-right: 1.5px solid rgba(100,116,139,0.28); }
.login-tech-pill i { color: #2563eb; }
.login-live-clock-pill i { color: #059669; }
.login-srv-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: dashPulse 1.8s infinite; }
.login-gf-copyright { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.login-gf-copyright span { font-size: 12px; font-weight: 700; color: #1e293b; }
.login-gf-copyright strong { color: #059669; font-weight: 800; text-transform: uppercase; }
.login-gf-copyright small { font-size: 10.5px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.3px; }
@media (min-width: 961px) and (max-width: 1750px) {
  .login-global-footer-inner { padding-right: 205px; }
}

@keyframes loginBorderSpin { to { --login-border-angle: 360deg; } }
@keyframes loginLinearFlow { 0% { background-position: 0% 50%; transform: translateY(0); } 100% { background-position: 100% 50%; transform: translateY(-14px); } }
@keyframes loginOrbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(26px, 22px) scale(1.08); } }
@keyframes loginSlideRight { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes loginFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loginCardPop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes boosterShimmer { 0% { left: -120%; } 45%, 100% { left: 160%; } }
@keyframes dashPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }
@keyframes btnShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

