/* 회원가입 공통 스타일 */
.join-container {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px 20px 70px 20px;
    margin: 0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* 키보드가 올라왔을 때 컨테이너 조정 */
.join-container.keyboard-active {
    min-height: auto;
    height: auto;
    padding-top: 5px;
    padding-bottom: 10px;
    overflow-y: auto;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
}

/* 키보드가 올라왔을 때 appCapsule 조정 */
#appCapsule.keyboard-active {
    height: auto !important;
    min-height: auto !important;
}

#appCapsule {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

.join-title {
    text-align: center;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 30px 0;
    letter-spacing: -0.5px;
}

.join-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 50px;
    font-weight: 400;
}

/* 회원가입 선택 카드 스타일 */
.join-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.join-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.join-card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.join-card-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.join-card-content {
    flex: 1;
}

.join-card-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.join-card-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 약관 동의 페이지 스타일 */
.privacy-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 40px 0 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.privacy-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.privacy-content h4 {
    color: #2c3e50;
    font-weight: 700;
    margin: 20px 0 10px 0;
    font-size: 16px;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

/* 버튼 그룹 스타일 */
.join-button-group {
    display: flex !important;
    gap: 15px;
    justify-content: center;
    margin: 30px 0 50px 0 !important;
    padding-bottom: 30px !important;
    flex-direction: row;
    align-items: center;
}

.join-btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
    letter-spacing: 0.5px;
}

.join-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.join-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.join-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.join-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.join-btn-block {
    width: 100%;
    max-width: 300px;
}

/* 회원가입 폼 스타일 */
.register-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, padding 0.3s ease;
}

/* 키보드가 올라왔을 때 폼 조정 */
.register-container.keyboard-active {
    transform: scale(0.98);
    padding: 25px 20px;
    margin-bottom: 20px;
}

.register-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.form-section {
    margin-bottom: 25px;
}

.form-section-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

/* 입력 필드 포커스 시 스크롤 보장 */
.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    scroll-margin-top: 50px;
    scroll-margin-bottom: 50px;
}

/* 키보드 대응을 위한 추가 스타일 */
.form-input {
    scroll-margin-top: 50px;
    scroll-margin-bottom: 50px;
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.form-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.form-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.form-btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* 중복확인 버튼 스타일 */
.form-btn-secondary.auth-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

.form-btn-secondary.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
}

.form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 체크박스 스타일 */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-label {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 인증번호 입력 스타일 */
.auth-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

.auth-input {
    flex: 1;
    min-width: 0;
}

.auth-btn {
    flex-shrink: 0;
    min-width: 120px;
    max-width: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    white-space: nowrap;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.auth-btn:disabled {
    background: #6c757d !important;
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 주소 검색 스타일 */
.address-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 15px;
    width: 100%;
}

.address-input {
    flex: 1;
    min-width: 0;
}

.address-btn {
    flex-shrink: 0;
    min-width: 120px;
    max-width: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    white-space: nowrap;
}

.address-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .join-container {
        padding: 15px;
    }
    
    .join-card {
        padding: 20px;
        gap: 15px;
    }
    
    .join-card-icon {
        width: 50px;
        height: 50px;
    }
    
    .join-card-icon img {
        width: 28px;
        height: 28px;
    }
    
    .join-card-title {
        font-size: 16px;
    }
    
    .join-card-description {
        font-size: 13px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-group,
    .address-group {
        flex-direction: row !important;
        gap: 10px;
        align-items: flex-end;
    }
    
    .join-button-group {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    
    .join-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .join-title {
        font-size: 24px;
    }
    
    .register-title {
        font-size: 20px;
    }
    
    .privacy-container,
    .register-container {
        padding: 20px 20px 0 20px;
    }
    
    .join-card {
        padding: 15px;
    }
}

/* 모바일에서 키보드 대응 */
@media (max-height: 600px) {
    .join-container {
        padding-top: 5px;
        padding-bottom: 15px;
    }
    
    .register-container {
        transform: scale(0.95);
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .register-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    .form-section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .form-row {
        margin-bottom: 15px;
    }
    
    .join-button-group {
        margin: 20px 0 30px 0 !important;
        padding-bottom: 20px !important;
    }
}

/* iOS Safari 키보드 대응 */
@supports (-webkit-touch-callout: none) {
    .join-container {
        /* iOS에서 키보드가 올라올 때 뷰포트 높이 조정 */
        min-height: -webkit-fill-available;
    }
}

 