body {
  font-family: Arial, sans-serif;
  padding: 40px;
  background: #f7f8fc;
}

/* 회원가입 박스 */
.box {
  max-width: 360px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10; /* 박스를 최상단으로 */
}

.box h2 {
  margin-bottom: 20px;
}

/* 입력창 */
input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

/* 회원가입 버튼 */
button {
  width: 100%;
  padding: 12px;
  background: #4a6fff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #3b57d6;
}

/* 메시지 */
.msg {
  margin-top: 15px;
  color: #444;
  font-size: 14px;
  min-height: 18px;
}

/* ============================
   상단 네비게이션 (홈 / 로그인)
============================ */
.signup-nav {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px; /* 박스와 간격 확보 */
  display: flex;
  justify-content: center;
  gap: 14px;

  pointer-events: none; /* 전체는 클릭 막음 */
  position: relative;
  z-index: 1;
}

.signup-nav .nav-btn {
  pointer-events: auto; /* 버튼만 클릭 가능 */
}

/* 네비게이션 버튼 스타일 */
.nav-btn {
  padding: 8px 14px;
  background: #4a90e2;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 14px;
}

.nav-btn:hover {
  background: #357ABD;
}

/* ============================
   회원가입 박스 아래 텍스트 링크
============================ */
.signup-links {
  margin-top: 18px;
  text-align: center;
  font-size: 15px;
  color: #555;
}

.signup-links .link {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 600;
}

.signup-links .link:hover {
  text-decoration: underline;
}

.signup-links .divider {
  margin: 0 8px;
  color: #aaa;
}
.agree-wrap {
  margin: 15px 0 10px;
  font-size: 14px;
  color: #444;
}

.agree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.agree-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.agree-link {
  color: #4a90e2;
  font-size: 13px;
  text-decoration: underline;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-body {
  height: 400px;
  overflow: hidden; /* 모달 자체 스크롤 제거 */
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow-y: auto; /* iframe만 스크롤 허용 */
}

.close-btn {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  background: #4a6fff;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  border: none;
}
