/* 회원가입 전용 스타일 */
.join-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 100;
    box-sizing: border-box;
}
.join-header__back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}
.join-header__title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}
.join-header__right { width: 40px; }

.join-content {
    padding: 72px 16px 100px;
}

.join-form__group {
    margin-bottom: 20px;
}
.join-form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.join-form__label .required {
    color: #f44336;
}
.join-form__input-wrap {
    display: flex;
    gap: 8px;
}
.join-form__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
.join-form__input-wrap .join-form__input {
    flex: 1;
    min-width: 0;
    width: auto;
}
.join-form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.join-form__input.error {
    border-color: #f44336;
}
.join-form__input.verified {
    border-color: #4caf50;
    background: #f8fff8;
}
.join-form__input:disabled {
    background: #f5f5f5;
    color: #666;
}
.join-form__check-btn {
    min-width: 90px;
    height: 48px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
    cursor: pointer;
    padding: 0 12px;
}
.join-form__check-btn:disabled {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
    cursor: default;
}
.join-form__message {
    font-size: 12px;
    margin-top: 6px;
}
.join-form__message.error { color: #f44336; }
.join-form__message.success { color: #4caf50; }

/* 인증번호 입력 영역 */
.verify-code-wrap {
    display: none;
    margin-top: 12px;
}
.verify-code-wrap.show {
    display: block;
}
.verify-code-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}
.verify-code-inner .join-form__input {
    flex: 1;
}
.verify-timer {
    font-size: 14px;
    color: #f44336;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}
/* 본인인증 박스 */
.verify-box {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
}
.verify-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}
.verify-row:last-child {
    margin-bottom: 0;
}
.verify-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}
.verify-input--full {
    width: 100%;
}
.verify-btn {
    flex: 0 0 80px;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.verify-timer {
    font-size: 13px;
    color: #f5222d;
    min-width: 40px;
    text-align: center;
}
.btn-resend {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
/* 인증 완료 상태 */
.verify-complete {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #e8f5e9;
    border-radius: 6px;
}
.verify-complete__icon {
    color: #4caf50;
    font-size: 18px;
}
.verify-complete__text {
    font-size: 14px;
    font-weight: 500;
    color: #4caf50;
}
.verify-complete__info {
    font-size: 13px;
    color: #666;
    margin-left: auto;
}

/* 약관 동의 */
.join-terms {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}
.join-terms__all {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.join-terms__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
}
.join-terms__item input[type="checkbox"] {
    cursor: pointer;
}
.join-terms__item .required {
    color: #f44336;
}
.join-terms__link {
    margin-left: auto;
    color: #888;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.join-terms__link:hover {
    text-decoration: underline;
}

/* 가입 버튼 */
.join-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    box-sizing: border-box;
}
.join-footer__btn {
    width: 100%;
    height: 52px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.join-footer__btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 약관 모달 */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.terms-modal.show {
    display: flex;
}
.terms-modal__content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.terms-modal__header {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.terms-modal__title {
    font-size: 16px;
    font-weight: 600;
}
.terms-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.terms-modal__body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}
.terms-modal__footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
}
.terms-modal__agree-btn {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
