@font-face {
  font-family: "GWS Batang";
  src: url("mirror-assets/ptldesign.cafe24.com/line/theme/line/fonts/KoPubWorld_Batang_Pro_Light.otf") format("opentype");
  font-weight: 300;
}

@font-face {
  font-family: "GWS Suit";
  src: url("mirror-assets/ptldesign.cafe24.com/line/theme/line/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
}

:root {
  --ma-ivory: #f4efe6;
  --ma-paper: #fbf8f1;
  --ma-ink: #2d2b27;
  --ma-muted: rgba(45, 43, 39, 0.64);
  --ma-line: rgba(74, 67, 57, 0.18);
  --ma-gold: #9a7a52;
  --ma-sea: #536872;
}

.member-auth-page {
  margin: 0;
  background: var(--ma-ivory);
  color: var(--ma-ink);
  font-family: "GWS Suit", "SUIT", "Pretendard", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

.member-auth-page * {
  box-sizing: border-box;
}

.member-auth-page .sub-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(251, 248, 241, 0.92), rgba(245, 239, 229, 0.98) 42%, rgba(238, 232, 221, 0.98));
}

.member-auth-page .sub-header {
  background: rgba(245, 239, 229, 0.78);
  backdrop-filter: blur(18px);
}

.member-auth-page .cg-history-controls {
  display: none;
}

.ma-main {
  overflow: hidden;
}

.ma-section {
  width: min(1180px, calc(100vw - 72px));
  margin: 0 auto;
}

.ma-auth-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: start;
  min-height: calc(100vh - 160px);
  padding: 118px 0;
}

.ma-copy {
  position: sticky;
  top: 116px;
}

.ma-eyebrow {
  margin: 0 0 18px;
  color: var(--ma-gold);
  font-family: "GWS Suit", "SUIT", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ma-copy h2 {
  margin: 0;
  color: #2c2923;
  font-family: "GWS Batang", "KoPubWorldBatang", "Noto Serif KR", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: 0;
  word-break: keep-all;
}

.ma-lead {
  width: min(540px, 100%);
  margin: 28px 0 0;
  color: rgba(45, 43, 39, 0.72);
  font-size: 1.08rem;
  font-weight: 360;
  line-height: 1.88;
  word-break: keep-all;
}

.ma-note {
  width: min(520px, 100%);
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--ma-line);
  color: rgba(45, 43, 39, 0.58);
  font-size: 0.94rem;
  line-height: 1.82;
  word-break: keep-all;
}

.ma-account-stack {
  display: grid;
  align-content: start;
}

.ma-provider-list {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ma-provider-row {
  --provider-accent: var(--ma-sea);
  --provider-soft: rgba(83, 104, 114, 0.1);
  --provider-wash: rgba(83, 104, 114, 0.06);
  --provider-line: rgba(83, 104, 114, 0.36);
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px 18px 18px 14px;
  border: 1px solid var(--provider-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--provider-wash), rgba(255, 255, 255, 0.26) 44%, rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.24);
  color: var(--ma-ink);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.ma-provider-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--provider-accent);
}

.ma-provider-row:not(.is-disabled):hover,
.ma-provider-row:not(.is-disabled):focus-visible {
  border-color: var(--provider-accent);
  background: var(--provider-soft);
  transform: translateY(-1px);
}

.ma-provider-row:not(.is-disabled):active {
  border-color: var(--provider-accent);
  background: var(--provider-soft);
  transform: translateY(0);
}

.ma-provider-row:focus-visible {
  outline: 1px solid var(--provider-accent);
  outline-offset: 3px;
}

.ma-provider-naver {
  --provider-accent: #03c75a;
  --provider-soft: rgba(3, 199, 90, 0.16);
  --provider-wash: rgba(3, 199, 90, 0.07);
  --provider-line: rgba(3, 199, 90, 0.52);
}

.ma-provider-kakao {
  --provider-accent: #fee500;
  --provider-soft: rgba(254, 229, 0, 0.3);
  --provider-wash: rgba(254, 229, 0, 0.12);
  --provider-line: rgba(60, 30, 30, 0.3);
}

