:root {
  --primary-900: #0c1929;
  --primary-800: #0f2744;
  --primary-700: #163a5f;
  --primary-600: #1e4d7b;
  --primary-500: #1d4ed8;
  --primary-400: #3b82f6;
  --accent: #60a5fa;
  --accent-light: #93bbfc;
  --accent-gold: #d4a853;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.login-revamp {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  overflow: hidden;
  background: var(--primary-900);
}

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* === LEFT SIDE — Hero Panel === */
.login-hero {
  flex: 1.2;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 40%, var(--primary-700) 100%);
  color: #ffffff;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.login-hero::after {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%;
  height: 200%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.02) 50%, transparent 60%);
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  top: 2.5rem;
  left: 4rem;
  z-index: 2;
}

.hero-logos img {
  height: 40px;
  width: auto;
  opacity: 0.9;
}

.hero-logos .logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}

.hero-logos .logo-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
}

.hero-stat {
  position: relative;
}

.hero-stat::after {
  content: '';
  position: absolute;
  right: -1.25rem;
  top: 0;
  height: 100%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.hero-stat:last-child::after { display: none; }

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

.hero-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  opacity: 0.04;
  z-index: 1;
}

/* === RIGHT SIDE — Login Form === */
.login-form-panel {
  flex: 0.8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.login-form-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-500), var(--accent-gold), var(--primary-500));
}

.login-form-wrapper {
  width: 100%;
  max-width: 380px;
}

.mobile-logos {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Filter to turn white PNG to blue (#1d4ed8) just for BI logo */
.mobile-logos img:first-child {
  filter: brightness(0) invert(26%) sepia(85%) saturate(3015%) hue-rotate(213deg) brightness(88%) contrast(98%);
}

/* Second logo (SIMPEL AJA) remains original color */
.mobile-logos img:last-child {
  max-width: 100%;
}

.mobile-logos .logo-divider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.form-logo img {
  height: 44px;
  width: auto;
}

.form-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-800);
  letter-spacing: -0.01em;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-900);
  letter-spacing: -0.02em;
}

.form-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Form Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 18px;
  height: 18px;
  transition: color 0.2s;
}

.form-input {
  width: 100%;
  padding: 0.825rem 1rem 0.825rem 2.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
  outline: none;
}

/* Validation Error Style */
.form-input.has-error {
  border-color: #ef4444; 
  background-color: #fef2f2;
}

.form-input.has-error::placeholder {
  color: #f87171;
}

.form-input:focus ~ .input-icon {
  color: var(--primary-500);
}

.password-toggle {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #c4c9d4;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s;
}

.password-toggle:hover { color: #6b7280; }

/* Login Alert (Error Box) */
.login-alert {
  background: #fef2f2;
  color: #ef4444;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #fee2e2;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.login-alert svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Submit Button */
.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary-500);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover {
  background: #1e40af;
  box-shadow: 0 6px 15px rgba(29, 78, 216, 0.4);
  transform: translateY(-2px);
}

.btn-login:hover::before { left: 100%; }

.btn-login:active {
  transform: translateY(1px);
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* === Animations === */
@keyframes fadeInUp {
  0% { opacity: 0 !important; transform: translateY(20px); }
  100% { opacity: 1 !important; transform: translateY(0); }
}

@keyframes fadeInLeft {
  0% { opacity: 0 !important; transform: translateX(-20px); }
  100% { opacity: 1 !important; transform: translateX(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out both !important;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.5s ease-out both !important;
}

.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }

/* === Responsive === */
@media (max-width: 1024px) {
  .login-hero { display: none; }
  .login-form-panel {
    flex: 1;
    padding: 2rem 1.5rem;
  }
  .login-form-panel::before { display: none; }
  body.login-revamp {
    background: #f8fafc;
  }
  .login-form-wrapper {
    max-width: 420px;
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  }
  .form-header {
    text-align: center;
  }
  .mobile-logos {
    display: flex;
  }
}

@media (max-width: 480px) {
  .login-form-panel {
    padding: 1rem;
  }
  .login-form-wrapper {
    padding: 2.5rem 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  }
  .form-title { font-size: 1.5rem; }
  .form-input { font-size: 16px; } /* prevents iOS zoom */
}
