/* register.css */
/* body {
  font-family: 'Pretendard', sans-serif;
  background: linear-gradient(135deg, #f8fbf7, #fff);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 4em 0; 
  overflow-y: auto;
} */


body {
  font-family: 'Pretendard', sans-serif;
  background: linear-gradient(135deg, #f8fbf7, #fff);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* ✅ footer가 아래쪽에 위치하도록 column 구조로 변경 */
}

/* 메인 컨텐츠 중앙 정렬용 래퍼 */
.main-content {
  flex: 1; /* ✅ 남은 영역을 채워 footer를 하단으로 밀어냄 */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4em 0;
  overflow-y: auto;
  box-sizing: border-box;
}




/* ========================
   회원가입 컨테이너
======================== */
.register-container {
  width: 100%;
  max-width: 28em; /* 440px → em 단위 */
  background: #fff;
  box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.08);
  border-radius: 0.9em;
  padding: 2.75em 2.25em;
  box-sizing: border-box;
  margin-top: 3em; /* ✅ 헤더 높이 확보 */
}

/* ========================
   제목 / 부제목
======================== */
h2 {
  text-align: center;
  margin-bottom: 0.5em;
  font-size: 1.7rem;
  font-weight: 600;
}

.subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 2em;
}

/* ========================
   입력 그룹 (사용자명 + 표시이름)
======================== */
.input-group {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1em;
}

.input-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-field label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4em;
}

/* ========================
   공통 입력 스타일
======================== */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.75em 1em;
  border: 0.07em solid #ddd;
  border-radius: 0.5em;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  border-color: #4caf50;
  outline: none;
  box-shadow: 0 0 0 0.15em rgba(76, 175, 80, 0.15);
}

/* ========================
   입력 라벨 간 여백
======================== */
form label {
  display: block;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 0.4em;
  font-size: 0.9rem;
}

form input,
form textarea {
  margin-bottom: 0.7em;
}

textarea {
  resize: none;
  height: 6em;
}

/* ========================
   체크박스 / 동의 영역
======================== */
.checkbox-group {
  margin-top: 1.2em;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}

/* ========================
   회원가입 버튼
======================== */
.btn-register {
  width: 100%;
  background-color: #6bbf59;
  color: #fff;
  border: none;
  border-radius: 0.5em;
  padding: 0.9em;
  margin-top: 1.5em;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.btn-register:hover {
  background-color: #58a847;
}

/* ========================
   소셜 로그인 구역
======================== */
.social-section {
  text-align: center;
  margin-top: 2em;
}

.social-section p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.7em;
}

.btn-social {
  width: 100%;
  border: 0.07em solid #ddd;
  background: #fff;
  padding: 0.8em;
  border-radius: 0.5em;
  font-size: 0.95rem;
  margin-top: 0.6em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-social.google:hover {
  background: #f5f5f5;
}

.btn-social.kakao {
  background: #fee500;
  border: none;
}

.btn-social.kakao:hover {
  background: #fddb00;
}


/* 이메일 인증 UI ------------------------------------ */

.email-verify-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  /* margin-bottom: 0.5em; */
}

#btnSendCode, #btnVerifyCode {
  margin-bottom:0.5em;
}

.email-verify-row input {
  flex: 1;
}

.btn-verify {
  padding: 0.7em 1.1em;
  background: #63bb54;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap; /* 줄바꿈 방지 */
}

.btn-verify:hover {
  background: #54a346;
}

.verify-container {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.5em;
}

.verify-container input {
  flex: 1;
}

.verify-status {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4CAF50;
}

.hidden {
  display: none;
}



/* ========================
   반응형
======================== */
@media screen and (max-width: 48em) { /* 약 768px */
  .register-container {
    max-width: 90%;
    padding: 2em 1.5em;
  }
}
