/* Base & Theme Matching Dashboard Layout */
body,
html {
  height: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #f4f6f9; /* Background abu-abu muda khas halaman dasbor */
  overflow: hidden;
}

.login-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
           SISI KIRI: Hero Visual (Menggunakan warna Dark Navy sesuai Sidebar Dasbor)
           ========================================================================== */
.wms-hero-side {
  flex: 1.2;
  position: relative;
  /* Gradasi warna disamakan persis dengan warna navy sidebar di screenshot */
  background:
    linear-gradient(135deg, rgba(28, 40, 60, 0.95), rgba(15, 23, 42, 0.98)),
    url('/images/wms-background.avif');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  color: #ffffff;
}

.brand-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo-container {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.brand-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.hero-main-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-main-text h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-main-text p {
  font-size: 15px;
  color: #cbd5e1; /* Warna teks muted light slate */
  line-height: 1.6;
}

.hero-footer-text {
  position: relative;
  z-index: 2;
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
           SISI KANAN: Panel Form Login (Clean Light & Slate Accent)
           ========================================================================== */
.login-form-side {
  flex: 0.8;
  background-color: #ffffff; /* Bersih, putih kontras dengan isi dasbor */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

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

.login-meta-header {
  margin-bottom: 35px;
}

.login-meta-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b; /* Warna teks utama gelap */
  margin-bottom: 8px;
}

.login-meta-header p {
  color: #64748b;
  font-size: 14px;
}

/* Form Controls */
.form-group-custom {
  margin-bottom: 22px;
}

.form-label-custom {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i.input-leading-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.3s;
}

.form-input-dashboard {
  width: 100%;
  background-color: #f8fafc !important; /* Warna input box sesuai kolom cari di dashboard */
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 13px 16px 13px 44px;
  color: #334155 !important;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input-dashboard:focus {
  outline: none;
  border-color: #1c283c; /* Focus border disesuaikan warna utama navy */
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(28, 40, 60, 0.08);
}

.form-input-dashboard:focus + i.input-leading-icon {
  color: #1c283c;
}

/* Password Visibility Toggle */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

.password-toggle:hover {
  color: #64748b;
}

/* Options Row */
.form-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 30px;
}

.remember-me-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.remember-me-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: #1c283c;
  cursor: pointer;
}

.forgot-password-link {
  color: #1c283c;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* Button Utama (Meniru warna primer Sidebar Navy) */
.btn-dashboard-primary {
  width: 100%;
  background-color: #1c283c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(28, 40, 60, 0.15);
}

.btn-dashboard-primary:hover {
  background-color: #151f2e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 40, 60, 0.2);
}

/* Alert Modifikasi */
.alert-custom {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-custom-danger {
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid #fee2e2;
}

.alert-custom-success {
  background-color: #f0fdf4;
  color: #22c55e;
  border: 1px solid #dcfce7;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .login-form-side {
    flex: 1;
    padding: 40px;
  }
  .wms-hero-side {
    display: none;
  }
}
