.signup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f7fc;
  padding: 2rem;
}

.signup-container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  justify-content: center;
  max-height: 85vh;
  padding: 3.5em 0;
  border-radius: 25px;
  box-shadow: 0 0 10px 0 #292C3305;
  box-sizing: border-box;
}

/*회원가입 타이틀*/
.form-title {
  margin-bottom: 2.5em;
}

.form-title_wrap {
  font-weight: 700;
  font-size: 28px;
}

/* 회원가입 폼 */
.signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.05em;
  max-width: 360px;
}

.signup-form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
}

/* 라벨 */
.signup-label {
  font-size: 14px;
  font-weight: 500;
  color: #292c33;
}

/* 입력 필드 */
.signup-input {
  width: 100%;
  padding: 1rem 6rem 1rem 1rem;
  font-size: 14px;
  color: #292c33;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background-color: white;
  outline: none;
  transition: border-color 0.2s;
  height: 52px;
}

.signup-input::placeholder {
  color: #bebebe;
}

.signup-input:focus {
  border-color: #bebebe;
  box-shadow: 0 0 10px 0 #292C3305;
}

.signup-input-wrap {
  position: relative;
  width: 100%;
}

.input-inner-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  padding: 0.7em;
  font-size: 14px;
  border: 1px solid #757575;
  color: #757575;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: none;
  border-radius: 30px;
  width: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-inner-button:hover {
  background-color: #595959;
  color: #fff;
}

.signup-input:-webkit-autofill {
  background-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}


/* 체크박스 그룹 */
.signup-checkbox-group {
  display: flex;
  /* align-items: center; */
  margin-top: 0.5rem;
  flex-direction: column;
}

.signup-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.signup-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.signup-checkbox-text {
  font-size: 14px;
  color: #595959;
  line-height: 1.5;
  user-select: none;
}

.signup-terms-link {
  color: #595959;
  text-decoration: underline;
}

.signup-terms-link:hover {
  color: #1f2126;
}

.signup-checkbox-icon {
  width: 18px;
  height: 18px;
  background: url("../images/checkbox_off.svg") no-repeat center center / contain;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.signup-checkbox:checked~.signup-checkbox-icon {
  background: url("../images/checkbox_on.svg") no-repeat center center / contain;
}

/* 회원가입 버튼 */
.signup-button {
  width: 100%;
  padding: 1rem;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: #595959;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.8em;
  height: 54px;
  line-height: 1;
}

.signup-button:hover {
  background-color: #292C33;
}

.signup-button:disabled {
  background-color: #bebebe;
  cursor: not-allowed;
}

/* 에러 메시지 */
.signup-error {
  color: #8bd179;
  font-size: 12px;
  margin-top: 0.25rem;
}

/* 인증 메시지 공통 스타일 */
.signup-message {
  font-size: 12px;
  margin-top: 0.25rem;
}

/* 타이머 스타일 */
.signup-message.timer {
  color: #8bd179;
}

/* 성공 메시지 스타일 */
.signup-message.success-message {
  color: #8bd179;
}

/* 에러 메시지 스타일 */
.signup-message.error-message {
    color: #ff5d7d;
}

/* 만료 경고 스타일 (30초 이하) */
.signup-message.timer.warning {
    color: #fd7e14;
}



/* 하단 링크 */
.signup-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.signup-links-text {
  font-size: 14px;
  color: #6b7280;
}

.signup-login-link {
  font-size: 14px;
  color: #292c33;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.signup-login-link:hover {
  color: #1f2126;
  text-decoration: underline;
}

/* 반응형 */
@media (max-width: 640px) {
  .signup-page {
    background: #fff;
  }

  .signup-container {
    background: none;
  }

  .signup-logo-icon {
    width: 40px;
    height: 40px;
  }

  .signup-logo-text {
    font-size: 28px;
  }

  .signup-page {
    padding: 1rem;
  }
}

@media (max-height: 720px) {
  .signup-form {
    gap: 0.8em;
  }

  .signup-container {
    max-height: 90vh;
  }

  .signup-button {
    margin-top: 0.5em;
  }

  .form-title {
    margin-bottom: 1.5em;
  }
}

@media screen and (max-height: 700px) {
  .signup-form {
    gap: 0.65em;
  }
}

@media (max-width: 380px) {
  .form-title_wrap {
    font-size: 26px;
  }

  .input-inner-button {
    padding: 0.6em;
    width: 75px;
  }

  .signup-input {
    height: 50px;
  }

  .signup-button {
    height: 50px;
    font-size: 15px;
  }
}