/* 전체 배경 다크 테마 */
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #121212c9;
  color: #ffffffa2;
  font-family: 'Noto Sans KR', sans-serif;
}

#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1; /* 파티클 배경 뒤로 */
}

/* 래퍼/박스 스타일: 좀 더 넓게, 어둡게 */
.register-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  height: 100%;
    /* ✅ 폼 길어질 때 대비 */
}

.register-box {
  background: #1e1e1e; /* 좀 더 밝은 어둠 */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  padding: 40px;
}

.register-box h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* 에러/성공메시지 */
.error-messages, .success-message {
  background: #333;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  animation: fadeInSlideDown 0.5s ease-out;
}

.error-messages {
  background: linear-gradient(135deg, #d73527 0%, #b71c1c 100%);
  border: 1px solid #ff5252;
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.3);
}

.success-message {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border: 1px solid #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.error-messages p, .success-message p {
  margin: 0;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* 애니메이션 효과 */
@keyframes fadeInSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 약관 영역 */
.terms-wrapper {
  margin-bottom: 25px;
}
.terms-wrapper h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}
.terms-box {
  background: #2b2b2b;
  border: 1px solid #444;
  border-radius: 4px;
  max-height: 250px; /* 높이 제한 */
  overflow-y: auto;  /* 스크롤 */
  padding: 20px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap; /* 입력된 줄바꿈/띄어쓰기 유지 */
}
.terms-agree {
  margin-top: 10px;
  display: flex;
  align-items: center;
}
.terms-agree input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* 폼 영역 */
.register-form .input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}
.register-form .input-group label {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}
.register-form .input-group input,
.register-form .input-group select {
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2a2a2a;
  color: #fff;
}
.register-form .input-group input::placeholder {
  color: #aaa;
}
.register-form .input-group input:focus,
.register-form .input-group select:focus {
  outline: none;
  border-color: #666;
}
.register-form .input-group select option {
  background: #2a2a2a;
  color: #fff;
}

/* 체크박스 그룹 스타일 */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 8px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.checkbox-item:hover {
  background: #333;
}

.checkbox-item input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  cursor: pointer;
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
}

.register-form button {
  display: inline-block;
  width: 100%;
  font-size: 1rem;
  padding: 14px 16px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}
.register-form button:hover {
  background: #444;
}

/* 카카오 로그인 버튼 */
.kakao-button {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  background: #ffd700;
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  align-items: center;
  justify-content: center;
}

/* 버튼 호버 효과 */
.kakao-button:hover {
  background: #ffcc00;
  transform: scale(1.05);
}

/* 회원가입 섹션 스타일 */
.register-link {
  text-align: center;
  margin-top: 15px;
}

/* 회원가입 안내 문구 */
.register-link p {
  color: white;
  font-size: 14px;
}

/* 회원가입 버튼 스타일 */
.signup-button {
  width: 100%;
  border-radius: 50px;
  display: inline-block;
  margin-top: 20px;
  padding: 15px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s, transform 0.2s;
}

/* 버튼 호버 효과 */
.signup-button:hover {
  background: #333;
  transform: scale(1.05);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/homepage/images/introbg.png');
  /* ← 배경 이미지 경로 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  /* 투명도 50% */
  z-index: -1;
  /* 내용보다 뒤에 깔리도록 */
}

.back-btn {
  margin-bottom: 1rem;
}

.back-btn a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-btn a:hover {
  color: #000;
}