@font-face {
  font-family: "Member Thai";
  src: url("/assets/fonts/noto-sans-thai-variable.woff") format("woff");
  font-display: swap;
}
.member-auth-page {
  margin: 0;
  min-height: 100vh;
  padding: clamp(14px, 4vw, 60px) 16px 96px;
  background: #f3f7f4;
  color: #19392e;
  font: 1rem/1.55 "Member Thai", "Leelawadee UI", Tahoma, sans-serif;
}
.member-auth-shell {
  width: min(100%, 640px);
  margin-inline: auto;
  background: white;
  border: 1px solid #d6e1d9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 36px #2342310d;
}
.member-auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #124a36;
  color: white;
}
.member-auth-brand a {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 36px);
  color: inherit;
  text-decoration: none;
}
.member-auth-brand a img {
  flex: none;
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
}
.member-auth-brand b, .member-auth-brand small { display: block; }
.member-auth-brand b { font-size: clamp(1.06rem, 3vw, 1.45rem); }
.member-auth-brand small { font-size: .9rem; color: #e1eee3; }
.member-field-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.crop-members .member-auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e382af5, #123b2bc9 48%, #12352635);
}
.member-auth-card { padding: 12px clamp(16px, 4vw, 36px) 18px; }
.member-auth-tabs {
  display: flex;
  border-bottom: 1px solid #dbe6de;
  gap: 4px;
}
.member-auth-tabs button {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 7px 3px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #506459;
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.member-auth-tabs button[aria-pressed="true"] { border-bottom-color: #18633e; color: #104d33; font-weight: 700; }
.member-panel { padding-top: clamp(18px, 3vw, 30px); }
.member-panel h1 {
  margin: 0 0 4px;
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  line-height: 1.32;
}
.member-eyebrow, .member-subtitle { margin: 0 0 18px; color: #4d6659; }
#signupStep { font-weight: 550; }
.member-panel form, .member-panel fieldset, .member-panel label { display: grid; }
.member-auth-shell [hidden] { display: none !important; }
.member-panel form, .member-panel fieldset { gap: 14px; }
.member-panel fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.member-panel label { gap: 6px; min-width: 0; font-weight: 650; }
.member-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.member-panel small { color: #4e6559; font-size: .9rem; margin-top: -8px; }
.member-panel input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #9eafa5;
  border-radius: 9px;
  background: white;
  color: #183b2e;
  font: inherit;
  font-size: 1rem;
}
.member-panel input::placeholder { color: #6a786f; }
.member-auth-shell :focus-visible { outline: 3px solid #318058; outline-offset: 2px; }
.member-primary, .member-secondary {
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #14613e;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.member-primary { background: #14613e; color: white; }
.member-primary:hover { background: #0e4e30; }
.member-secondary { background: #edf5ee; color: #145234; }
.member-primary:disabled, .member-secondary:disabled { opacity: .65; cursor: wait; }
.member-phone-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  padding: 2px 12px;
  background: #edf5ee;
  border-radius: 8px;
}
.member-phone-summary strong { white-space: nowrap; }
.member-text-button, .member-home {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 5px 2px;
  border: 0;
  color: #135538;
  background: transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#signupResend { margin-top: -10px; }
.member-panel .member-check { display: flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 500; }
.member-check input { width: 19px; height: 19px; accent-color: #14613e; }
.member-home { margin-top: 12px; color: #435c50; font-size: .9rem; }
.member-status { display: none; margin: 0; padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.member-status.show { display: block; background: #eef3f0; }
.member-status.error { background: #fff0ed; color: #902c22; }
.member-status.success { background: #eaf5ed; color: #185a39; }
@media (max-width: 520px) {
  .member-auth-page { padding: 10px 8px 90px; }
  .member-auth-shell { border-radius: 15px; }
  .member-auth-brand a { padding: 15px 16px; }
  .member-auth-brand a img { width: 46px; height: 46px; }
  .member-auth-card { padding: 5px 16px 12px; }
  .member-row { grid-template-columns: 1fr; }
}
