/* signup.css */
/* 기본 리셋 및 폰트 */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body.light-mode {
  background-color: #f4f4f4; color: #333;
}
body.dark-mode {
  background-color: #1e1e1e; color: #eee;
}

/* 중앙 컨테이너 */
.signup-container {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
body.dark-mode .signup-container {
  background-color: #2b2b2b;
}

/* 제목 */
.signup-container h1 {
  margin-bottom: 30px;
  font-size: 32px;
  color: #7d6ff0;
  text-align: center;
}

/* 폼 전체 */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 입력 그룹 */
.input-group {
  display: flex;
  flex-direction: column;
}
.input-group label {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}
.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  height: 44px;
}
body.dark-mode .input-group input {
  background-color: #3b3b3b;
  border-color: #555;
  color: #eee;
}

/* 한 줄 배치: 이메일, 닉네임 */
/* 한 줄 배치: 이메일, 아이디, 닉네임 */
.email-inline,
.username-inline,
.nickname-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.email-inline input,
.username-inline input,
.nickname-inline input {
  flex: 1;
}

/* 인증번호 전용 */
.verification-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.verification-field input {
  flex: 1;
  height: 44px;
}

/* 안내 메시지 */
.check-message {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}
.check-message.fail { color: #e74c3c; }
.check-message.ok   { color: #2ecc71; }

/* 버튼 공통 */
.button-22,
.button-6 {
  user-select: none; cursor: pointer; white-space: nowrap;
}
.button-22 {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 12px 20px;
  background-color: #0276FF; color: #fff;
  font-size: 16px; font-weight: 600;
  border: none; border-radius: 6px;
  transition: background 0.2s;
}
.button-22:hover { background-color: #1C84FF; }
.button-22:active { background-color: #006AE8; }

.button-6 {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 10px 16px;
  background-color: #fff; color: #333;
  font-size: 14px; font-weight: 600;
  border: 1px solid #ccc; border-radius: 6px;
  transition: background 0.2s;
}
.button-6:hover { background-color: #f0f0f0; }

/* 전체 너비 버튼 */
.wide-btn { width: 100%; box-sizing: border-box; }

/* 버튼 그룹 */
.btn-group.spaced-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* 모달 */
.modal {
  display: none;
  position: fixed; z-index: 1000;
  top:0; left:0; right:0; bottom:0;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background: #fff;
  max-width: 480px;
  margin: 120px auto;
  padding: 24px;
  border-radius: 8px;
  position: relative;
}
body.dark-mode .modal-content {
  background: #2b2b2b;
}
.close {
  position: absolute; top:16px; right:20px;
  font-size:28px; color:#aaa; cursor:pointer;
}
.close:hover { color:#777; }

/* 검색 컨테이너 */
.search-container {
  display: flex; gap:8px; margin-bottom:16px;
}
.search-container input {
  flex:1; padding:10px;
  border:1px solid #ccc; border-radius:6px;
}
.result-list {
  max-height:240px; overflow-y:auto;
  border:1px solid #ddd; border-radius:6px;
}
.result-list li {
  padding:10px; border-bottom:1px solid #eee;
  cursor:pointer;
}
.result-list li:hover {
  background:#f9f9f9;
}


.id-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.id-inline input { flex: 1; height: 44px; }
#checkUsernameBtn { /* 맞춤 높이/패딩 */ }
