.ep-member-portal {
  padding-block: 28px 68px;
}

.ep-signin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: stretch;
  max-width: 1080px;
  margin-inline: auto;
  border: 1px solid #d8e8ef;
  background: #f3f9fc;
}

.ep-signin-photo {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #e2f4fb;
}

.ep-signin-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
}

.ep-signin-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(138deg,rgba(26,184,222,.25) 0 9%,rgba(225,249,255,.25) 9% 13%,transparent 13% 85%,rgba(80,201,235,.2) 85%);
}

.ep-signin-panel {
  position: relative;
  min-width: 0;
  padding: clamp(25px,3.2vw,46px);
  background: #fff;
  border-top: 3px solid #08b6dc;
}

.ep-signin-panel::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px;
  height: 92px;
  clip-path: polygon(100% 0,100% 100%,10% 0);
  background: linear-gradient(136deg,#effaff,#c9eef9);
  pointer-events: none;
}

.ep-signin-panel h1,.ep-member-dashboard h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ep-ink);
  font-size: clamp(29px,3.25vw,45px);
  font-weight: 790;
  line-height: 1.35;
  letter-spacing: -.045em;
}

.ep-signin-intro {
  margin: 10px 0 15px;
  color: #425664;
  font-size: 14px;
  line-height: 1.8;
}

.ep-member-portal .ep-prose { font-size: 15px; }
.ep-member-portal .ep-prose>:last-child { margin-bottom: 0; }
.ep-signin-panel .ep-prose { max-width: none; margin-top: 0; }
.ep-signin-panel :is(#wpmem_login,#wpmem_reg,.wpmem_login,.wpmem_reg) { width: 100%; margin-inline: 0; }

.ep-member-portal :is(#wpmem_login,#wpmem_reg,.wpmem_login,.wpmem_reg) fieldset {
  min-width: 0;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.ep-signin-panel legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ep-member-portal :is(#wpmem_login,#wpmem_reg,.wpmem_login,.wpmem_reg) label {
  display: block;
  margin: 9px 0 5px;
  font-size: 14px;
  font-weight: 680;
}

.ep-member-portal :is(#wpmem_login,#wpmem_reg,.wpmem_login,.wpmem_reg) input:is([type="text"],[type="email"],[type="password"]) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9eb6c4;
  border-radius: 0;
  background: #fff;
  color: var(--ep-ink);
  font-size: 16px;
}

.ep-signin-panel :is(.div_text,.div_email) { margin-bottom: 10px; }
.ep-signin-panel #wpmem_login_form fieldset { margin-top: 0; }
.ep-signin-panel #wpmem_login_form .button_div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 8px;
  margin: 14px 0 7px;
  text-align: left;
}
.ep-signin-panel #wpmem_login_form input[type="checkbox"] { margin: 0; }
.ep-signin-panel #wpmem_login_form label[for="rememberme"] { margin: 0; font-weight: 500; }
.ep-signin-panel #wpmem_login_form input[type="submit"] { flex: 0 0 100%; margin: 2px 0 0; }
.ep-signin-panel :is(.link-text,.link_text) { margin: 9px 0; font-size: 13px; }
.ep-member-portal .ep-prose input[type="checkbox"] { inline-size: 17px; block-size: 17px; accent-color: #08799d; vertical-align: middle; }
.ep-member-portal :is(#wpmem_login,#wpmem_reg,.wpmem_login,.wpmem_reg) input[type="submit"],
.ep-buyer-registration :is(#wpmem_reg,.wpmem_reg) input[type="submit"] {
  float: none;
  min-height: 48px;
  margin-block: 10px;
  padding: 11px 18px;
  border: 1px solid #075575;
  border-radius: 0;
  background: #075575;
  color: white;
  font-weight: 740;
}

.ep-signin-panel input[type="submit"] { width: 100%; }
.ep-member-portal input[type="submit"]:hover,.ep-buyer-registration input[type="submit"]:hover { background: #0b3f57; }

.ep-signin-paths {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #d8e7ee;
}

.ep-signin-paths a,.ep-member-resources a {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 9px 13px;
  border: 1px solid #d4e7ef;
  background: #f5fbfd;
  color: #153a4d;
}

.ep-signin-paths a:hover,.ep-member-resources a:hover {
  border-color: #74bfd4;
  background: #e8f8fd;
}

.ep-signin-paths strong,.ep-signin-paths small,.ep-member-resources strong,.ep-member-resources span { display: block; }
.ep-signin-paths strong,.ep-member-resources strong { font-size: 15px; }
.ep-signin-paths small,.ep-member-resources span { margin-top: 2px; color: #415b6c; font-size: 12px; }
.ep-signin-paths i,.ep-member-resources i { color: #087a9c; font-style: normal; }

.ep-member-dashboard {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(20px,4vw,47px);
  border: 1px solid #d8e8ef;
  border-top: 3px solid #08b6dc;
  background: linear-gradient(136deg,#ecf8fd 0 10%,#fff 10%);
}

.ep-member-dashboard-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.ep-member-logout,.ep-member-back { display: inline-block; color: #08627e; font-size: 14px; font-weight: 680; text-decoration: underline; text-underline-offset: .24em; }
.ep-member-back { margin-block: 17px 4px; }
.ep-member-resources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-block: 25px; }
.ep-member-resources a { min-height: 95px; padding: 16px; }
.ep-member-resources span { grid-column: 1; }
.ep-member-resources i { grid-column: 2; grid-row: 1 / 3; }
.ep-member-account { margin-top: 24px; padding-top: 19px; border-top: 1px solid #d8e7ee; }
.ep-member-account>h2 { margin: 0 0 12px; color: var(--ep-ink); font-size: 19px; }
.ep-registration-guide { padding: 16px 18px; border-left: 3px solid #08aed4; background: #f0f8fc; }
.ep-registration-guide p { margin: 0 0 8px; }
.ep-buyer-registration :is(#wpmem_reg,.wpmem_reg) fieldset { min-width: 0; margin-top: 22px; padding: 18px; border: 1px solid #d8e8ef; background: #fff; }
.ep-buyer-registration :is(input[type="file"],select) { max-width: 100%; }

@media (max-width: 780px) {
  .ep-member-portal { padding-block: 22px 44px; }
  .ep-signin-layout { grid-template-columns: minmax(0,1fr); }
  .ep-signin-photo { order: 2; min-height: clamp(145px,36vw,235px); border-top: 1px solid #d8e8ef; }
  .ep-signin-photo img { object-position: 50% 76%; }
  .ep-signin-panel { padding: 24px 20px; }
}
@media (max-width: 570px) {
  .ep-member-resources { grid-template-columns: minmax(0,1fr); }
  .ep-member-resources a { min-height: 74px; padding: 12px; }
}
