/* =================================================================
   CoreContact 인증 페이지 통합 스타일시트 (style_auth.css)
   ================================================================= */

/* 1. 페이지 전체 레이아웃 래퍼 (Wrapper)
   - 네비게이션바, 푸터와의 위치 문제를 해결합니다.
----------------------------------------------------------------- */
.auth-main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 120px); /* (네비게이션바 + 푸터 높이)를 제외한 최소 높이 */
    padding: 20px;
    box-sizing: border-box;
}

/* 2. 중앙 컨테이너 (.auth-container)
   - 실제 폼을 감싸는 흰색 박스입니다.
----------------------------------------------------------------- */
.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 40px 20px; /* 상하, 좌우 여백 */
    padding: 40px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

/* 3. 폼 내부 요소 (h1, form-group, input 등)
----------------------------------------------------------------- */
.auth-container h1 {
    color: #0A192F; 
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 35px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #64FFDA; 
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
}

/* 4. 버튼 및 링크 (.btn-auth, .auth-links)
----------------------------------------------------------------- */
.btn-auth {
    width: 100%;
    padding: 14px 20px;
    background-color: #0A192F; 
    color: #E6F1FF; 
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-auth:hover {
    background-color: #1b64da; 
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.auth-links a {
    color: #1b64da; 
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #0A192F;
}

/* 5. 회원가입 전용 UI (.segmented-control, .user-type-description 등)
----------------------------------------------------------------- */
/* 가입 유형 선택 (슬라이딩 바 / Segmented Control) */
.segmented-control {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.segmented-control input[type="radio"] {
    display: none; /* 라디오 버튼 숨기기 */
}

.segmented-control label {
    flex: 1; /* 모든 라벨이 동일한 너비를 갖도록 설정 */
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    background-color: #f7f9fc;
    transition: background-color 0.3s, color 0.3s;
    border-right: 1px solid #ccc;
}

.segmented-control label:last-child {
    border-right: none;
}

.segmented-control input[type="radio"]:checked + label {
    background-color: #0A192F;
    color: #E6F1FF;
    font-weight: bold;
}

/* 휴대폰 인증 버튼 */
.btn-auth-full {
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-auth-full:hover {
    background-color: #333;
}

/* 가입 유형별 설명 */
.user-type-description {
    padding: 15px;
    margin-top: -10px;
    margin-bottom: 20px;
    background-color: #f7f9fc;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    display: none; /* 기본적으로 숨김 */
}

/* 6. 알림 메시지 (.message)
----------------------------------------------------------------- */
.message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 7. 모바일 반응형 (@media)
----------------------------------------------------------------- */
@media (max-width: 768px) {
    .auth-main-wrapper {
        min-height: calc(100vh - 110px); /* 모바일 푸터가 더 작다면 조정 */
    }
    
    .auth-container {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 30px 25px;
    }

    .auth-container h1 {
        font-size: 24px;
    }
}