/* Bharat ERPs — Login Page */
.login-page {
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: #1a2332;
  background: #00152e;
  overflow-x: hidden;
}

.login-page__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(59, 130, 246, 0.12), transparent 50%),
    linear-gradient(145deg, #00152e 0%, #002147 45%, #0a2a4a 100%);
}

.login-page__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
}

.login-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: loginFloat 8s ease-in-out infinite;
}

.login-page__orb--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: rgba(212, 175, 55, 0.28);
}

.login-page__orb--2 {
  width: 260px;
  height: 260px;
  bottom: 10%;
  right: 8%;
  background: rgba(56, 189, 248, 0.16);
  animation-delay: -3s;
}

.login-page__orb--3 {
  width: 180px;
  height: 180px;
  top: 42%;
  left: 38%;
  background: rgba(212, 175, 55, 0.14);
  animation-delay: -5s;
}

@keyframes loginFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* Left showcase */
.login-showcase {
  display: flex;
  align-items: center;
  padding: 48px 56px;
  color: #fff;
}

.login-showcase__inner {
  max-width: 560px;
  animation: loginFadeUp .7s ease both;
}

.login-showcase__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.login-showcase__logo {
  width: auto;
  max-width: 180px;
  height: 56px;
  object-fit: contain;
}

.login-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d78c;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.login-showcase__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.login-showcase__text {
  margin: 0 0 28px;
  max-width: 480px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.login-showcase__features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.login-showcase__features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease;
}

.login-showcase__features li:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.09);
}

.login-showcase__feature-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0d78c, #d4af37);
  color: #00152e;
  font-size: 16px;
}

.login-showcase__features strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.login-showcase__features span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}

.login-showcase__stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-showcase__stats strong {
  display: block;
  font-size: 24px;
  color: #f0d78c;
  line-height: 1.1;
}

.login-showcase__stats span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Right panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 40px 32px 20px;
}

.login-panel__card {
  width: 100%;
  max-width: 440px;
  padding: 36px 34px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  animation: loginFadeUp .7s ease .12s both;
}

.login-panel__head {
  margin-bottom: 24px;
}

.login-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
}

.login-panel__head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #002147;
}

.login-panel__head p {
  margin: 0;
  font-size: 14px;
  color: rgba(0, 33, 71, 0.62);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.login-alert--error {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.login-alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field__label {
  font-size: 13px;
  font-weight: 700;
  color: #002147;
}

.login-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-field__icon {
  position: absolute;
  left: 14px;
  color: rgba(0, 33, 71, 0.42);
  font-size: 15px;
  pointer-events: none;
}

.login-field__wrap input {
  width: 100%;
  border: 1.5px solid rgba(0, 33, 71, 0.12);
  border-radius: 14px;
  padding: 14px 44px 14px 42px;
  font-size: 15px;
  font-family: inherit;
  color: #1a2332;
  background: #f8fafc;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-field__wrap input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.login-field__wrap input::placeholder {
  color: rgba(0, 33, 71, 0.38);
}

.login-field__toggle {
  position: absolute;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(0, 33, 71, 0.45);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.login-field__toggle:hover {
  color: #002147;
  background: rgba(0, 33, 71, 0.06);
}

.login-submit {
  margin-top: 4px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #d4af37 0%, #b8942e 55%, #002147 140%);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.42);
  filter: brightness(1.03);
}

.login-submit:active {
  transform: translateY(0);
}

.login-demo {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed rgba(0, 33, 71, 0.14);
}

.login-demo__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 33, 71, 0.55);
}

.login-demo__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.login-demo__chip {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(0, 33, 71, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.login-demo__chip strong {
  font-size: 12px;
  color: #002147;
}

.login-demo__chip span {
  font-size: 10px;
  color: rgba(0, 33, 71, 0.55);
  word-break: break-all;
}

.login-demo__chip:hover,
.login-demo__chip.is-active {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-1px);
}

.login-panel__footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(0, 33, 71, 0.48);
}

.login-panel__footer strong {
  color: #002147;
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    padding: 36px 28px 12px;
  }

  .login-showcase__stats {
    gap: 18px;
  }

  .login-panel {
    padding: 8px 20px 32px;
  }
}

@media (max-width: 768px) {
  .login-showcase__features {
    display: grid;
    gap: 10px;
  }

  .login-showcase__features li {
    padding: 12px 14px;
  }

  .login-showcase__stats {
    display: flex;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .login-showcase {
    padding: 28px 18px 8px;
  }

  .login-showcase__title {
    font-size: 1.75rem;
  }

  .login-showcase__features,
  .login-showcase__stats {
    display: none;
  }

  .login-panel__card {
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .login-panel {
    padding: 8px 16px max(28px, env(safe-area-inset-bottom));
  }

  .login-field__wrap input {
    font-size: 16px;
  }

  .login-demo__chips {
    grid-template-columns: 1fr;
  }
}
