/* ===== 인증 페이지 (회원가입 / 로그인 / 마이페이지) ===== */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.auth-logo .logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}
.auth-logo .logo__text {
  font-weight: 900;
  font-size: 20px;
  color: var(--brand);
}

.auth-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}
.auth-sub {
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-alert {
  background: #fdecec;
  border: 1px solid #f5b5b5;
  color: #b42318;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}

.auth-form .field {
  margin-bottom: 16px;
}
.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.auth-form .field-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 52, 93, 0.12);
}

.field-err {
  margin-top: 6px;
  color: #d92d20;
  font-size: 13px;
}

.gender-group {
  display: flex;
  gap: 10px;
}
.gender-opt {
  flex: 1;
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700 !important;
  color: var(--text);
  margin-bottom: 0 !important;
  transition: all .15s;
}
.gender-opt input {
  position: absolute;
  opacity: 0;
}
.gender-opt:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.auth-form button[type="submit"] {
  margin-top: 8px;
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-foot a {
  color: var(--brand);
  font-weight: 700;
}

.auth-done {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ===== 헤더 인증 버튼 ===== */
.header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__hello {
  font-size: 14px;
  color: var(--text);
  margin-right: 2px;
}
.header__hello b {
  color: var(--brand);
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid transparent;
}
.btn--ghost:hover {
  background: var(--brand-soft);
}

/* ===== 모달 ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 35, 63, 0.55);
  backdrop-filter: blur(2px);
  animation: modalFade .18s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 35, 63, 0.28);
  padding: 32px 28px 26px;
  animation: modalPop .2s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}
.modal__close:hover { background: var(--bg); color: var(--ink); }
.modal__title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
}
.modal__sub {
  margin-top: 6px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .header__auth .btn { padding: 0 10px; }
  .header__hello { display: none; }
}

/* ===== 마이페이지 ===== */
.mypage {
  padding: 32px 20px 64px;
}
.auth-alert--ok {
  background: #e7f6ec;
  border-color: #a6dcb8;
  color: #15803d;
}

/* 탭 */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 22px;
}
.tabs .tab {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
}
.tabs .tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  font-size: 15px;
}

/* 데이터 테이블 */
.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}
.data-table thead th {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

/* 구매자등록 폼 */
.mypage .card.auth-form { max-width: 560px; }
.mypage .card__title { margin-bottom: 18px; }
.mypage select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.mypage select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 52, 93, 0.12);
}
.form-div {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 20px 0;
}
.verify-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verify-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.verify-status.is-ok { color: var(--ok); }

.mypage-card {
  max-width: 520px;
}
.info-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-list .info-row {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.info-list .info-row:last-child {
  border-bottom: 0;
}
.info-row .info-label {
  width: 130px;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 16px;
}
.info-row .info-value {
  flex: 1;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 14px;
}
.mypage-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.mypage-actions .btn {
  flex: 1;
}
