:root {
  --signup-bg: #eef3f8;
  --signup-card: #ffffff;
  --signup-text: #111827;
  --signup-muted: #6b7280;
  --signup-line: rgba(15, 23, 42, 0.12);
  --signup-blue: #0057ff;
  --signup-blue2: #0b63ff;
  --signup-soft: #f7f8fa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--signup-bg);
  color: var(--signup-text);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.signup-page {
  min-height: calc(100vh - 112px);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 87, 255, 0.05), transparent 30%),
    linear-gradient(180deg, #f4f8fb 0%, #edf3f8 100%);
}

.signup-section {
  padding: 76px 20px 92px;
  display: flex;
  justify-content: center;
}

.signup-wrap {
  width: min(620px, 100%);
}

.signup-card {
  width: 100%;
  padding: 56px 42px 52px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 22px;
  background: var(--signup-card);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: signupUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.signup-head {
  text-align: center;
}

.signup-head h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1.2;
  letter-spacing: -0.075em;
}

.signup-head p {
  margin: 0;
  color: rgba(17, 24, 39, 0.62);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.65;
  letter-spacing: -0.035em;
}

.signup-line {
  height: 1px;
  margin: 26px 0 38px;
  background: rgba(15, 23, 42, 0.1);
}

.form-group {
  margin-top: 34px;
}

.form-group:first-of-type {
  margin-top: 0;
}

.form-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #111827;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.form-group h2 span {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--signup-blue);
}

.field-list {
  display: grid;
  gap: 14px;
}

.input-box {
  position: relative;
}

.input-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  z-index: 2;
  color: rgba(17, 24, 39, 0.28);
  font-size: 14px;
  font-style: normal;
  font-weight: 1000;
  transform: translateY(-50%);
  pointer-events: none;
}

.in {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 54px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.in::placeholder {
  color: rgba(17, 24, 39, 0.28);
  font-weight: 750;
}

.in:focus {
  border-color: rgba(0, 87, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.08);
  background: #fff;
}

.select-box::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(17, 24, 39, 0.42);
  border-bottom: 2px solid rgba(17, 24, 39, 0.42);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

select.in {
  appearance: none;
  padding-right: 46px;
}

.phone-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
}

.bank-note {
  min-height: 38px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #f8f8f8;
  color: rgba(17, 24, 39, 0.56);
}

.bank-note b {
  color: rgba(17, 24, 39, 0.48);
  font-size: 13px;
}

.bank-note p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.agree-group {
  margin-top: 40px;
}

.agree-main,
.agree-sub {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #111827;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.5;
  cursor: pointer;
}

.agree-sub {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 900;
}

.agree-main input,
.agree-sub input {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin: 0;
  accent-color: var(--signup-blue);
}

.agree-line {
  height: 1px;
  margin: 16px 0 12px;
  background: rgba(15, 23, 42, 0.08);
}

.terms-box {
  height: 96px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  overflow-y: auto;
  background: #fafafa;
  color: rgba(17, 24, 39, 0.68);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.75;
}

.terms-box::-webkit-scrollbar,
.terms-body::-webkit-scrollbar {
  width: 7px;
}

.terms-box::-webkit-scrollbar-thumb,
.terms-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.2);
}

.submit-btn {
  width: 100%;
  height: 62px;
  margin-top: 30px;
  border: 0;
  border-radius: 13px;
  background: #cfcfcf;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  cursor: pointer;
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.submit-btn span {
  margin-left: 8px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  background: var(--signup-blue);
  box-shadow: 0 22px 46px rgba(0, 87, 255, 0.24);
}

.submit-btn:active {
  transform: scale(0.99);
}

.footer-note {
  margin-top: 26px;
  text-align: center;
  color: rgba(17, 24, 39, 0.58);
  font-size: 14px;
  font-weight: 750;
}

.footer-note a {
  margin-left: 8px;
  color: var(--signup-blue);
  font-weight: 1000;
}

.footer-note a:hover {
  text-decoration: underline;
}

.hidden-btn {
  position: absolute;
  left: -99999px;
  top: -99999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.terms-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.terms-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.terms-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 16px;
  font-weight: 1000;
}

.terms-body {
  height: 240px;
  padding: 18px;
  overflow-y: auto;
  white-space: pre-line;
  color: rgba(17, 24, 39, 0.7);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.75;
}

.step2-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.step-btn {
  height: 54px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
}

.step-btn.primary {
  background: var(--signup-blue);
  color: #fff;
}

.step-btn.ghost {
  background: #f4f6f9;
  color: #111827;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(5px);
}

.modal.show,
.modal[aria-hidden="false"] {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-head h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 1000;
}

.xbtn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 1000;
  cursor: pointer;
}

