
/* ===== 회원가입 (PCUBIT BETA) ===== */
body.my-register-page {
  padding-bottom: var(--my-page-pad-bottom, 1px);
}

.my-reg-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  max-width: var(--my-content-max, 520px);
  padding: var(--my-page-pad-y, 1px) 1px var(--my-page-pad-bottom, 1px) 1px;
  margin: 0 auto;
}
.my-reg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.my-reg-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5d547 0%, #c9a227 100%);
  color: #1a1200;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.my-reg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.my-reg-brand-text strong {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #f5d547;
}
.my-reg-brand-text em {
  font-style: normal;
  font-size: 10px;
  color: #8a8a8a;
  letter-spacing: 0.12em;
}
.my-reg-header-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.my-reg-icon-btn {
  color: #f5d547;
  font-size: 18px;
  text-decoration: none;
  line-height: 1;
}
.my-reg-icon-user {
  width: 28px;
  height: 28px;
  border: 2px solid #f5d547;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.my-reg-brand-wrap {
  flex: 1;
}
.my-reg-brand-wrap .my-brand-logo-link {
  display: inline-block;
  line-height: 0;
}
.my-reg-brand-wrap .my-brand-logo-img {
  max-height: 48px;
  width: auto;
  max-width: 140px;
}

.my-reg-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--my-content-max, 520px);
  margin: 0 auto;
  padding: var(--my-page-pad-y, 1px) 1px var(--my-page-pad-bottom, 1px) 1px;
}
.my-reg-title {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 600;
  margin: 12px 0 24px;
  color: #fff;
}

.my-reg-form { display: flex; flex-direction: column; gap: 18px; }
.my-reg-field { display: flex; flex-direction: column; gap: 8px; }
.my-reg-label {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.my-reg-req {
  color: #7eb8ff;
  font-weight: 400;
}

.my-reg-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}
.my-reg-input-light {
  background: #c8d0db;
  border: 1px solid #c8d0db;
  color: #1a1a1a;
}
.my-reg-input-light::placeholder { color: #666; }
.my-reg-input-dark {
  background: #0d0d0d;
  border: 1px solid #e8b923;
  color: #fff;
}
.my-reg-input-dark::placeholder { color: #666; }

.my-reg-row {
  display: flex;
  gap: 8px;
}
.my-reg-row .my-reg-input-light,
.my-reg-row .my-reg-input-dark { flex: 1; min-width: 0; }
.my-reg-btn-check {
  flex-shrink: 0;
  padding: 0 16px;
  background: #e8b923;
  border: none;
  border-radius: 4px;
  color: #1a1200;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.my-reg-btn-check.is-ok { background: #4caf50; color: #fff; }
.my-reg-btn-check.is-fail { background: #e53935; color: #fff; }

.my-reg-pw-wrap { position: relative; }
.my-reg-pw-wrap .my-reg-input { padding-right: 44px; }
.my-reg-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  padding: 4px;
}

.my-reg-msg {
  font-size: 12px;
  margin: 0;
  min-height: 16px;
}
.my-reg-msg.ok { color: #4caf50; }
.my-reg-msg.fail { color: #ff6b6b; }

.my-reg-terms-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.my-reg-terms-box {
  flex: 1;
  height: 140px;
  overflow-y: auto;
  background: #1e4d72;
  border: 1px solid #2a6090;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #dce8f5;
}
.my-reg-terms-box p { margin: 0 0 10px; }
.my-reg-terms-check {
  flex-shrink: 0;
  width: auto;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: pointer;
  user-select: none;
}
.my-reg-terms-agree {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}
.my-reg-terms-check.is-visible {
  opacity: 1;
  visibility: visible;
}
.my-reg-terms-check input {
  width: 22px;
  height: 22px;
  accent-color: #e8b923;
  cursor: pointer;
}

.my-reg-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.my-reg-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.my-reg-btn-close {
  background: #3a3a3a;
  color: #ccc;
}
.my-reg-btn-submit {
  background: #e8b923;
  color: #1a1200;
}

@media (max-width: 380px) {
  .my-reg-btn-check { padding: 0 10px; font-size: 12px; }
  .my-reg-main { padding: var(--my-page-pad-y, 1px) 1px var(--my-page-pad-bottom, 1px); }
  .my-reg-row { flex-wrap: wrap; }
  .my-reg-btn-check { width: 100%; height: 44px; }
  .my-reg-terms-row { flex-direction: column; }
  .my-reg-terms-check { width: auto; justify-content: flex-start; }
}

@media (max-width: 359px) {
  .my-reg-actions { flex-direction: column; }
  .my-reg-title { margin-bottom: 16px; }
}

@media (min-width: 1024px) {
  body.my-register-page {
    padding-bottom: var(--my-page-pad-bottom, 1px);
  }

  .my-reg-header {
    max-width: none;
    width: 100%;
    padding: 16px 10px 8px 10px;
  }

  .my-reg-main {
    max-width: none;
    width: auto;
    margin: 8px 10px 0;
    padding: 28px 24px 40px;
    background: rgba(12, 10, 6, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 213, 71, 0.14);
    border-radius: 16px;
  }

  .my-reg-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    align-items: start;
  }

  .my-reg-field--full {
    grid-column: 1 / -1;
  }

  .my-reg-actions {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .my-reg-terms-row {
    grid-column: 1 / -1;
  }

  .my-reg-terms-box { height: 180px; }
}
