
@font-face {
  font-family: 'IPACCTFONT';
  src: url('/css/ipacct.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

.font-ipacct { font-family: 'IPACCTFONT', sans-serif; }


/* ── Card entry animation ── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.login-wrapper { animation: cardIn 0.38s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Floating glow blobs ── */
@keyframes blobFloat {
  0%,100% { transform: translateY(0)   scale(1);    }
  50%      { transform: translateY(-18px) scale(1.04); }
}
.blob { animation: blobFloat 7s ease-in-out infinite; }
.blob-2 { animation-delay: -3.5s; animation-duration: 9s; }

/* ════════════════════════════════════════════
   LEFT PANEL
════════════════════════════════════════════ */
.left-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1741b0 0%, #1a3a9c 35%, #0f2170 70%, #0a1550 100%);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Mesh overlay */
.left-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(99,179,237,0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(49,130,206,0.10) 0%, transparent 55%),
    radial-gradient(circle at 60% 10%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.logo-box {
  position: relative;
  width: 240px; height: 240px;
  border-radius: 28px;
  border: 1.5px solid rgba(255,255,255,0.20);
  overflow: hidden;
  padding: 0;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.40),
    0 4px 14px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  margin: 0 auto 24px;
}

.logo-box:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 22px 56px rgba(0,0,0,0.44),
    0 6px 20px rgba(59,130,246,0.38);
}

/* ✅ Image puri box fill karegi */
.logo-box img {
  width: 100% ;
  height: 100% ;
  object-fit: cover ;
  display: block;
  border-radius: 0;
  filter: none;
}

/* Shimmer ring upar se */
.logo-box::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 28px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.00) 50%,
    rgba(99,179,237,0.10)  100%);
  pointer-events: none;
  z-index: 1;
}


/* Grid lines */
.left-panel::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}



/* ── Brand name ── */
.brand-name {
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.brand-name .ip  {
  color: #033566;
  text-shadow: 0 0 30px rgba(147,210,255,0.4), 0 2px 8px rgba(0,0,0,0.3);
}
.brand-name .crm {
  color: #cc0202;
  text-shadow: 0 0 30px rgba(252,165,165,0.4), 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Divider ── */
.brand-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147,197,253,0.7), transparent);
  border-radius: 4px;
  margin: 14px auto;
}

/* ── Portal text ── */
.brand-portal {
  color: rgba(191,219,254,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}


/* ── Feature pills ── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 10px;
  color: rgba(191,219,254,0.7);
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.pill:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(219,234,254,0.9);
}
.pill i { font-size: 11px; }

/* ── Deco circles ── */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dc-1 { width:180px; height:180px; top:-60px; right:-60px; background:rgba(255,255,255,0.04); }
.dc-2 { width:220px; height:220px; bottom:-80px; left:-70px; background:rgba(255,255,255,0.03); }
.dc-3 { width: 80px; height: 80px; top:42%; right: 10px; background:rgba(255,255,255,0.03); }
.dc-4 { width: 50px; height: 50px; top:18%; left: 16px; background:rgba(147,197,253,0.06); }

/* ════════════════════════════════════════════
   RIGHT PANEL
════════════════════════════════════════════ */
.right-panel {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  position: relative;
}

/* Subtle top bar accent */
.right-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.15), transparent);
  border-radius: 0 0 4px 4px;
}

