/* =========================================================
   LHI-ng
   Login Page
   ========================================================= */

/* =========================================================
   ROOT
   ========================================================= */

:root {
  --lhi-primary: #206bc4;
  --lhi-primary-dark: #1559a6;

  --lhi-text: #182433;
  --lhi-muted: #66758a;

  --lhi-border: #dfe6ee;

  --lhi-background: #f3f7fc;
}

/* =========================================================
   BODY
   ========================================================= */

html,
body {
  width: 100%;
  min-height: 100%;
}

body.lhi-login-body {
  margin: 0;

  background: linear-gradient(135deg, #f3f7fc 0%, #edf4fb 100%);

  color: var(--lhi-text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================================================
   PAGE
   ========================================================= */

.lhi-login-page {
  min-height: 100vh;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.lhi-login-container {
  width: 100%;
  max-width: 1120px;
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.85fr);

  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(31, 56, 85, 0.12);
}

/* =========================================================
   GOVERNMENT IDENTITY
   ========================================================= */

.lhi-government {
  display: flex;

  align-items: center;

  gap: 16px;

  position: relative;

  z-index: 3;
}

.lhi-government-logo {
  width: 70px;
  height: 82px;

  object-fit: contain;

  flex-shrink: 0;
}

.lhi-government-text {
  line-height: 1.1;
}

.lhi-government-title {
  font-size: 15px;

  font-weight: 700;

  letter-spacing: 0.025em;

  color: #102c52;
}

.lhi-government-name {
  margin-top: 3px;

  font-size: 26px;

  font-weight: 800;

  letter-spacing: 0.01em;

  color: #0c2850;
}

.lhi-government-agency {
  margin-top: 6px;

  font-size: 14px;

  font-weight: 700;

  color: #153b68;
}

/* =========================================================
   RIGHT FORM PANEL
   ========================================================= */

.lhi-login-form-panel {
  display: flex;

  align-items: center;
  justify-content: center;

  padding: 45px;

  background: #ffffff;
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

.lhi-login-card {
  width: 100%;
  max-width: 420px;
}

/* =========================================================
   HEADER
   ========================================================= */

.lhi-login-header {
  margin-bottom: 24px;
}

.lhi-login-header h2 {
  margin: 0;

  font-size: 31px;

  line-height: 1.2;

  font-weight: 750;

  letter-spacing: -0.025em;

  color: #102c52;
  text-align: center;
}

.lhi-login-header .wave {
  display: inline-block;

  margin-left: 4px;
}

.lhi-login-header p {
  margin: 10px 0 0;

  /* max-width: 400px; */

  font-size: 14px;

  line-height: 1.6;

  color: var(--lhi-muted);
  text-align: center;
}

/* =========================================================
   FORM
   ========================================================= */

.lhi-login-card .form-label {
  margin-bottom: 8px;

  font-size: 14px;

  font-weight: 650;

  color: #172d4c;
}

.lhi-form-control {
  height: 40px;

  border-radius: 9px;

  border-color: var(--lhi-border);

  box-shadow: none;

  font-size: 14px;
}

.lhi-form-control::placeholder {
  color: #9aa9bb;
}

.lhi-form-control:focus {
  border-color: #7eb0ea;

  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.1);
}

/* =========================================================
   SELECT
   ========================================================= */

select.lhi-form-control {
  cursor: pointer;
}

/* =========================================================
   ICON
   ========================================================= */

.lhi-login-card .input-icon-addon {
  color: #71839a;
}

/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.lhi-password-toggle {
  cursor: pointer;

  transition: color 0.15s ease;
}

.lhi-password-toggle:hover {
  color: var(--lhi-primary);
}

/* =========================================================
   CHECKBOX
   ========================================================= */

.lhi-login-card .form-check {
  display: flex;

  align-items: center;

  gap: 4px;
}

.lhi-login-card .form-check-label {
  font-size: 13px;

  color: #344963;
}

.lhi-login-card .form-check-input {
  width: 16px;
  height: 16px;

  cursor: pointer;
}

/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.lhi-login-button {
  height: 50px;

  border: 0;

  border-radius: 8px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  font-size: 14px;

  font-weight: 650;

  background: linear-gradient(135deg, #2478e8 0%, #1769d5 100%);

  box-shadow: 0 7px 18px rgba(32, 107, 196, 0.2);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.lhi-login-button:hover {
  transform: translateY(-1px);

  box-shadow: 0 10px 22px rgba(32, 107, 196, 0.25);
}

/* =========================================================
   FOOTER
   ========================================================= */

.lhi-login-footer {
  margin-top: 36px;
  text-align: center;
}

.lhi-login-footer-line {
  height: 1px;

  margin-bottom: 18px;

  background: #edf0f4;
}

.lhi-login-copyright {
  font-size: 12px;

  color: #7c8ca0;
}

.lhi-login-version {
  margin-top: 4px;

  font-size: 11px;

  color: #a2adba;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .lhi-login-container {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  }
}

@media (max-width: 850px) {
  .lhi-login-page {
    padding: 0;

    align-items: stretch;
  }

  .lhi-login-container {
    min-height: 100vh;

    grid-template-columns: 1fr;

    border-radius: 0;

    box-shadow: none;
  }

  .lhi-login-form-panel {
    padding: 40px 30px;
  }
}

@media (max-width: 520px) {
  .lhi-government-logo {
    width: 54px;
    height: 64px;
  }

  .lhi-government-title {
    font-size: 11px;
  }

  .lhi-government-name {
    font-size: 20px;
  }

  .lhi-government-agency {
    font-size: 10px;
  }

  .lhi-system-description {
    font-size: 17px;
  }

  .lhi-login-form-panel {
    padding: 35px 22px;
  }

  .lhi-login-header h2 {
    font-size: 27px;
  }
}

/* =========================================================
   LHI-ng LOGIN - LEFT PANEL
   Soft gradient, abstract lines, elegant typography
   ========================================================= */

.lhi-login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf4ff 0%, #dfedff 48%, #cfe4ff 100%);
}

/* Soft gradient accents */
.lhi-login-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 5% 100%,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.58) 34%,
      transparent 68%
    ),
    radial-gradient(
      ellipse at 100% 95%,
      rgba(71, 145, 225, 0.18) 0%,
      transparent 60%
    );
}

/* Multiple thin abstract curves */
.lhi-login-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;

  left: -24%;
  bottom: -15%;
  width: 150%;
  height: 64%;

  border-top: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50% 48% 0 0;
  transform: rotate(-9deg);

  box-shadow:
    0 -13px 0 -11px rgba(255, 255, 255, 0.72),
    0 -27px 0 -25px rgba(255, 255, 255, 0.6),
    0 -43px 0 -41px rgba(255, 255, 255, 0.46),
    0 -61px 0 -59px rgba(255, 255, 255, 0.32);
}

