/* 비회원 무료 시안제작 팝업 */
.login_modal_wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000000;
}

.login_modal_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.login_modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  box-sizing: border-box;
  padding: 64px 32px;
}

.login_modal_close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login_modal_close svg {
  width: 24px;
  height: 24px;
}

.login_modal_content {
  text-align: center;
}

.login_modal_title {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #313131;
  margin-bottom: 16px;
  line-height: 27.72px;
}

.login_modal_text {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #313131;
  line-height: 24.64px;
  letter-spacing: -0.32px;
  margin-bottom: 24px;
}

.login_modal_input_wrap {
  position: relative;
  /* padding: 0 32px; */
  margin-top: 24px;
}

.login_modal_label {
  display: block;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #313131;
  line-height: 21.56px;
  margin-bottom: 8px;
  text-align: left;
}

.login_modal_input {
  width: 100%;
  height: 53px;
  padding: 0 16px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background-color: #fff;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: #313131;
  text-align: left;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.login_modal_input:focus {
  border-color: #803bff;
}

.login_modal_input.error {
  border-color: #ff5f5d;
  text-align: left;
  height: 53px;
  padding: 0 16px;
}

.login_modal_input.error:focus {
  border-color: #ff5f5d;
}

.login_modal_error_msg {
  position: absolute;
  top: 85px;
  right: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #ff5f5d;
  line-height: 15.4px;
  margin-top: 4px;
}

.login_modal_input.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-4px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(4px);
  }
}

.login_modal_input::placeholder {
  color: #D5D5D5;
}

/* 주의 텍스트 */
.login_modal_notice {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #d2d2d2;
  line-height: 18.48px;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 24px;
}

/* 체크박스 영역 */
.login_modal_checkbox_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* margin-bottom: 24px; */
  margin: 35px 0 12px;
}

input[type=checkbox].login_modal_checkbox {
  width: 16.5px;
  height: 16.5px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  background-color: #ffffff;
  box-sizing: border-box;
  background-image: none;
}

input[type=checkbox].login_modal_checkbox:checked {
  background-color: #333333;
  border-color: #333333;
}

input[type=checkbox].login_modal_checkbox:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3L4.5 8.5L2 6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.login_modal_checkbox_label {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #949494;
  line-height: 21.56px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.login_modal_terms_toggle {
  color: #803bff;
  text-decoration: underline;
  cursor: pointer;
  user-select: none;
}

.login_modal_terms_toggle:hover {
  color: #6d2dd9;
}

/* 약관 상세 내용 */
.login_modal_terms_detail {
  margin-top: 12px;
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #737373;
  line-height: 24.64px;
  text-align: left;
  margin-bottom: 24px;
}


.login_modal_btn_confirm {
  width: 100%;
  height: 53px;
  border: none;
  background-color: #803bff;
  color: #ffffff;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}


.login_modal_btn_confirm.disabled {
  background-color: #f2f2f2;
  color: #adb3b6;
  cursor: not-allowed;
}

.login_modal_btn_confirm.disabled:hover {
  background-color: #f2f2f2;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .login_modal {
    width: 90%;
    max-width: 460px;
    height: auto;
    padding: 48px 24px;
  }


  .login_modal_title {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .login_modal_text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .login_modal_input {
    height: 48px;
    font-size: 14px;
  }

  .login_modal_notice {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .login_modal_checkbox_wrap {
    margin-bottom: 20px;
  }

  .login_modal_checkbox_label {
    font-size: 14px;
  }

  .login_modal_terms_detail {
    font-size: 13px;
    padding: 14px;
  }

  .login_modal_btn_confirm {
    height: 48px;
    font-size: 15px;
  }

  .login_modal_close {
    top: 20px;
    right: 20px;
  }
}
