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

html,
body.auth-body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.auth-body {
  font-family: var(--font-main, "Plus Jakarta Sans", sans-serif);
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: stretch;
}

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

/* PANEL HERO DESKTOP */
.login-hero-pane {
  flex: 1.15;
  background: linear-gradient(
    135deg,
    var(--app-sidebar-bg, #064e3b) 0%,
    var(--app-accent, #15803d) 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  color: #ffffff;
}

.login-hero-pane::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.grid-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-top-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  width: fit-content;
}

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

.company-logo-glass {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  margin-bottom: 24px;
}

.hero-company-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
}

.hero-company-subtitle {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-bottom-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.hero-stat-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-stat-item span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* FORM PANE */
.login-form-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 64px;
  background: #ffffff;
  overflow-y: auto;
}

.form-header-box h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.form-header-box p {
  color: #64748b;
  font-size: 0.85rem;
}

.form-label-custom {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 6px;
}

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
  transition: color 0.2s;
}

.form-control-custom {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-control-custom:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--app-accent, #15803d);
  box-shadow: 0 0 0 4px rgba(var(--app-accent-rgb, 21, 128, 61), 0.12);
}

.form-control-custom:focus ~ .input-icon-left {
  color: var(--app-accent, #15803d);
}

.btn-toggle-pwd {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  transition: color 0.2s;
}

.btn-submit-login {
  width: 100%;
  height: 48px;
  background: var(--app-accent, #15803d);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(var(--app-accent-rgb, 21, 128, 61), 0.25);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-submit-login:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* KOTAK INFORMASI / HELPDESK MOBILE */
.mobile-info-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-info-card i {
  font-size: 1.35rem;
  color: var(--app-accent, #15803d);
}

.mobile-info-card .info-text {
  font-size: 0.73rem;
  color: #475569;
  line-height: 1.4;
}

.login-footer-copy a:hover,
.login-footer-copy, 
.login-footer-copy a
{
  color: #94a3b8;
  font-size: 0.75rem;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   OPTIMASI TAMPILAN MOBILE (PAS 1 LAYAR / PROPORSIONAL)
   ========================================================================== */
@media (max-width: 991.98px) {
  .login-master-container {
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .login-hero-pane {
    flex: 0 0 auto;
    padding: 24px 16px 20px 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-top-badge,
  .hero-description,
  .hero-bottom-stats {
    display: none !important;
  }

  .hero-center-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .company-logo-glass {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
    margin-bottom: 8px;
    border-radius: 14px;
  }

  .hero-company-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 800;
  }

  /* Subtitle & Badge Unit tetap tampil di mobile */
  .hero-company-subtitle {
    display: inline-block !important;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
  }

  .mobile-hero-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
  }

  .login-form-pane {
    flex: 1;
    padding: 22px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .form-header-box h2 {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .form-header-box p {
    font-size: 0.78rem;
    margin-bottom: 14px;
  }

  .form-control-custom {
    height: 44px;
    font-size: 0.85rem;
  }

  .btn-submit-login {
    height: 46px;
    font-size: 0.9rem;
  }

  .login-footer-copy a:hover,
  .login-footer-copy, 
  .login-footer-copy a
  {
    font-size: 0.68rem;
    padding-top: 8px;
    color: inherit;
    text-decoration: none;
  }
}
