/* ==========================================================================
   회원 스킨 (prestige_login) 공통 스타일
   ========================================================================== */

/* --- 공통 컨테이너 --- */
.login-container, .register-container, .confirm-container, .password-lost-container {
    max-width: 760px;
    margin: 40px auto;
}
.confirm-container, .password-lost-container {
    max-width: 520px;
}

/* --- 공통 폼 박스 --- */
.login-box, .terms-box, .form-box, .confirm-box, .password-lost-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* --- 공통 헤더 --- */
.login-header, .terms-header, .form-header, .confirm-header, .password-lost-header {
    padding: 40px;
    text-align: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
.login-header h2, .terms-header h2, .form-header h2, .confirm-header h2, .password-lost-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #2c3e50;
    margin: 0 0 8px 0;
}
.login-header p, .terms-header p, .form-header p, .confirm-header p, .password-lost-header p {
    font-size: 16px;
    color: #34495e;
    margin: 0;
}

/* --- 공통 바디 --- */
.login-body, .terms-body, .form-body, .confirm-body, .password-lost-body {
    padding: 30px 40px;
}
.form-body {
    padding-top: 10px;
}

/* --- 공통 푸터 --- */
.login-footer, .terms-footer, .form-footer, .confirm-footer, .password-lost-footer {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

/* --- 공통 버튼 --- */
.cta-button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 700;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.cta-button:hover {
    background-color: #34495e;
    color: #fff;
}
.btn_cancel {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}
.btn_cancel:hover {
    background-color: #5a6268;
    color: #fff;
}

/* --- 폼 요소 --- */
.form-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid #f1f3f5; }
.form-section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-section h3 { font-size: 20px; font-weight: 700; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f1f3f5; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group .frm_input { width: 100%; height: 48px; padding: 0 15px; border: 1px solid #ced4da; border-radius: 8px; font-size: 15px; box-sizing: border-box; }
.form-group .frm_input:focus { outline: none; border-color: #2c3e50; box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1); }
.form-info { font-size: 13px; color: #868e96; margin-top: 8px; }
.fld_required { color: #e53e3e; font-weight: bold; margin-left: 5px; }

/* --- 체크박스 --- */
.chk_box { display: flex; align-items: center; }
.chk_box label { margin-left: 5px; cursor: pointer; font-weight: 500; }

/* --- 로그인 페이지 --- */
.login-body .form-group .input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.login-body .frm_input.with-icon { padding-left: 40px; }
.login-footer { justify-content: space-between; }
.login-links { text-align: center; padding: 20px; }
.login-links a { color: #495057; text-decoration: none; margin: 0 10px; }
.login-links a:hover { text-decoration: underline; }

/* --- 약관 페이지 --- */
.terms-body { padding: 30px 40px; }
.terms-content { margin-bottom: 15px; }
.terms-content h3 { font-size: 18px; font-weight: 700; color: #2c3e50; margin-bottom: 10px; }
.terms-content textarea { width: 100%; height: 150px; padding: 15px; border: 1px solid #ced4da; border-radius: 8px; font-size: 14px; line-height: 1.6; resize: vertical; background-color: #f8f9fa; }
.terms-check { margin-bottom: 30px; }
.terms-footer { justify-content: space-between; }
.all-check label { font-weight: 700; font-size: 16px; }

/* --- 정보입력/수정 페이지 --- */
.register-container .form-group { max-width: 480px; }
.form-group-address .frm_input { display: inline-block; width: calc(100% - 110px); margin-right: 10px; }
.form-group-address .btn_frmline { width: 100px; height: 48px; padding: 0; border-radius: 8px; vertical-align: top; background: #e9ecef; border:1px solid #ced4da; cursor:pointer;}
.form-group-address .frm_address { display: block; width: 100%; margin-top: 8px; }
.register-container .form-footer { justify-content: flex-end; gap: 10px; }
.is-captcha #captcha { border: none; padding: 0; }
.is-captcha #captcha_info { display: none; }

/* --- 비밀번호 확인 페이지 --- */
.confirm-box { text-align: center; }
.confirm-text { font-size: 16px; color: #34495e; line-height: 1.7; margin: 0; }
.confirm-text strong { color: #2c3e50; font-weight: 700; }
.confirm-body .form-group { max-width: 320px; margin-left: auto; margin-right: auto; }
.confirm-footer .cta-button { width: 100%; max-width: 320px; }

/* --- ID/PW 찾기 페이지 --- */
.password-lost-box { text-align: center; }
.password-lost-body .form-group { max-width: 320px; margin-left: auto; margin-right: auto; }
.password-lost-footer .cta-button { width: 100%; max-width: 320px; }

/* --- 소셜 로그인 --- */
.social-login-box { padding: 30px 40px; border-top: 1px solid #e9ecef; text-align: center; }
.terms-box .social-login-box { border-top: none; border-bottom: 1px solid #e9ecef; }
.sns-wrap { margin: 0 auto; max-width: 480px; }
.sns-wrap h2, .sns-wrap h3 { font-size: 14px; color: #868e96; margin-bottom: 20px; position: relative; overflow: hidden; text-align: center; }
.sns-wrap h3:before, .sns-wrap h3:after { content: ''; position: absolute; top: 50%; width: 50%; height: 1px; background: #e9ecef; }
.sns-wrap h3:before { right: 100%; margin-right: 15px; }
.sns-wrap h3:after { left: 100%; margin-left: 15px; }
.sns-icon { display: inline-block; width: 48px; height: 48px; margin: 0 8px; border-radius: 50%; background-size: cover; background-position: center center; text-indent: -9999px; overflow: hidden; transition: all 0.2s ease-in-out; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.sns-icon:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.15); }

.form-group-social { background-color: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #e9ecef; }
.my_social_link_box ul { list-style: none; padding: 0; margin: 0; }
.my_social_link_box li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }
.my_social_link_box li:last-child { border-bottom: none; }
.my_social_link_box .social_icon { font-weight: 600; font-size: 15px; }
.my_social_link_box .connected_msg { color: #20c997; font-weight: 700; }
.my_social_link_box .btn_social_disconnect { background: #e6e6e6; color: #333; padding: 5px 10px; text-decoration: none; border-radius: 5px; font-size: 13px; }
/* --- 아이디 중복확인 버튼 스타일 (추가) --- */
.form-group .input-group {
    display: flex;
    gap: 8px; /* 입력창과 버튼 사이 간격 */
}
.form-group .input-group .frm_input {
    flex-grow: 1; /* 입력창이 남은 공간을 모두 차지하도록 설정 */
}
.form-group .input-group .btn_frmline {
    flex-shrink: 0;
    width: 100px;
    height: 48px;
    padding: 0;
    border-radius: 8px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.form-group .input-group .btn_frmline:hover {
    background-color: #dee2e6;
}

/* --- 결과 메시지 스타일 (추가) --- */
#msg_mb_id {
    display: block;
    padding-top: 8px;
    font-weight: bold;
    font-size: 13px;
}
#msg_mb_id.good {
    color: #28a745; /* 성공: 녹색 */
}
#msg_mb_id.bad {
    color: #dc3545; /* 오류: 빨간색 */
}
