.member-panel {
  width: min(100%, 470px);
  margin: clamp(32px, 9vh, 100px) auto 0;
  padding: clamp(20px, 6vw, 38px);
  display: grid;
  gap: 20px;
  border-radius: 24px;
}
.member-panel h1 { color: var(--navy); font-size: clamp(27px, 5vw, 36px); }
.member-panel header p, .member-panel section p, .member-settings p { margin-top: 7px; color: var(--muted); }

.member-auth-page {
  background: radial-gradient(ellipse 520px 370px at 50% 220px, #fbecdc 0, transparent 100%), var(--bg);
}
.member-auth {
  width: min(100%, 478px);
  margin-top: clamp(24px, 6vh, 62px);
  border-color: #e8dfd5;
  box-shadow: 0 15px 44px #59472e10;
}
.member-auth-head { text-align: center; }
.member-auth-head .brand { gap: 11px; text-align: left; margin-bottom: 22px; }
.member-auth-head .brand-mark { width: 58px; height: 58px; border-radius: 16px; }
.member-auth-head .brand-house { transform: scale(1.14); }
.member-auth-head .brand-name { font-size: 31px; }
.member-auth-head .brand-subtitle { font-size: 12px; }
.member-auth-head h1 { font-size: clamp(24px, 5vw, 30px); }
.member-auth-head p { font-size: 14px; }

.member-providers { display: grid; gap: 9px; }
.member-provider {
  width: 100%;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 14px;
  color: #202124;
  background: #fff;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}
.member-provider-kakao { border-color: #fee500; background: #fee500; color: #191919; }
.member-provider-naver { border-color: #067d43; background: #067d43; color: #fff; }
.member-provider:not(:disabled):hover { box-shadow: inset 0 0 0 1px currentColor; }
.member-provider:disabled {
  cursor: default;
  border-color: var(--line);
  color: var(--muted);
  background: #f7f8fa;
  opacity: 1;
}
.member-provider small {
  border-radius: 4px;
  background: #ffffff28;
  padding: 1px 5px;
  font-weight: 600;
}
.member-help { margin-top: -12px; color: var(--muted); font-size: 12px; }

.member-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.member-auth-divider::before, .member-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.member-password-form, .member-email-form, .member-code-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.member-code-fields {
  min-width: 0;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.member-email-form [hidden] { display: none; }
.member-auth label, .member-profile label { font-weight: 750; font-size: 14px; }
.member-auth input + label, .member-code-row + label { margin-top: 3px; }
.member-email-row, .member-code-row { display: flex; align-items: stretch; gap: 8px; }
.member-auth input, .member-profile input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 8px 11px;
  border: 1px solid #c8d0e3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.member-auth input:disabled, .member-profile input:disabled { background: #f4f5f8; }
.member-auth form .button { min-height: 45px; white-space: nowrap; }
.member-email-row .button { padding-inline: 10px; font-size: 13px; }
.member-field-hint { margin-top: -4px; color: var(--muted); font-size: 12px; }
.member-password-length { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.member-auth input[aria-invalid="true"] { border-color: #a32c34; }
.member-auth input[aria-invalid="true"] + .member-field-hint .member-password-length { color: #a32c34; }
.member-challenge { min-width: 0; }
.member-challenge:empty { display: none; }
.member-code-time {
  align-self: center;
  flex: none;
  padding-inline: 3px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.member-terms-consent {
  display: flex;
  align-items: start;
  gap: 9px;
  margin-block: 6px 2px;
}
.member-auth .member-terms-consent input {
  flex: none;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
}
.member-terms-consent > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; }
.member-terms-consent label { cursor: pointer; }
.member-terms-consent .text-link { padding: 0; text-underline-offset: 3px; }
.member-confirm { margin-top: 5px; }
.member-auth-status { font-size: 13px; }

.member-auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 9px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 14px;
  color: var(--muted);
}
.member-auth-switch a { color: #324695; font-weight: 750; }
.member-message { border-radius: 8px; padding: 8px 10px; background: #f8f1e5; color: #643e23; font-size: 14px; }
.member-footer { font-size: 14px; color: var(--muted); }
.member-auth .member-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; font-size: 13px; }
.member-footer a { text-decoration-color: #a6afbb; text-underline-offset: 3px; }
.member-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.member-panel .notice:empty { display: none; }
.member-profile {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.member-profile h2 { font-size: 18px; }
.member-profile p { font-size: 14px; }
.member-profile fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 15px 0 0;
}
.member-profile .button { justify-self: start; margin-top: 4px; }
.member-settings { border-top: 1px solid var(--line); padding-top: 12px; }
.member-settings summary { width: fit-content; cursor: pointer; color: var(--muted); }
.member-delete { margin-top: 10px; color: #9f2929; }
.member-account-layout {
  width: min(100%, 1060px);
  margin: clamp(28px, 6vh, 64px) auto 0;
  display: grid;
  grid-template-columns: minmax(255px, 330px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.member-account-profile {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
}
.member-account-properties {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}
.member-account-properties > h2 { color: var(--navy); font-size: clamp(21px, 3vw, 25px); }
.member-account-properties-hint { margin: 5px 0 18px; color: var(--muted); font-size: 14px; }
.member-property-group + .member-property-group { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.member-property-form { margin-bottom: 14px; }
.member-property-form > summary { width: fit-content; list-style: none; gap: 9px; cursor: pointer; }
.member-property-form > summary::-webkit-details-marker { display: none; }
.member-property-form > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.member-property-form[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.member-property-form .property-register-form { padding-top: 15px; }
.member-account-properties .property-register-history h3 { font-size: 16px; }
.member-account-properties .property-register-history .panel { box-shadow: none; }
@media (max-width: 740px) {
  .member-account-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.member-privacy { width: min(100%, 620px); }
.member-privacy h2 { font-size: 18px; }
.member-privacy .button { justify-self: start; }

@media (max-width: 360px) {
  .member-auth { padding-inline: 14px; }

  .member-email-row .button { padding-inline: 7px; }
}