.form-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.form-subheading {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.tab-bar {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.tab-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  font-family: inherit;
  background: transparent;
  color: #64748b;
  letter-spacing: 0.01em;
}


.tab-btn.bg-white        { background-color: #ffffff; }
.tab-btn.text-blue-700   { color: #1d4ed8; }
.tab-btn.shadow-sm {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.10),
    0 1px 2px rgba(0,0,0,0.07);
}

.tab-btn.text-slate-500 {
  color: #64748b;
  background-color: transparent;
  box-shadow: none;
}

.tab-btn:not(.bg-white):hover {
  color: #475569;
  background: rgba(255,255,255,0.5);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
  text-align: center;
}

/* ── Form labels ── */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.inp {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  color: #1e293b;
  font-size: 14px;
  padding: 11px 14px 11px 40px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  font-family: inherit;
}
.inp::placeholder { color: #c4cdd6; }
.inp:hover  { border-color: #c7d2fe; background: #f8fafc; }
.inp:focus  {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: #ffffff;
}

.inp-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s;
}
.field-wrap:focus-within .inp-icon { color: #6366f1; }

.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  color: #94a3b8; padding: 0;
  transition: color 0.2s;
  line-height: 1;
}
.pw-toggle:hover { color: #475569; }

.forgot-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  margin-top: 7px;
  transition: color 0.2s;
}
.forgot-link:hover { color: #4338ca; text-decoration: underline; }

.btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #1d4ed8 100%);
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.3px;
  font-family: inherit;
  transition: all 0.22s ease;
  box-shadow:
    0 4px 15px rgba(79,70,229,0.35),
    0 1px 4px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 50%, #1e40af 100%);
  box-shadow:
    0 6px 20px rgba(79,70,229,0.45),
    0 2px 6px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: scale(0.98) translateY(0);
  box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}

.card-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #94a3b8;
}
.card-footer .ip   { font-weight: 800; color: #2563eb; font-size: 12px; }
.card-footer .acct { font-weight: 800; color: #ef4444; font-size: 12px; }

.lco-picker-wrap {
  background: linear-gradient(135deg, #f0f9ff, #eff6ff);
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.server-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px; color: #334155; font-weight: 600;
  transition: all 0.15s;
  margin-bottom: 6px;
}
.server-item:hover {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

#forgotModal { display: none; }
#forgotModal.flex {
  display: flex ;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%; max-width: 380px;
  padding: 32px;
  position: relative;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.3),
    0 0 0 1px rgba(0,0,0,0.04);
  animation: cardIn 0.25s cubic-bezier(0.22,1,0.36,1) both;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  border-radius: 50%; background: #f1f5f9;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #64748b;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #e2e8f0; color: #334155; }

/* ════════════════════════════════════════════
   AUTOFILL FIX
════════════════════════════════════════════ */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #f8fafc inset ;
  -webkit-text-fill-color: #1e293b ;
  caret-color: #1e293b;
}

#lcoServerList::-webkit-scrollbar       { width: 3px; }
#lcoServerList::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 4px; }
#lcoServerList::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }

@media (max-width: 767px) {
  .logo-box {
    width: 58px; height: 58px;
    border-radius: 14px;
    margin: 0; flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  .logo-box { width: 48px; height: 48px; border-radius: 12px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .left-panel  { padding: 28px 24px; }
  .right-panel { padding: 28px 32px; }
  .brand-name  { font-size: 2.8rem; }
}

@media (max-width: 767px) {
  .left-panel {
    padding: 20px 16px;
    flex-direction: row;
    text-align: left;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
  }
  .left-panel::after { display: none; }

  .logo-box {
    width: 52px; height: 52px;
    border-radius: 14px;
    margin: 0; flex-shrink: 0;
  }

  .brand-content { text-align: left; }
  .brand-name    { font-size: 1.9rem; }
  .brand-divider { display: none; }
  .brand-portal  { font-size: 9px; margin-bottom: 0; }
  .brand-tagline { display: none; }
  .feature-pills { display: none; }
  .deco-circle   { display: none; }

  .right-panel  { padding: 20px 18px 22px; }
  .right-panel::before { left: 18px; right: 18px; }

  .form-heading    { font-size: 18px; }
  .form-subheading { font-size: 12px; margin-bottom: 16px; }
  .tab-btn         { font-size: 11px; padding: 8px 6px; }
  .inp             { font-size: 13px; padding: 10px 12px 10px 38px; }
  .btn-submit      { font-size: 13px; padding: 11px; }
}

@media (max-width: 360px) {
  .left-panel  { padding: 14px 12px; }
  .right-panel { padding: 16px 14px 18px; }
  .brand-name  { font-size: 1.6rem; }
  .inp         { font-size: 12px; }
  .tab-btn     { font-size: 10px; }
}

@media (min-width: 1024px) {
  .login-card { min-height: 540px; }
}