* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.erp-modern-login {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #07111f;
  overflow-x: hidden;
}

.erp-modern-login.login-page {
  background: #07111f !important;
}

.animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.30), transparent 32%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.25), transparent 35%),
    linear-gradient(135deg, #020617 0%, #0f172a 42%, #064e3b 100%);
}

.animated-bg:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.45;
}

.shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.65;
  animation: floatShape 12s infinite ease-in-out;
}

.shape-1 {
  width: 170px;
  height: 170px;
  left: 8%;
  top: 12%;
  background: rgba(34, 197, 94, 0.32);
  animation-delay: 0s;
}

.shape-2 {
  width: 110px;
  height: 110px;
  right: 14%;
  top: 16%;
  background: rgba(14, 165, 233, 0.28);
  animation-delay: 2s;
}

.shape-3 {
  width: 220px;
  height: 220px;
  left: 20%;
  bottom: 8%;
  background: rgba(16, 185, 129, 0.22);
  animation-delay: 4s;
}

.shape-4 {
  width: 140px;
  height: 140px;
  right: 8%;
  bottom: 18%;
  background: rgba(132, 204, 22, 0.20);
  animation-delay: 6s;
}

.shape-5 {
  width: 90px;
  height: 90px;
  left: 50%;
  top: 8%;
  background: rgba(255, 255, 255, 0.16);
  animation-delay: 8s;
}

@keyframes floatShape {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(22px, -28px, 0) scale(1.08);
  }

  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.erp-login-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 35px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-login-container {
  width: 1080px;
  max-width: 100%;
  min-height: 620px;
  display: flex;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.erp-login-left {
  width: 52%;
  padding: 55px;
  color: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.erp-login-left:after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -160px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
}

.erp-left-content {
  position: relative;
  z-index: 2;
}

.erp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  margin-bottom: 28px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(187, 247, 208, 0.22);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.erp-login-left h1 {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
}

.erp-login-left p {
  max-width: 520px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.erp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 470px;
}

.erp-feature-item {
  min-height: 72px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  gap: 13px;
  transition: 0.25s ease;
}

.erp-feature-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.15);
}

.erp-feature-item i {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  font-size: 17px;
}

.erp-feature-item span {
  font-size: 15px;
  font-weight: 650;
}

.erp-login-right {
  width: 48%;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* AdminLTE old box override */
.login-box {
  width: auto;
  margin: 0;
}

.login-box-body {
  background: transparent;
  padding: 0;
  border-top: none;
}

.erp-login-card {
  width: 100%;
  max-width: 420px;
  padding: 38px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
  animation: cardFadeIn 0.7s ease both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.erp-logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.erp-logo-area img {
  max-width: 300px;
  max-height: 120px;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.erp-login-heading {
  text-align: center;
  margin-bottom: 26px;
}

.erp-login-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.erp-login-heading p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.erp-alert {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 14px;
}

.erp-alert i {
  margin-right: 6px;
}

.erp-alert-danger {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.erp-alert-success {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.erp-input-group {
  margin-bottom: 18px;
}

.erp-input-group label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.erp-input-box {
  position: relative;
}

.erp-input-box .form-control {
  height: 50px;
  padding: 12px 44px 12px 15px;
  border-radius: 14px;
  border: 1px solid #dbe4ee;
  color: #0f172a;
  background: #f8fafc;
  font-size: 14px;
  box-shadow: none;
  transition: 0.25s ease;
}

.erp-input-box .form-control:focus {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.erp-input-box span {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
}

.erp-login-btn {
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px !important;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.30);
  transition: 0.25s ease;
}

.erp-login-btn:hover,
.erp-login-btn:focus,
.erp-login-btn:active {
  color: #ffffff;
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.38);
}

.erp-login-btn i {
  margin-right: 6px;
}

.erp-login-links {
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.erp-login-links a {
  color: #15803d;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.erp-login-links a:hover {
  color: #166534;
  text-decoration: underline;
}

.erp-version {
  margin-top: 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-style: italic;
}

.erp-demo-box {
  width: 100%;
  max-width: 420px;
  margin-top: 18px;
  padding: 16px;
  color: #334155;
  border-radius: 18px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.erp-demo-box label {
  color: #0f172a;
}

.erp-demo-box table {
  margin-bottom: 8px;
}

@media (max-width: 991px) {
  .erp-login-container {
    min-height: auto;
    display: block;
  }

  .erp-login-left {
    width: 100%;
    min-height: 360px;
    padding: 42px;
  }

  .erp-login-right {
    width: 100%;
    padding: 35px 22px 42px;
  }

  .erp-login-left h1 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .erp-login-page {
    padding: 18px 12px;
  }

  .erp-login-container {
    border-radius: 24px;
  }

  .erp-login-left {
    display: none;
  }

  .erp-login-right {
    padding: 18px;
  }

  .erp-login-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .erp-logo-area img {
    max-width: 210px;
  }

  .erp-login-heading h2 {
    font-size: 24px;
  }

  .erp-login-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4,
  .shape-5 {
    opacity: 0.38;
  }
}