@charset "UTF-8";  

/* ========================================================================= */
/* Join Page - 회원가입 페이지 */
/* ========================================================================= */

section.inner {
    width: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.join {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================================================= */
/* 제목 */
/* ========================================================================= */

.join h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.join h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #ff8f6b 100%);
    border-radius: 2px;
}

/* ========================================================================= */
/* 약관 동의 영역 */
/* ========================================================================= */

.logincontainer {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.logincontainer > p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

/* 체크박스 영역 */
.loginCheck {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loginCheck label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--background-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.loginCheck label:hover {
    background: #e8f0fe;
    border-color: var(--primary-color);
}

.loginCheck input[type="checkbox"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.loginCheck label em {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 4px;
}

.loginCheck label a {
    color: #1976d2;
    text-decoration: underline;
    margin-left: 4px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.loginCheck label a:hover {
    color: var(--primary-color);
}

/* ========================================================================= */
/* 소셜 회원가입 버튼 */
/* ========================================================================= */

.signUpcontainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.signUpcontainer button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.signUpcontainer button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.signUpcontainer button:active::before {
    width: 300px;
    height: 300px;
}

.signUpcontainer button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 네이버 버튼 */
.signUpcontainer button.naver {
    background: #03c75a;
    color: #ffffff;
}

.signUpcontainer button.naver:hover {
    background: #02b350;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 199, 90, 0.3);
}

/* 카카오 버튼 */
.signUpcontainer button.kakao {
    background: #fee500;
    color: #3c1e1e;
}

.signUpcontainer button.kakao:hover {
    background: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

/* ========================================================================= */
/* 하단 링크 영역 */
/* ========================================================================= */

.CR {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.CR .flexcontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.CR .flexcontainer span {
    color: var(--text-tertiary);
    font-size: 14px;
}

.CR .flexitem a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.CR .flexitem a:hover {
    color: var(--primary-color);
}

.CR > p {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
}

/* ========================================================================= */
/* Responsive Media Query (모바일 최적화: 767px 이하) */
/* ========================================================================= */

@media screen and (max-width: 767px) {
    
    section.inner {
        padding: 60px 16px;
        min-height: calc(100vh - 150px);
    }
    
    .join {
        max-width: 100%;
    }
    
    /* 제목 */
    .join h2 {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    /* 약관 동의 영역 */
    .logincontainer {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .logincontainer > p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    /* 체크박스 */
    .loginCheck {
        gap: 12px;
    }
    
    .loginCheck label {
        padding: 14px;
        font-size: 14px;
        line-height: 1.5;
    }
    
    .loginCheck input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
    
    .loginCheck label a {
        font-size: 13px;
    }
    
    /* 소셜 버튼 */
    .signUpcontainer {
        gap: 10px;
        margin-bottom: 32px;
    }
    
    .signUpcontainer button {
        height: 52px;
        font-size: 15px;
    }
    
    .signUpcontainer button img {
        width: 22px;
        height: 22px;
    }
    
    /* 하단 링크 */
    .CR {
        padding: 20px 0;
    }
    
    .CR .flexcontainer {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .CR .flexcontainer span {
        font-size: 12px;
    }
    
    .CR .flexitem a {
        font-size: 13px;
    }
    
    .CR > p {
        font-size: 12px;
    }
}

/* ========================================================================= */
/* 추가 유틸리티 */
/* ========================================================================= */

/* 폼 유효성 에러 */
.loginCheck label.error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* 전체 동의 체크박스 (있을 경우) */
.all-check {
    padding: 20px !important;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dc 100%) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 600 !important;
}

.all-check input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
}

/* 로딩 상태 */
.signUpcontainer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signUpcontainer button:disabled:hover {
    transform: none;
}