/* ==========================================================================
   PAGE: SIGN UP (회원가입)
   ========================================================================== */

/* 소셜 로그인 버튼 */
.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 54px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-naver {
    background-color: #03C75A;
    color: #fff;
    border: none;
}

.btn-naver:hover {
    background-color: #02b351;
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

.btn-kakao {
    background-color: #FEE500;
    color: #000000;
    border: none;
}

.btn-kakao:hover {
    background-color: #fdd835;
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
    font-weight: 500;
}

/* 1. 메인 컨테이너 (화면 중앙 정렬) */
main {
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 위쪽 정렬 (내용이 길어서 center는 비추) */
    background-color: #f9f9f9;
    padding: 60px 20px;
}

/* 2. 가입 박스 (흰색 카드) */
.join-wrap {
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* 타이틀 */
.join-wrap h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 40px;
}

/* 3. 스텝퍼 (Step Indicator) */
.join-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* 동그라미 */
.dot1, .dot2 {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; font-size: 14px;
    margin: 0 auto 8px;
    border: 2px solid #ddd;
    background-color: #fff; color: #bbb;
    transition: 0.3s;
}

/* 현재 단계 활성화 */
[data-current="1"] .dot1,
[data-current="2"] .dot2 { /* (필요에 따라 JS로 data-current 변경) */
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(59, 127, 59, 0.3);
}
/* 여기서는 1단계 활성화 (기본) */
.dot1 {
    background-color: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

.label { font-size: 13px; color: #888; font-weight: 500; }
.step:first-child .label { color: var(--c-primary); font-weight: 700; }

/* 연결선 */
.join-stepper .bar {
    width: 80px; height: 2px;
    background-color: #eee;
    margin: 0 15px 25px; /* 라벨 높이 고려 */
}


/* 4. 입력 폼 그룹 (.info-wrap) */
.info-wrap > div {
    margin-bottom: 25px;
}

/* 라벨 스타일 */
.info-wrap p {
    font-size: 14px; font-weight: 700; color: #333;
    margin-bottom: 8px; display: block;
}
.info-wrap p span { color: #e74c3c; margin-left: 3px; } /* 필수 표시 * */

/* 기본 인풋 */
.info-wrap input[type="text"],
.info-wrap input[type="password"] {
    width: 100%; height: 50px;
    border: 1px solid #ddd; border-radius: 6px;
    padding: 0 15px; font-size: 15px; color: #111;
    box-sizing: border-box; transition: 0.2s;
}
.info-wrap input:focus {
    border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px rgba(59, 127, 59, 0.1);
}

/* 5. 버튼이 있는 입력 그룹 (아이디, 휴대폰) */
.id-box, .phone-box, .phone-cert-box {
    display: flex; gap: 10px; align-items: flex-end;
}

.id-input-box, .phone-input-box {
    flex: 1; /* 인풋 영역 늘리기 */
}

/* 버튼 박스 & 버튼 */
.id-btn-box, .phone-btn-box {
    width: 100px; flex-shrink: 0;
}

.id-btn-box button, .phone-btn-box button {
    width: 100%; height: 50px;
    background-color: #333; color: #fff;
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: 0.2s;
}
.id-btn-box button:hover, .phone-btn-box button:hover {
    background-color: #111;
}

/* 휴대폰 인증번호 박스 (초기엔 숨김 필요할 수도 있음) */
.phone-cert-box { margin-top: 10px; display: none; } /* JS로 show */


/* 6. 약관 동의 (.agree-box) */
.agree-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.checkbox-input {
    display: inline; align-items: center; gap: 10px;
    font-size: 14px; color: #333; font-weight: 500; cursor: pointer;
}
.checkbox-input input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--c-primary);
    cursor: pointer;
}

.agreement-impor-box label span { color: #e74c3c; font-weight: 700; margin-right: 5px; }
.agreement-impor-box a {
    font-size: 12px; color: #888; text-decoration: underline; margin-left: 5px;
}


/* 7. 가입완료 버튼 */
.submit-btn {
    display: block; width: 100%; height: 60px;
    background-color: var(--c-primary); color: #fff;
    font-size: 20px; font-weight: 800;
    border: none; border-radius: 8px;
    cursor: pointer; margin-top: 40px;
    box-shadow: 0 10px 20px rgba(59, 127, 59, 0.2);
    transition: 0.2s;
}



/* 8. 가입완료 팝업 (.popup-wrap) */
.popup-wrap {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999;
    display: none; /* JS 제어 */
    justify-content: center; align-items: center;
}

.popup-back {
    background: #fff; width: 320px; padding: 40px 30px;
    border-radius: 16px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: popUp 0.3s ease-out;
}

.check-box {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--c-primary);
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 20px;
}
.check-box img { width: 30px; height: auto; filter: brightness(0) invert(1); }

#joinDoneTitle { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 10px; }
#joinDoneDesc { font-size: 15px; color: #666; margin-bottom: 30px; }

.all-next-login-btn {
    display: block; width: 100%; height: 50px; line-height: 50px;
    background: #111; color: #fff; font-weight: 700; border-radius: 8px;
    text-decoration: none;
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* --- 반응형 (Mobile) --- */
@media (max-width: 768px) {
    main { padding: 30px 15px; }
    .join-wrap { padding: 30px 20px; }
    
    .id-box, .phone-box, .phone-cert-box {
        flex-direction: column; align-items: stretch; gap: 10px;
    }
    .id-btn-box, .phone-btn-box { width: 100%; }
    .submit-btn { height: 50px; font-size: 18px; }
}