/* register.css - 최종 버전: 반영형(Responsive) 디자인 적용 */

/* ========================================================= */
/* 1. 기본 스타일 및 레이아웃 */
/* ========================================================= */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa; /* 밝은 배경 */
    color: #343a40;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.registration-container {
    width: 100%;
    max-width: 750px; /* 데스크톱 최대 너비 */
    margin: 40px 20px;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #0056b3; 
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h3 {
    position: relative;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #0056b3;
    font-weight: 600;
    font-size: 1.4rem;
}
h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; 
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

/* ========================================================= */
/* 2. 폼 요소 스타일 */
/* ========================================================= */
.info-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #e9ecef; 
    border-radius: 10px;
    background-color: #fefefe;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.input-group input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 라디오/체크박스 그룹 */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.radio-group label, .checkbox-group label {
    font-weight: 400;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* OTP 그룹 */
.otp-group {
    display: flex;
    gap: 10px;
}
.otp-group input {
    flex-grow: 1;
}

/* 버튼 공통 스타일 */
button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.95rem;
}

/* 주요 버튼 (가입 완료) */
button[type="submit"] {
    width: 100%;
    background-color: #28a745;
    color: white;
    font-size: 1.2rem;
    margin-top: 30px;
    padding: 15px;
}
button[type="submit"]:hover {
    background-color: #218838;
}

/* 부차적 버튼 (OTP 발송, 추가 등) */
#btnSendOtp, #btnVerifyOtp, button[onclick^="add"] {
    background-color: #007bff;
    color: white;
    white-space: nowrap;
}
#btnSendOtp:hover, #btnVerifyOtp:hover, button[onclick^="add"]:hover {
    background-color: #0056b3;
}
.remove-btn {
     background-color: #dc3545 !important;
}
.remove-btn:hover {
     background-color: #c82333 !important;
}

/* 약관 보기 버튼 */
.input-group label button {
    background: none;
    color: #007bff;
    padding: 0 5px;
    font-weight: 500;
    text-decoration: underline;
    font-size: 0.95rem;
}

/* 회사 사이트 URL 동적 추가 */
.site-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.site-input-row input {
    margin-bottom: 0 !important;
}

/* ========================================================= */
/* 3. SNS 간편 로그인 스타일 */
/* ========================================================= */
.sns-login-section {
    margin-bottom: 40px;
    text-align: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background-color: #fefefe;
}
.sns-instruction {
    color: #6c757d;
    margin-bottom: 20px;
}
.sns-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}
.sns-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 1.0rem;
    color: #343a40; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.sns-btn:hover {
    opacity: 0.9;
}
.kakao { background-color: #FEE500; color: #3C1E1E; }
.naver { background-color: #03C75A; color: white; }
.google { background-color: white; border: 1px solid #ced4da; color: #343a40; }
.divider {
    position: relative;
    height: 1px;
    background-color: #ced4da;
    margin: 25px 0;
}
.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background-color: #ffffff;
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========================================================= */
/* 4. 경력 섹션 스타일 */
/* ========================================================= */
.career-entry {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #ffffff;
}
.career-entry .input-group {
    margin-bottom: 10px;
}
.career-entry h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.1rem;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 5px;
    margin-bottom: 10px;
}


/* ========================================================= */
/* 5. 서명 패드 스타일 */
/* ========================================================= */
.signature-pad-container {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
#signatureCanvas {
    width: 100%;
    background-color: #fff;
    display: block; 
    border-radius: 6px;
}
#signatureSection button {
    margin-top: 15px;
    background-color: #ffc107;
    color: #343a40;
}
#signatureSection button:hover {
    background-color: #e0a800;
}

/* ========================================================= */
/* 6. 모달 스타일 */
/* ========================================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}
.close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}
#modal-header {
    color: #007bff;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
#modal-content p {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px; 
    font-size: 0.95rem;
    color: #555;
}

/* ========================================================= */
/* 7. 모바일 대응 (반영형 핵심) */
/* ========================================================= */
@media (max-width: 600px) {
    .registration-container {
        margin: 20px 10px;
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    /* OTP 그룹을 세로로 배치 */
    .otp-group, .site-input-row {
        flex-direction: column;
    }
    .otp-group button, .site-input-row button {
        width: 100%;
        margin-top: 5px; /* 버튼 위에 간격 추가 */
    }
    /* SNS 버튼 그룹도 세로로 배치 (이미 기본적으로 세로이지만 명확히) */
    .sns-buttons-group {
        flex-direction: column;
    }
    /* 경력 입력 기간 필드를 100%로 설정 */
    .career-entry .input-group > div {
        flex-direction: column;
    }
    .career-entry .input-group > div input {
        width: 100% !important;
    }
    /* 모달 내용이 화면을 너무 많이 가리지 않도록 조정 */
    .modal-content {
        margin: 5% auto;
    }
}