@import url("../../../css/pliki.css");

/* [pliki 테마] 회원 화면 (로그인/가입/정보수정) — 표준 mbskin 마크업 리스타일 */

#mb_login, .mbskin { max-width: 420px; margin: 60px auto; padding: 0 16px; }
.mbskin_box { border: 1px solid var(--line); border-radius: 18px; padding: 36px 30px; }
.mb_log_cate { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mb_log_cate h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.7px; }
.mb_log_cate .join { font-size: 13px; color: var(--gray); text-decoration: underline; }

#login_fs { border: 0; }
#login_fs .frm_input {
    width: 100%; padding: 14px 16px; border: 1px solid #d9d9d9; border-radius: 10px;
    font-size: 14px; margin-bottom: 10px;
}
#login_fs .frm_input:focus { outline: none; border-color: #111; }
#login_fs .btn_submit {
    width: 100%; padding: 15px 0; background: #111; color: #fff; border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 4px;
}
#login_fs .btn_submit:hover { opacity: .9; }

#login_info { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 12px; }
#login_info a { color: var(--gray); }
#login_info .chk_box label { color: #555; }

/* SNS 로그인 */
#login_sns, .sns_wrap { margin-top: 18px; text-align: center; }

/* 비회원 구매 박스 */
#mb_login h2 + p, #guest_privacy { font-size: 12px; color: var(--gray); }
#mb_login .mbskin_box + .mbskin_box, #mb_login section { margin-top: 18px; }
#guest_privacy { max-height: 120px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 10px 0; }

/* ── 회원가입 ─────────────────────────────── */
#fregister, #register_form { max-width: 640px; margin: 40px auto 60px; padding: 0 16px; }
#fregister section, #fregister .fregister_agree {
    border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 14px;
}
#fregister h1, #register_form h1 { font-size: 22px; font-weight: 800; margin-bottom: 22px; letter-spacing: -0.7px; }
#fregister h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
#fregister textarea, .fregister_agree textarea {
    width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
    font-size: 12px; color: #666; background: var(--bg-soft);
}
.fregister_agree .chk_box { margin-top: 10px; font-size: 13px; }
#btn_submit, .btn_confirm .btn_submit {
    width: 100%; padding: 15px 0; background: #111; color: #fff; border: 0; border-radius: 10px;
    font-size: 15px; font-weight: 800; cursor: pointer;
}

#register_form .frm_input, #register_form select {
    width: 100%; padding: 13px 15px; border: 1px solid #d9d9d9; border-radius: 10px; font-size: 14px;
}
#register_form th { display: block; text-align: left; padding: 14px 0 6px; font-size: 13px; font-weight: 600; border: 0; }
#register_form td { display: block; padding: 0; border: 0; }
#register_form tr { display: block; }
#register_form table, #register_form tbody { display: block; }
#register_form .frm_info, #register_form .frm_help { font-size: 12px; color: var(--gray); margin-top: 4px; }
#register_form .btn_frmline {
    padding: 12px 16px; background: #111; color: #fff; border-radius: 10px; font-size: 13px; border: 0; margin-left: 4px;
}
.register_result, #register_result { max-width: 560px; margin: 60px auto; text-align: center; }

@media (max-width: 480px) {
    #mb_login, .mbskin { margin: 30px auto; }
    .mbskin_box { padding: 26px 20px; }
}

/* 회원가입 약관동의(.register) 실제 마크업 대응 */
.register { max-width: 720px; margin: 34px auto 60px; padding: 0 16px; }
.register > form > p, #fregister > p {
    background: #fff2f2; color: #d64545; border-radius: 10px; padding: 13px 16px;
    font-size: 13px; margin-bottom: 18px; text-align: center;
}
#fregister_term, .fregister_terms, #fregister section {
    border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
#fregister section h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
#fregister textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; color: #666; background: var(--bg-soft); }
#fregister .tbl_head01 table { font-size: 12px; }
#fregister .tbl_head01 th { background: var(--bg-soft); padding: 9px; border: 1px solid var(--line); }
#fregister .tbl_head01 td { padding: 9px; border: 1px solid var(--line); }
.fregister_agree { border: 0; padding: 10px 0 0; font-size: 13px; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.fregister_agree label { cursor: pointer; }
#fregister_chkall { background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; justify-content: center; margin-bottom: 18px; }
.btn_confirm { display: flex; gap: 10px; justify-content: center; }
.btn_confirm .btn_submit { max-width: 300px; }
.btn_confirm a, .btn_cancel {
    padding: 14px 26px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff;
}

/* 마이페이지(smb_my) */
#smb_my { max-width: var(--max); margin: 0 auto; padding: 26px 20px 50px; }
#smb_my_ov { border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
#smb_my_ov h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
#smb_private { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; }
#smb_private li { color: #444; }
#smb_my_list section { border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 18px; }
#smb_my_list h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
#smb_my table { font-size: 13px; }
#smb_my th { padding: 10px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-weight: 600; }
#smb_my td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }

/* 타이틀 중복 방지: 상단 h1은 스크린리더 전용 */
#mb_login .mbskin_box > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#mb_login h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.7px; }
/* 비회원 구매 박스 */
#mb_login section, #mb_login .mbskin_box2 {
    border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; margin-top: 18px; display: block;
}
#mb_login section h2 { font-size: 16px; margin-bottom: 6px; }
#mb_login .btn_submit { margin-top: 10px; }
#mb_login a.btn_submit { display: block; text-align: center; padding: 14px 0; background: #111; color: #fff; border-radius: 10px; font-weight: 700; }

