/* ============================================
   Member - 회원가입/로그인
   ============================================ */

.member-page-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #fdf8ee 0%, #f5ecd4 40%, #ede0c4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

.member-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  text-decoration: none;
}

.member-logo-area .logo-icon-slot {
  width: 28px;
  height: 20px;
}

.member-logo-area .logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #c8992a;
  letter-spacing: -0.3px;
}

.member-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(200,153,42,0.18);
  border-radius: 16px;
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(8px);
}

.member-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #3a2e1a;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.member-field {
  margin-bottom: 16px;
}

.member-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6b5a3a;
  margin-bottom: 6px;
}

.member-field label .req {
  color: #c8992a;
  margin-left: 1px;
}

.member-field input[type="text"],
.member-field input[type="password"],
.member-field input[type="email"] {
  width: 100%;
  height: 42px;
  border: 1px solid #e0d0b0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #3a2e1a;
  background: #fffdf7;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.member-field input:focus {
  border-color: #c8992a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,153,42,0.12);
}

.member-hint-list {
  margin-top: 6px;
  padding-left: 4px;
  list-style: none;
}

.member-hint-list li {
  font-size: 12px;
  color: #9a8460;
  padding-left: 10px;
  position: relative;
  line-height: 1.7;
}

.member-hint-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #c8992a;
}

.member-phone-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.member-phone-select {
  height: 42px;
  border: 1px solid #e0d0b0;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 14px;
  color: #3a2e1a;
  background: #fffdf7;
  outline: none;
  min-width: 72px;
  cursor: pointer;
}

.member-phone-input {
  height: 42px;
  border: 1px solid #e0d0b0;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #3a2e1a;
  background: #fffdf7;
  outline: none;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.member-phone-input:focus,
.member-phone-select:focus {
  border-color: #c8992a;
  box-shadow: 0 0 0 3px rgba(200,153,42,0.12);
}

.member-btn-verify {
  height: 42px;
  padding: 0 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.member-btn-verify:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.member-otp-msg {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.member-otp-msg.ok  { color: #2B7A3E; }
.member-otp-msg.err { color: #B4372A; }

.member-divider {
  border: none;
  border-top: 1px solid rgba(200,153,42,0.15);
  margin: 20px 0 16px;
}

.member-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.member-check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #c8992a;
  cursor: pointer;
  flex-shrink: 0;
}

.member-check-row label {
  font-size: 13px;
  color: #6b5a3a;
  cursor: pointer;
}

.member-check-row label a {
  color: #c8992a;
  text-decoration: underline;
  font-weight: 500;
}

.member-btn-submit {
  width: 100%;
  height: 46px;
  background: #c8992a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
  letter-spacing: 0.3px;
  font-family: inherit;
}

.member-btn-submit:hover {
  background: #b08220;
}

.member-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 18px;
}

.member-footer-links a {
  font-size: 13px;
  color: #9a8460;
  text-decoration: none;
  padding: 0 12px;
  transition: color 0.15s;
}

.member-footer-links a:hover {
  color: #c8992a;
}

.member-footer-links .sep {
  width: 1px;
  height: 12px;
  background: #d4c4a0;
}

.member-error {
  background: #fff6f6;
  border: 1px solid #f3c4c4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #d94f4f;
  line-height: 1.6;
}

.member-result {
  background: #fdf8ee;
  border: 1px solid #e0d0b0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #3a2e1a;
  line-height: 1.6;
  text-align: center;
}

.member-result strong {
  color: #c8992a;
  font-size: 16px;
  margin: 0 4px;
  letter-spacing: 0.5px;
}

.member-result-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #9a8460;
}

/* Modal */
.member-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.member-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.member-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.member-modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #3a2e1a;
}

.member-modal-header button {
  font-size: 22px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.member-modal-header button:hover {
  color: #333;
}

.member-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

@media (max-width: 480px) {
  .member-card {
    padding: 28px 20px 24px;
  }

  .member-card-title {
    font-size: 20px;
  }
}