/* Content layout */
.lhi-brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 540px;
  box-sizing: border-box;
  padding: 28px 34px 28px;
}

/* Government identity remains at the top */
.lhi-government {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.lhi-government-logo {
  width: 70px;
  height: 82px;
  flex-shrink: 0;
  object-fit: contain;
}

.lhi-government-text {
  line-height: 1.1;
}

.lhi-government-title {
  color: #102c52;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.lhi-government-name {
  margin-top: 3px;
  color: #0c2850;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lhi-government-agency {
  margin-top: 6px;
  color: #153b68;
  font-size: 14px;
  font-weight: 700;
}

/* System identity positioned toward the bottom */
.lhi-system-identity {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 36px;
  padding-bottom: 36px;
}

.lhi-system-accent {
  width: 48px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #2478e8;
}

.lhi-system-identity h1 {
  margin: 0;
  color: #173d70;
  font-size: clamp(44px, 3.5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lhi-title-main {
  font-weight: 600;
}

.lhi-title-suffix {
  color: #3478c8;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.055em;
}

.lhi-system-description {
  margin-top: 12px;
  color: #183d70;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.35;
}

.lhi-system-tagline {
  margin-top: 14px;
  color: #315b89;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
}

/* Legacy photo and quote are no longer used */
.lhi-building-image,
.lhi-brand-overlay,
.lhi-login-quote {
  display: none !important;
}

/* =========================================================
   MOBILE - HIDE LEFT PANEL, KEEP LOGIN FORM
   ========================================================= */

@media (max-width: 850px) {
  .lhi-login-brand {
    display: none !important;
  }

  .lhi-login-page {
    min-height: 100vh;
    padding: 0;
    align-items: stretch;
  }

  .lhi-login-container {
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 0;
    box-shadow: none;
  }

  .lhi-login-form-panel {
    width: 100%;
    min-width: 0;
    padding: 40px 30px;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  .lhi-login-form-panel {
    padding: 32px 22px;
  }

  .lhi-login-card {
    width: 100%;
    max-width: 420px;
  }
}

/* =====================================================
 * LOGIN - PASSWORD VISIBILITY TOGGLE
 * ===================================================== */

.lhi-password-toggle {
  cursor: pointer;
  pointer-events: auto !important;
  user-select: none;
  z-index: 5;
}

.lhi-password-toggle i {
  pointer-events: none;
}

.lhi-password-input {
  padding-right: 2.75rem;
}