.modal-body {
  padding: 22px;
}

.ref-row {
  display: grid;
  grid-template-columns: 1fr 98px;
  gap: 10px;
  margin-bottom: 14px;
}

.ref-in {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  outline: none;
  font-weight: 850;
}

.ref-btn,
.big-red {
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--signup-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
}

.big-red {
  width: 100%;
  margin-top: 8px;
  height: 54px;
}

.login-link {
  margin-top: 18px;
  text-align: center;
  color: rgba(17, 24, 39, 0.58);
  font-size: 14px;
  font-weight: 750;
}

.login-link a {
  color: var(--signup-blue);
  font-weight: 1000;
}

.rt-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(5px);
}

.rt-modal-ov.show {
  display: flex;
}

.rt-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.rt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.rt-modal-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.rt-modal-close {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.rt-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.rt-modal-text {
  white-space: pre-line;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.rt-modal-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rt-modal-ok {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--signup-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000000;
  display: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transform: translateX(-50%);
}

.toast.show {
  display: block;
  animation: toastIn 0.25s ease both;
}

@keyframes signupUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 980px) {
  .signup-section {
    padding: 54px 20px 74px;
  }
}

@media (max-width: 640px) {
  .signup-section {
    padding: 34px 16px 60px;
  }

  .signup-card {
    padding: 42px 24px 40px;
    border-radius: 20px;
  }

  .signup-head h1 {
    font-size: 30px;
  }

  .signup-head p {
    font-size: 15px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .in {
    height: 54px;
  }

  .submit-btn {
    height: 58px;
  }

  .step2-actions {
    grid-template-columns: 1fr;
  }

  .ref-row {
    grid-template-columns: 1fr;
  }
}
.submit-btn.is-ready {
  background: var(--signup-blue) !important;
  box-shadow: 0 18px 42px rgba(0, 87, 255, 0.22) !important;
}

.submit-btn.is-ready:hover {
  background: var(--signup-blue2) !important;
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(0, 87, 255, 0.28) !important;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 130px minmax(0, 1fr) 240px !important;
  gap: 28px !important;
  align-items: flex-start !important;
}

.footer-cs-box {
  width: 240px !important;
  min-width: 240px !important;
  margin-left: auto !important;
  padding-top: 2px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  align-items: flex-start !important;
}

.footer-cs-item {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.footer-cs-item span {
  display: block !important;
  margin: 0 0 6px !important;
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
}

.footer-cs-item strong {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.04em !important;
}

.footer-kakao-card,
#kakaoLink.footer-kakao-card {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  color: rgba(255, 255, 255, 0.88) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-kakao-card:hover,
#kakaoLink.footer-kakao-card:hover {
  transform: none !important;
  background: transparent !important;
  border-color: transparent !important;
}

.footer-kakao-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.footer-kakao-icon svg,
#kakaoLink.footer-kakao-card svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

.footer-kakao-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.footer-kakao-text b {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.04em !important;
}

.footer-kakao-text em {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
}

.footer-kakao-card:hover .footer-kakao-text b,
#kakaoLink.footer-kakao-card:hover .footer-kakao-text b {
  color: #fee500 !important;
}

.footer-kakao-only,
.social.footer-kakao-only {
  display: none !important;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-cs-box {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding-top: 4px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
    align-items: start !important;
  }

  .footer-kakao-card,
  #kakaoLink.footer-kakao-card {
    grid-column: 1 / -1 !important;
  }

  .footer-cs-item span {
    font-size: 11.5px !important;
  }

  .footer-cs-item strong {
    font-size: 14px !important;
  }
}

@media (max-width: 520px) {
  .footer-main {
    padding: 26px 0 42px !important;
  }

  .footer-cs-box {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 2px !important;
  }

  .footer-kakao-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }

  .footer-kakao-icon svg,
  #kakaoLink.footer-kakao-card svg {
    width: 22px !important;
    height: 22px !important;
  }
}
