/* ============================================================
   Login Page – matches Figma design (node 21233-7791)
   ============================================================ */

/* ── Body / page background ─────────────────────────────── */
body.login {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Outer card ─────────────────────────────────────────── */
.login_container {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100vh;
}

.login_card {
  background: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  height: 100vh;
  box-shadow: none;
  padding: 80px;
  box-sizing: border-box;
}

/* ── Left panel (logo + form) ───────────────────────────── */
.login_left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0px 40px 80px;
  gap: 32px;
  background: #ffffff;
  border-radius: 10px;
  box-sizing: border-box;
  overflow-y: auto;
}

.login_logo {
  width: 344px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ── Form area ──────────────────────────────────────────── */
.login_form {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Apply flex+gap to the actual <form> element so children are spaced 20px apart */
.login_form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.login_form .forgot_password_form {
  justify-content: center;
  min-height: 380px;
}

/* Inputs group: 8px gap between username and password */
.login_form .form-group + .form-group {
  margin-top: -12px; /* 20px gap - 12px = 8px effective gap */
}

/* .divider between h1 and inputs takes no space */
.login_form .divider {
  display: none;
}

/* ── Page title with decorative side-lines ──────────────── */
.login_form h1.page-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #070a0e;
  white-space: nowrap;
  margin: 0;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 16px;
  letter-spacing: normal;
}

.login_form h1.page-title::before,
.login_form h1.page-title::after {
  content: '';
  flex: 1 0 0;
  height: 1px;
  background: #d1d5db;
  position: static;
  width: auto;
}

/* ── Inputs ─────────────────────────────────────────────── */
.login_form .form-group {
  margin-bottom: 0;
}

.login_form .form-control {
  height: 40px;
  border-radius: 4px;
  border: 1px solid #dadadb;
  background: #ffffff;
  font-size: 16px;
  color: #070a0e;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  line-height: 24px;
}

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

.login_form .form-control:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* ── Forgot password ────────────────────────────────────── */
.login_form .forgot-password {
  text-align: right;
}

.login_form .forgot-password a.reset_pass,
.login_form .forgot-password a.reset_pass:visited {
  font-size: 13px;
  color: #8aa330;
  text-decoration: none;
}

.login_form .forgot-password a.reset_pass:hover {
  text-decoration: underline;
}

.login_form .forgot-password-btn {
  height: 40px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* ── Log in button ──────────────────────────────────────── */
.login_form .login-btn {
  display: block;
  width: 100%;
  height: 48px;
  background: #8aa330;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0 !important;
}

.login_form .login-btn:hover,
.login_form .login-btn:focus {
  background: #728a28;
  box-shadow: 0 4px 16px rgba(138, 163, 48, 0.25);
  outline: none;
}

/* ── Register link ──────────────────────────────────────── */
.login_form .register-link {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 0;
}

.login_form .register-link a,
.login_form .register-link a:visited {
  color: #8aa330;
  text-decoration: none;
  font-weight: 600;
}

.login_form .register-link a:hover {
  text-decoration: underline;
}

.login_form .back_to_login,
.login_form .back_to_login:visited {
  color: #8aa330;
  text-decoration: none;
  font-weight: 600;
}

.login_form .back_to_login:hover {
  text-decoration: underline;
}

/* ── Error / alert ──────────────────────────────────────── */
.login_form .alert-danger {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 0;
}

/* ── Footer divider & copyright ─────────────────────────── */
.login_form .footer-divider {
  height: 1px;
  background: #d1d5db;
  width: 100%;
}

.login_form .footer-copyright {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #070a0e;
  margin: 0;
}

/* ── Right panel (decorative image) ────────────────────── */
.login_right {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 0px;
  box-sizing: border-box;
}

.login_right_bg {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
}

.login_right_bg_img {
  position: absolute;
  top: 0;
  left: -92.6%;
  width: 285.19%;
  height: 146.33%;
  max-width: none;
  object-fit: cover;
}

.login_right_bg_overlay {
  position: absolute;
  inset: 0;
  background: #8aa330;
  mix-blend-mode: color-burn;
  border-radius: 10px;
}

.login_image_container {
  position: relative;
  flex: 1;
  aspect-ratio: 636 / 742;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .login_card {
    padding: 40px;
  }

  .login_left {
    padding: 24px 40px;
  }

  .login_right {
    padding: 60px;
  }
}

@media (max-width: 900px) {
  .login_card {
    padding: 24px;
  }

  .login_left {
    padding: 24px;
  }

  .login_right {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  body.login {
    padding: 16px;
    align-items: flex-start;
  }

  .login_container {
    height: auto;
    min-height: 100vh;
  }

  .login_card {
    flex-direction: column;
    height: auto;
    min-height: auto;
    overflow: visible;
    padding: 24px 16px;
  }

  .login_left {
    padding: 24px 16px;
    justify-content: flex-start;
    flex: 0 0 auto;
    overflow-y: visible;
    height: auto;
  }

  .login_logo {
    width: 100%;
    height: auto;
  }

  .login_right {
    display: none;
  }

  .login_form h1.page-title {
    font-size: 18px;
    white-space: normal;
    text-align: center;
  }
}
