.register-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 36px 32px 30px;
}
 
.register-card h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 28px;
}
 
/* ── 섹션 제목 ── */
.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #5645F8;
  margin-bottom: 16px;
  margin-top: 20px;
}
 
/* ── 폼 그룹 ── */
.form-group {
  margin-bottom: 14px;
}
 
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #3b3b3b;
  margin-bottom: 6px;
}
 
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  height: 42px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color 0.18s;
}
 
.form-group input:focus {
  border-color: #7c5ce0;
  background: #fff;
}
 
.form-group input::placeholder {
  color: #bbb;
}
 
/* ── 인풋 + 버튼 행 ── */
.input-row {
  display: flex;
  gap: 8px;
}
 
.input-row input {
  flex: 1;
}
 
.btn-check {
  height: 42px;
  padding: 0 16px;
  background: #5645F8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
  flex-shrink: 0;
}
 
.btn-check:hover {
  background: #5645F8;
}
 
/* ── 힌트 텍스트 ── */
.input-hint {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  line-height: 1.5;
}
 
/* ── 주소 두 번째 줄 ── */
.input-addr2 {
  margin-top: 8px;
}
 
/* ── 약관 동의 ── */
.agree-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 20px;
}
 
.agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
 
.agree-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #5645F8;
  cursor: pointer;
  flex-shrink: 0;
}
 
.agree-row span {
  font-size: 14px;
  color: #3b3b3b;
  flex: 1;
}
 
.agree-detail {
  font-size: 12px;
  color: #5645F8;
  text-decoration: underline;
  white-space: nowrap;
  margin-left: auto;
}
 
.agree-detail:hover {
  color: #5645F8;
}
 
/* ── 기타 설정 체크박스 ── */
.setting-label {
  font-size: 14px;
  font-weight: 500;
  color: #3b3b3b;
  margin-bottom: 10px;
}
 
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
 
.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #5645F8;
  cursor: pointer;
  flex-shrink: 0;
}
 
.checkbox-row span {
  font-size: 14px;
  color: #555;
}
 
/* ── 자동등록방지 (캡차) ── */
.captcha-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
 
.captcha-img {
  width: 110px;
  height: 46px;
  background: #e8e8e8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
 
.captcha-text {
  font-size: 22px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #1a1a1a;
  letter-spacing: 3px;
  text-shadow:
    1px 1px 0 #aaa,
    -1px -1px 0 #ccc;
  transform: skewX(-6deg);
  display: inline-block;
  filter: blur(0.4px);
}
 
.captcha-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
 
.captcha-btn {
  width: 34px;
  height: 22px;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.15s;
  padding: 0;
}
 
.captcha-btn:hover {
  background: #e0e0e0;
}
 
.captcha-input {
  flex: 1;
  height: 46px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color 0.18s;
}
 
.captcha-input:focus {
  border-color: #7c5ce0;
  background: #fff;
}
 
/* ── 하단 버튼 그룹 ── */
.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
 
.btn-prev {
  flex: 1;
  height: 46px;
  background: #fff;
  color: #5645F8;
  border: 1.5px solid #5645F8;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
 
.btn-prev:hover {
  background: #f0eeff;
}
 
.btn-submit {
  flex: 1;
  height: 46px;
  background: #5645F8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s;
}
 
.btn-submit:hover {
  background: #5645F8;
}
 
.btn-submit:active {
  background: #2d26aa;
}

/* ============================================
   readonly 필드 비활성화 디자인
   join.css 파일 안, 기존 .form-group input 규칙 아래에
   추가하시면 됩니다.
   ============================================ */

.form-group input[readonly] {
  background: #eeeeee;
  border-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
}

/* 포커스가 가더라도 readonly라면 활성화된 것처럼 보이는 파란 테두리 안 나오게 */
.form-group input[readonly]:focus {
  border-color: #e0e0e0;
  background: #eeeeee;
}

/* 아이디 중복확인 버튼처럼 readonly 필드 옆에 놓인 버튼도 같이 비활성 톤으로 */
.input-row input[readonly] + .btn-check,
.form-group input[readonly] ~ .btn-check {
  background: #cfcfcf;
  cursor: not-allowed;
  pointer-events: none;
}



@media (max-width : 480px){
  main{
    padding: 50px 20px !important;
  }
  .register-card {
    padding: 40px 20px;
  }
 
  .register-card h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }
 
  .form-group input[type="text"],
  .form-group input[type="password"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .captcha-input {
    height: 40px;
    font-size: 12px;
  }
 
  .btn-check {
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }
 
  .captcha-img {
    width: 90px;
    height: 40px;
  }
 
  .captcha-text {
    font-size: 18px;
    letter-spacing: 2px;
  }
 
  .captcha-btn {
    width: 30px;
    height: 19px;
  }
 
  .captcha-input {
    height: 40px;
  }
 
  .btn-group {
    gap: 8px;
    margin-top: 20px;
  }
 
  .btn-prev,
  .btn-submit {
    height: 42px;
    font-size: 14px;
  }
  
}