@charset "utf-8";

/* ===========================================
   YUJIN 테마 - 멤버 스킨 스타일
=========================================== */

/* 공통 스타일 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f8f9fb;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 메인 컨테이너 */
.mbskin {
    position: relative;
    margin: 80px auto 0;
    width: 420px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mbskin_box {
    padding: 50px 40px;
    background: #fff;
}

/* 로고 영역 */
.login_logo {
    margin-bottom: 50px;
}

.login_logo img {
    max-width: 140px;
    height: auto;
}

/* ===========================================
   로그인 페이지 스타일
=========================================== */

/* 입력 필드 컨테이너 */
.input_wrapper {
    position: relative;
    margin-bottom: 20px;
}

/* 입력 필드 스타일 */
.frm_input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1.5px solid #e8eaed;
    border-radius: 16px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #333;
    font-weight: 400;
}

.frm_input:focus {
    outline: none;
    border-color: #3182f6;
    box-shadow: 0 0 0 4px rgba(49, 130, 246, 0.1);
    background: #fafbfc;
}

.frm_input::placeholder {
    color: #9ca3af;
    font-size: 15px;
    font-weight: 400;
}

/* 아이디 비밀번호 찾기 링크 */
.find_link {
    text-align: center;
    margin: 24px 0 32px;
}

.find_link a {
    color: #3182f6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.find_link a:hover {
    color: #1e40af;
    background: rgba(49, 130, 246, 0.05);
}

/* 로그인 버튼 */
.btn_login {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #3182f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.3);
}

.btn_login:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 130, 246, 0.4);
}

.btn_login:active {
    transform: translateY(0);
}

/* 회원가입 버튼 */
.btn_register {
    display: block;
    width: 100%;
    height: 56px;
    line-height: 54px;
    background: #ffffff;
    color: #3182f6;
    border: 1.5px solid #e8eaed;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}

.btn_register:hover {
    background: #fafbfc;
    border-color: #3182f6;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.1);
}

/* ===========================================
   회원가입 페이지 스타일
=========================================== */

/* 회원가입 컨테이너 */
.register.mbskin {
    width: 600px;
    max-width: 90%;
    margin: 60px auto;
}

.register .mbskin_box {
    padding: 40px;
}

/* 회원가입 헤더 */
.register_header {
    text-align: center;
    margin-bottom: 40px;
}

.register_header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.register_desc {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* 폼 섹션 */
.form_section {
    margin-bottom: 30px;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fafbfc;
    border-bottom: 1px solid #e8eaed;
}

.section_header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.required_badge {
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.optional_badge {
    background: #9ca3af;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.form_content {
    padding: 24px;
}

/* 입력 그룹 */
.input_group {
    margin-bottom: 20px;
}

.input_group:last-child {
    margin-bottom: 0;
}

.input_group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.help_text {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* 본인인증 그룹 */
.cert_group {
    text-align: center;
}

.btn_cert {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px 10px;
    background: #3182f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn_cert:hover {
    background: #1e40af;
}

.cert_complete {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 12px;
    color: #16a34a;
    font-size: 14px;
    margin-top: 10px;
}

.cert_icon {
    margin-right: 8px;
    font-size: 16px;
    color: #22c55e;
}

/* 체크박스 그룹 */
.checkbox_group {
    margin-bottom: 16px;
}

.checkbox_group label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.checkbox_icon {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: white;
}

.selec_chk:checked + label .checkbox_icon {
    background: #3182f6;
    border-color: #3182f6;
}

.selec_chk:checked + label .checkbox_icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* 주소 입력 그룹 */
.address_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zip_group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zip_input {
    flex: 1;
    max-width: 120px;
}

.address_group .frm_input {
    margin-bottom: 0;
}

/* 캡차 그룹 */
.captcha_group {
    text-align: center;
}

.captcha_group table {
    margin: 0 auto;
}

/* 버튼 영역 */
.btn_area {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.btn_cancel,
.btn_submit {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn_cancel {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn_cancel:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn_submit {
    background: #3182f6;
    color: white;
}

.btn_submit:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn_submit:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* 숨김 체크박스 */
.selec_chk {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* 폼 필드셋 */
#login_fs {
    border: none;
    padding: 0;
    margin: 0;
}

#login_fs legend {
    position: absolute;
    left: -9999px;
}

/* 자동로그인 체크박스 (숨김 처리) */
.login_auto {
    display: none !important;
}

/* 접근성 개선 */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 에러/성공 상태 */
.frm_input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.frm_input.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* 쇼핑몰 관련 스타일 */
#mb_login_notmb {
    margin: 30px auto;
    padding: 24px 32px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e8eaed;
}

#mb_login_notmb h2 {
    font-size: 1.25em;
    margin: 20px 0 10px;
    color: #333;
    font-weight: 600;
}

#guest_privacy {
    border: 1px solid #d1d5db;
    text-align: left;
    line-height: 1.6em;
    color: #6b7280;
    background: #ffffff;
    padding: 16px;
    height: 150px;
    margin: 10px 0;
    overflow-y: auto;
    border-radius: 12px;
}

.chk_box {
    position: relative;
    margin: 20px 0;
}

.chk_box input[type="checkbox"] + label {
    position: relative;
    color: #374151;
    padding-left: 32px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 20px;
    height: 20px;
    display: block;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 6px;
}

.chk_box input[type="checkbox"]:checked + label {
    color: #111827;
}

.chk_box input[type="checkbox"]:checked + label span {
    background: #3182f6;
    border-color: #3182f6;
}

.chk_box input[type="checkbox"]:checked + label span:after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 5px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.btn_confirm .btn_submit {
    display: block;
    width: 100%;
    height: 52px;
    line-height: 52px;
    text-align: center;
    background: linear-gradient(135deg, #3182f6 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(49, 130, 246, 0.3);
}

.btn_confirm .btn_submit:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(49, 130, 246, 0.4);
}

/* 비회원 주문조회 */
#mb_login_od_wr {
    margin: 30px auto;
    padding: 24px 32px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e8eaed;
}

#mb_login_od_wr h2 {
    font-size: 1.25em;
    margin: 20px 0 10px;
    color: #333;
    font-weight: 600;
}

#mb_login_od_wr .frm_input {
    margin: 10px 0 0;
}

#mb_login_od_wr p {
    background: #f3f4f6;
    margin: 20px 0 0;
    padding: 16px 20px;
    line-height: 1.5em;
    border-radius: 12px;
    color: #6b7280;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mbskin {
        width: 95%;
        margin: 40px auto;
        border-radius: 20px;
    }

    .mbskin_box {
        padding: 40px 24px;
    }

    .register.mbskin {
        width: 95%;
        margin: 40px auto;
    }

    .register .mbskin_box {
        padding: 32px 24px;
    }

    .register_header h1 {
        font-size: 24px;
    }

    .register_desc {
        font-size: 14px;
    }

    .section_header {
        padding: 16px 20px;
    }

    .section_header h2 {
        font-size: 16px;
    }

    .form_content {
        padding: 20px;
    }

    .btn_area {
        flex-direction: column;
        gap: 8px;
    }

    .btn_cancel,
    .btn_submit {
        height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .frm_input,
    .btn_login,
    .btn_register {
        height: 52px;
        font-size: 15px;
    }

    .btn_register {
        line-height: 50px;
    }

    .section_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .required_badge,
    .optional_badge {
        align-self: flex-end;
    }

    .mbskin_box {
        padding: 32px 20px;
    }

    .login_logo img {
        max-width: 120px;
    }
}