/* ── [레퍼런스 재현] 로그인 리뉴얼 ─────────────────── */
.pk-login { max-width: 400px; margin: 10px auto 70px; padding: 0 20px; }

/* 모바일 서브헤더 */
.pk-subhd { display: none; }

/* 웰컴 쿠폰 */
.pk-login-coupon { text-align: center; padding: 26px 0 6px; }
.pk-coupon-art { position: relative; display: inline-block; padding: 18px 30px; }
.pk-coupon-card {
    position: relative; display: inline-block; background: #f9575e; color: #fff;
    font-size: 21px; font-weight: 900; font-style: italic; letter-spacing: -0.5px; line-height: 1.15;
    padding: 22px 34px; border-radius: 10px; transform: rotate(-8deg);
    box-shadow: 6px 8px 0 #16161a;
}
.pk-coupon-card::before, .pk-coupon-card::after {
    content: ''; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; transform: translateY(-50%);
}
.pk-coupon-card::before { left: -7px; }
.pk-coupon-card::after { right: -7px; background: transparent; }
.pk-coupon-art .spark { position: absolute; color: #e2515a; font-size: 18px; }
.pk-coupon-art .s1 { left: -6px; top: 44%; }
.pk-coupon-art .s2 { right: -4px; top: 4px; font-size: 22px; }
.pk-coupon-art .s3 { right: 8px; bottom: 0; }
.pk-coupon-txt { font-size: 18px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.45; margin-top: 16px; }
.pk-coupon-txt em { font-style: normal; color: #f9575e; }

/* 구분선 */
.pk-login-or { position: relative; text-align: center; margin: 24px 0 20px; }
.pk-login-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.pk-login-or span { position: relative; background: #fff; padding: 0 12px; font-size: 11px; color: #bbb; }

/* 탭 */
.pk-login-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.pk-login-tabs button, .pk-login-tabs a {
    flex: 1; text-align: center; padding: 11px 0; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--bg-soft); color: #999; border: 0;
}
.pk-login-tabs .on { background: #16161a; color: #fff; }

/* 언더라인 인풋 */
.pk-line-input {
    width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 18px 2px 14px; font-size: 14px; background: transparent;
}
.pk-line-input:focus { outline: none; border-bottom-color: #111; }
.pk-pw-wrap { position: relative; }
.pk-pw-eye { position: absolute; right: 2px; bottom: 12px; color: #ccc; font-size: 15px; }

/* 원형 체크 */
.pk-login-auto { display: flex; align-items: center; margin: 18px 0 6px; font-size: 13px; }
.pk-chk-round { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.pk-login-auto label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #333; }
.pk-chk-ico {
    width: 20px; height: 20px; border-radius: 50%; background: #ddd; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 10px; transition: background .15s;
}
.pk-chk-round:checked + label .pk-chk-ico { background: #16161a; }

/* 로그인 버튼: 회색 (레퍼런스) */
.pk-login-btn {
    width: 100%; padding: 17px 0; margin-top: 14px; background: var(--bg-soft); color: #111;
    border: 0; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.pk-login-btn:hover { background: #ececef; }

/* 하단 링크 */
.pk-login-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }
.pk-login-links a { color: #555; }
.pk-login-links .join { font-weight: 700; color: #111; }

/* 비회원 구매 */
.pk-guest { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.pk-guest h2 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.pk-guest > p { font-size: 12px; color: var(--gray); margin-bottom: 12px; }
.pk-guest #guest_privacy { max-height: 110px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; color: #666; margin-bottom: 6px; }

/* 기존 mbskin 로그인 잔재 무력화 */
#mb_login { display: block; max-width: none; margin: 0; padding: 0; }

@media (max-width: 768px) {
    /* 모바일: 서브헤더 표시 + 기본 헤더 숨김 */
    .pk-subhd {
        display: flex; align-items: center; justify-content: space-between;
        height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line);
        position: sticky; top: 0; background: #fff; z-index: 95;
    }
    .pk-subhd h2 { font-size: 16px; font-weight: 700; position: absolute; left: 50%; transform: translateX(-50%); }
    .pk-subhd button, .pk-subhd a { font-size: 19px; color: #111; display: inline-flex; padding: 4px; }
    .pk-subhd-ico { display: flex; gap: 14px; }
    .pk-hd-m, .pk-promo + .pk-hd .pk-hd-m { display: none !important; }
}
