.benlogin_wrapper {
  min-height: calc(100vh - 108px);
  background-color: var(--ux4g-color-neutral-100);
}

/* two-column shell (form left / benefits right).
   The markup's .ux4g-col-6 / .row have no grid rules, so own the layout
   here via the dedicated .benlogin_shell / columns classes. */
.benlogin_container {
  height: 100%;
}

.benlogin_shell {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(23, 23, 23, 0.08);
}

/* win over the ux4g-web-components grid (.ux4g-col-6) that the markup
   also carries — raise specificity with the .benlogin_shell ancestor */
.benlogin_shell .benlogin_form_col,
.benlogin_shell .benlogin_image_col {
  flex: 1 1 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
}

/* ---------------- left: form ---------------- */
.benlogin_form_col {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ux4g-color-neutral-0);
  padding: var(--ux4g-space-9, 32px);
}

.benlogin_form_inner {
  width: 100%;
  max-width: 420px;
}

.benlogin_alert {
  background-color: var(--ux4g-color-red-100, #ffecee);
  color: var(--ux4g-color-red-800, #8a1a16);
  border-radius: 10px;
  padding: var(--ux4g-space-5, 12px);
  margin-bottom: var(--ux4g-space-6, 16px);
  font-size: 0.85rem;
  text-align: center;
}

.benlogin_title {
  color: var(--ux4g-color-neutral-900, #171717);
}

.benlogin_subtitle {
  color: var(--ux4g-color-neutral-900, #171717);
}

.benlogin_label {
  color: var(--ux4g-color-neutral-700);
  display: block;
  width: 100%;
  margin-bottom: var(--ux4g-space-3, 6px);
}

.benlogin_req {
  color: var(--ux4g-color-red-600, #db372d);
}

.benlogin_input_group {
  border: 1px solid var(--ux4g-color-neutral-300, #d9d9d9);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--ux4g-color-neutral-0, #ffffff);
  width: 100%;
}

.benlogin_input_group:focus-within {
  border-color: var(--ux4g-color-primary-300, #2661e0);
}

.benlogin_input_icon {
  background-color: var(--ux4g-color-neutral-0, #ffffff) !important;
  border: none !important;
  padding-left: var(--ux4g-space-5, 12px);
}

.benlogin_input.form-control {
  border: none !important;
  box-shadow: none !important;
  padding: var(--ux4g-space-5, 12px);
  color: var(--ux4g-color-neutral-900, #171717);
}

.benlogin_input::placeholder {
  color: var(--ux4g-color-neutral-500);
}

.benlogin_input.form-control:focus {
  border: none !important;
  box-shadow: none !important;
  background-color: var(--ux4g-color-neutral-0, #ffffff) !important;
}

.benlogin_help_text {
  font-size: 12px;
  line-height: 16px;
  color: var(--ux4g-color-neutral-500, #737373);
  margin: var(--ux4g-space-2, 4px) 0 var(--ux4g-space-7, 20px);
}

.benlogin_tnc {
  color: var(--ux4g-color-neutral-900);
  margin-top: var(--ux4g-space-6, 16px);
  font-size: 12px;
  line-height: 16px;
}

.benlogin_tnc a {
  color: var(--ux4g-color-primary-600);
  text-decoration: none;
}

.benlogin_tnc a:hover {
  text-decoration: underline;
}

.benlogin_or {
  display: flex;
  align-items: center;
  gap: var(--ux4g-space-5, 12px);
  margin: var(--ux4g-space-7, 20px) 0;
  color: var(--ux4g-color-neutral-500, #737373);
  font-size: 0.82rem;
}

.benlogin_or::before,
.benlogin_or::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--ux4g-color-neutral-200, #e5e5e5);
}

.benlogin_spinner {
  width: 28px;
  height: 28px;
  margin-bottom: var(--ux4g-space-4, 8px);
}

.benlogin_digi_wrap {
  width: 100%;
}

.benlogin_error_chip {
  margin-top: var(--ux4g-space-5, 12px);
  background-color: var(--ux4g-color-red-100);
  color: var(--ux4g-color-red-800);
  border-radius: 8px;
  padding: var(--ux4g-space-4, 8px) var(--ux4g-space-5, 12px);
  text-align: center;
}

.benlogin_success_chip {
  margin-top: var(--ux4g-space-5, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ux4g-space-3, 6px);
  background-color: var(--ux4g-color-green-100, #ddf8d8);
  color: var(--ux4g-color-green-800, #00522c);
  border-radius: 8px;
  padding: var(--ux4g-space-4, 8px) var(--ux4g-space-5, 12px);
}

.benlogin_reenter {
  text-align: center;
  margin-top: var(--ux4g-space-6, 16px);
}

.benlogin_reenter a {
  color: var(--ux4g-color-primary-600-changed, #2661e0);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}

/* KNOW MORE link — hidden on desktop (benefits shown in the right image),
   visible on mobile where it navigates to /who-can-benefit. */
.benlogin_knowmore {
  display: none;
  width: 100%;
  justify-content: center;
  gap: var(--ux4g-space-3, 6px);
  background: var(--ux4g-color-pink-100);
  border: none;
  color: var(--ux4g-color-neutral-900, #171717);
  cursor: pointer;
  padding: var(--ux4g-space-4, 8px);
}

.benlogin_knowmore:hover,
.benlogin_knowmore:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* ---------------- right: coded benefits panel ---------------- */
.benlogin_image_col {
  position: relative;
  background: var(--ux4g-color-pink-100);
  display: flex;
  align-items: center;
  padding: var(--ux4g-space-9, 32px);
  overflow: hidden;
}

/* soft decorative blob top-right (like the reference) */
.benlogin_image_col::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 85, 179, 0.18) 0%, rgba(142, 85, 179, 0) 70%);
  pointer-events: none;
}

.benlogin_benefits {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---------------- benefits content (used on who-can-benefit) ---------------- */
.benlogin_benefits_eyebrow {
  color: var(--ux4g-color-pink-800);
}

.benlogin_who_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ux4g-space-4, 8px);
}

.benlogin_who_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ux4g-space-4, 8px);
  background: rgba(255, 254, 254, 0.2);
  border-radius: 14px;
  padding: var(--ux4g-space-5, 12px) var(--ux4g-space-3, 6px);
  text-align: center;
  backdrop-filter: blur(20px);
}

.benlogin_who_label {
  color: var(--ux4g-color-neutral-900, #171717);
}

.benlogin_who_icon {
  min-height: 72px;
}

.benlogin_key_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--ux4g-space-5, 12px);
}

.benlogin_key_card {
  display: flex;
  gap: var(--ux4g-space-4);
  background-color: var(--ux4g-color-neutral-0, #ffffff);
  border-radius: 14px;
  padding: var(--ux4g-space-4, 12px) var(--ux4g-space-5, 16px);
  box-shadow: 0px 4px 12px 0px #00000012;
}

.benlogin_key_icon {
  width: 25%;
}

.benlogin_key_text {
  width: 75%;
}

.benlogin_key_title {
  color: var(--ux4g-color-purple-800);
  margin: 0 0 2px;
}

.benlogin_key_desc {
  color: var(--ux4g-color-neutral-900, #171717);
  margin: 0;
}

.benlogin_benefits_footer {
  color: var(--ux4g-color-neutral-900, #171717);
  margin: var(--ux4g-space-8, 24px) 0 0;
}

/* =====================================================================
   Who Can Benefit page
   ===================================================================== */
.wcb_wrapper {
  min-height: 100vh;
  /* same pink surface the benefits panel is designed against, so the
     translucent WHO cards + colors read exactly like the desktop panel */
  background: var(--ux4g-color-pink-100);
  padding: var(--ux4g-space-7, 20px);
}

.wcb_container {
  max-width: 480px;
  margin: 0 auto;
}

/* on the standalone page the panel fills the container width */
.wcb_content.benlogin_benefits {
  width: 100%;
}

.wcb_back {
  display: inline-flex;
  align-items: center;
  gap: var(--ux4g-space-3, 6px);
  background: transparent;
  border: none;
  color: var(--ux4g-color-primary-300, #2661e0);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: var(--ux4g-space-6, 16px);
  padding: 0;
}

/* full-page image placeholder — hidden for now; the structured content
   below is shown. When the Figma full image is ready, show .wcb_full_img
   and set .wcb_content { display: none; }. */
.wcb_full_img {
  display: none;
  width: 100%;
  min-height: 520px;
  border-radius: 12px;
}

.wcb_content {
  display: block;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
/* Narrower desktops/tablets: KEY BENEFITS to a single column so cards
   don't get cramped while the two-column login layout still holds. */
@media (max-width: 1200px) {
  .benlogin_key_grid {
    grid-template-columns: 1fr;
  }
}

/* mobile: single column, form only, show KNOW MORE link */
@media (max-width: 991px) {
  .benlogin_container {
    padding-left: 0;
    padding-right: 0;
  }

  .benlogin_shell {
    display: block;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - 108px);
  }

  /* columns go full width when stacked — override the ux4g-col-6 50% */
  .benlogin_shell .benlogin_form_col,
  .benlogin_shell .benlogin_image_col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  /* desktop-only benefits panel hidden on mobile (reached via KNOW MORE) */
  .benlogin_image_col {
    display: none;
  }

  /* form column fills the viewport and anchors the KNOW MORE strip at the
     bottom; extra bottom padding keeps content clear of that fixed strip */
  .benlogin_form_col {
    position: relative;
    min-height: calc(100vh - 108px);
    padding: var(--ux4g-space-9, 32px) var(--ux4g-space-7, 20px) 96px;
    align-items: flex-start;
  }

  .benlogin_form_inner {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  /* KNOW MORE strip pinned to the bottom of the form column on mobile */
  .benlogin_knowmore {
    display: inline-flex;
    align-items: center;
    gap: var(--ux4g-space-3, 6px);
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: var(--ux4g-space-8) var(--ux4g-space-6);
    text-align: left;
  }

  .benlogin_knowmore_arrow {
    color: var(--ux4g-color-pink-600);
    flex: none;
  }
}

/* Who Can Benefit page + small phones: WHO cards 2x2, KEY single column
   (matches the mobile reference). */
@media (max-width: 575px) {
  .benlogin_who_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benlogin_key_grid {
    grid-template-columns: 1fr;
  }
}