.ma-provider-google {
  --provider-accent: #1a73e8;
  --provider-soft: rgba(26, 115, 232, 0.16);
  --provider-wash: rgba(26, 115, 232, 0.07);
  --provider-line: rgba(26, 115, 232, 0.5);
}

.ma-provider-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--provider-line);
  border-radius: 50%;
  background: var(--provider-soft);
  color: var(--provider-accent);
  font-family: "GWS Suit", "SUIT", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0;
}

.ma-provider-kakao .ma-provider-mark {
  border-color: rgba(60, 30, 30, 0.22);
  background: #fee500;
  color: #3b2f05;
}

.ma-provider-naver .ma-provider-mark {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.ma-provider-google .ma-provider-mark {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff;
}

.ma-provider-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ma-provider-copy strong {
  color: #292620;
  font-family: "GWS Suit", "SUIT", "Noto Sans KR", sans-serif;
  font-size: 1.25rem;
  font-weight: 620;
  line-height: 1.55;
  letter-spacing: 0;
  word-break: keep-all;
}

.ma-provider-copy em {
  color: rgba(45, 43, 39, 0.54);
  font-size: 0.98rem;
  font-weight: 360;
  font-style: normal;
  line-height: 1.68;
  word-break: keep-all;
}

.ma-provider-row small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 36px;
  padding: 8px 14px 7px;
  border: 1px solid var(--provider-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(34, 35, 31, 0.78);
  font-size: 0.82rem;
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.ma-provider-row:not(.is-disabled):hover .ma-provider-copy em,
.ma-provider-row:not(.is-disabled):focus-visible .ma-provider-copy em,
.ma-provider-row:not(.is-disabled):active .ma-provider-copy em {
  color: rgba(45, 43, 39, 0.68);
}

.ma-provider-row:not(.is-disabled):hover small,
.ma-provider-row:not(.is-disabled):focus-visible small,
.ma-provider-row:not(.is-disabled):active small {
  border-color: var(--provider-accent);
  background: var(--provider-soft);
  color: var(--provider-accent);
  transform: translateY(-1px);
}

.ma-provider-row.is-disabled {
  cursor: not-allowed;
  opacity: 1;
  pointer-events: none;
}

.ma-provider-row.is-disabled small {
  background: rgba(255, 255, 255, 0.28);
  color: rgba(45, 43, 39, 0.62);
}

.ma-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ma-line);
}

.ma-session-actions[hidden] {
  display: none;
}

.ma-session-actions a,
.ma-session-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(55, 49, 41, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #332f29;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.ma-session-actions button {
  color: rgba(45, 43, 39, 0.62);
}

.ma-foot {
  margin: 22px 0 0;
  color: rgba(45, 43, 39, 0.52);
  font-size: 0.86rem;
  line-height: 1.65;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .ma-section {
    width: min(100% - 40px, 520px);
  }

  .ma-auth-section {
    display: block;
    min-height: 0;
    padding: 88px 0;
  }

  .ma-copy {
    position: static;
    text-align: center;
  }

  .ma-copy h2 {
    font-size: clamp(2.18rem, 10vw, 3.15rem);
    line-height: 1.32;
  }

  .ma-lead {
    max-width: 330px;
    margin: 24px auto 0;
    font-size: 1.02rem;
    line-height: 1.82;
  }

  .ma-note {
    margin-top: 24px;
    font-size: 0.88rem;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
  }

  .ma-account-stack {
    margin-top: 42px;
  }

  .ma-provider-list {
    gap: 12px;
  }

  .ma-provider-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 16px 16px 16px 14px;
  }

  .ma-provider-mark {
    width: 40px;
    height: 40px;
    font-size: 0.96rem;
  }

  .ma-provider-row small {
    grid-column: 2;
    justify-self: start;
    min-width: 84px;
    min-height: 34px;
    margin-top: 8px;
    padding: 7px 13px 6px;
  }

  .ma-session-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ma-foot {
    min-height: 64px;
    padding-left: 76px;
  }
}
