@charset "utf-8";
/* =========================================================
   삼신담 로그인 / 회원가입 (sd/auth/*) — 카드형
   ========================================================= */
.sd-shop__container:has(.sd-auth) > .sd-pagehead { display: none; }
.sd .sd-main .sd-shop--auth #container,
.sd .sd-main .sd-shop__container:has(.sd-auth) { padding-top: 64px; }

.sd-auth { width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sd-auth--wide { max-width: 640px; }
.sd-auth__card {
    background: #fff; border: 1px solid #ebe6db; border-radius: 16px;
    padding: 44px 40px 36px; box-shadow: 0 12px 40px rgba(69,61,45,.06);
}
.sd-auth__card--sub { padding: 28px 32px; box-shadow: none; background: #fbf9f4; }
.sd-auth__card--center { text-align: center; }
.sd-auth__head { margin-bottom: 28px; text-align: center; }
.sd-auth__title {
    margin: 0; padding: 0; font-family: var(--sd-serif); font-weight: 600; font-size: 28px; line-height: 1.35;
    letter-spacing: -.03em; color: var(--sd-ink); background: none; border: 0;
}
.sd-auth__sub { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--sd-muted); }
.sd-auth__subtitle { margin: 0 0 6px; font-family: var(--sd-serif); font-weight: 600; font-size: 18px; color: var(--sd-ink); }
.sd-auth__note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: #8a8478; }
.sd-auth__note strong { color: var(--sd-green); }

.sd-auth__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.sd-field { display: flex; flex-direction: column; gap: 8px; }
.sd-field__label { font-size: 13px; font-weight: 600; color: #4e493f; }
.sd-shop .sd-input {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1px solid var(--sd-line); border-radius: 10px; background: #fff;
    font-size: 15px; color: var(--sd-ink); transition: border-color .2s, box-shadow .2s;
}
.sd-shop .sd-input::placeholder { color: #b4ad9f; }
.sd-shop .sd-input:focus { border-color: var(--sd-green); box-shadow: 0 0 0 4px rgba(72,46,41,.1); outline: none; }
.sd-input-wrap { position: relative; }
.sd-input-wrap .sd-input { padding-right: 52px; }
.sd-shop .sd-input-eye {
    position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 8px; border: 0;
    background: transparent center / 20px no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.sd-shop .sd-input-eye.is-on {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23304b3b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/><path d='M3 3l18 18'/></svg>");
}

.sd-check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; line-height: 20px; color: #4e493f; text-align: left; }
.sd-check input {
    appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
    width: 18px; height: 18px; border: 1.5px solid #c9c1b3; border-radius: 5px; background: #fff center / 12px no-repeat;
    transition: background-color .15s, border-color .15s; cursor: pointer;
}
.sd-check input:checked {
    background-color: var(--sd-green); border-color: var(--sd-green);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.2l2.2 2.2L9.5 3.6'/></svg>");
}
.sd-check input:focus-visible { outline: 2px solid var(--sd-green); outline-offset: 2px; }
.sd-check em { font-style: normal; color: var(--sd-green); font-weight: 700; }

.sd-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.sd-shop a.sd-auth__find { font-size: 13px; color: var(--sd-muted) !important; }
.sd-shop a.sd-auth__find:hover { color: var(--sd-green) !important; }

.sd-auth__btn {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0;
    border-radius: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s; cursor: pointer;
}
.sd-shop .sd-auth__btn--primary { background: var(--sd-green) !important; border: 1px solid var(--sd-green) !important; color: #fff !important; }
.sd-shop .sd-auth__btn--primary:hover { background: var(--sd-green-deep) !important; }
.sd-shop .sd-auth__btn--line { background: #fff !important; border: 1px solid var(--sd-green) !important; color: var(--sd-green) !important; }
.sd-shop .sd-auth__btn--line:hover { background: rgba(72,46,41,.05) !important; }
.sd-auth__form .sd-auth__btn { margin-top: 6px; }
.sd-auth__card--sub .sd-check { margin: 14px 0; }

.sd-auth__divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; font-size: 13px; color: #8a8478; }
.sd-auth__divider::before, .sd-auth__divider::after { content: ""; flex: 1; height: 1px; background: #ebe6db; }
.sd-auth__benefit { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: #8a8478; }
.sd-auth__foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--sd-muted); }
.sd-shop .sd-auth__foot a { color: var(--sd-green) !important; font-weight: 700; margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }

.sd-auth__terms {
    max-height: 200px; overflow: auto; margin-top: 10px; padding: 14px 16px;
    background: #fbf9f4; border: 1px solid #ebe6db; border-radius: 10px;
    font-size: 12px; line-height: 1.7; color: var(--sd-body); text-align: left;
}
.sd-auth__table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 12px; line-height: 1.5; text-align: left; }
.sd-auth__table th { padding: 8px; background: #f8f4eb; color: #4e493f; font-weight: 600; border-bottom: 1px solid var(--sd-line); }
.sd-auth__table td { padding: 8px; border-bottom: 1px solid #ebe6db; color: var(--sd-body); vertical-align: top; }

/* 단계 표시 */
.sd-steps-bar { display: flex; justify-content: center; margin: -8px 0 28px; padding: 0; list-style: none; }
.sd-steps-bar li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; font-size: 12px; color: #b4ad9f; }
.sd-steps-bar li + li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 1.5px; background: #e2ddd3; z-index: 0; }
.sd-steps-bar li.is-done + li::before { background: var(--sd-green); }
.sd-steps-bar__no {
    position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: 1.5px solid #e2ddd3; font-size: 12px; font-weight: 700; color: #b4ad9f;
}
.sd-steps-bar li.is-done .sd-steps-bar__no { background: var(--sd-green); border-color: var(--sd-green); color: #fff; }
.sd-steps-bar li.is-current .sd-steps-bar__no { border-color: var(--sd-green); color: var(--sd-green); box-shadow: 0 0 0 4px rgba(72,46,41,.1); }
.sd-steps-bar li.is-current, .sd-steps-bar li.is-done { color: var(--sd-green); font-weight: 600; }

/* 약관 동의 */
.sd-agree-all {
    display: flex; align-items: center; gap: 12px; padding: 18px; cursor: pointer; text-align: left;
    background: #f8f4eb; border: 1px solid #ebe6db; border-radius: 12px; transition: border-color .2s, background-color .2s;
}
.sd-agree-all:has(input:checked) { border-color: var(--sd-green); background: #f6f2ec; }
.sd-agree-all input {
    appearance: none; -webkit-appearance: none; flex: none; margin: 0;
    width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c9c1b3; background: #fff center / 14px no-repeat; cursor: pointer;
}
.sd-agree-all input:checked {
    background-color: var(--sd-green); border-color: var(--sd-green);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 6.2l2.2 2.2L9.5 3.6'/></svg>");
}
.sd-agree-all > span { display: flex; flex-direction: column; gap: 2px; }
.sd-agree-all strong { font-size: 16px; color: var(--sd-ink); }
.sd-agree-all small { font-size: 12px; color: var(--sd-muted); }
.sd-agree-list { list-style: none; margin: 8px 0 24px; padding: 0 4px; }
.sd-agree { padding: 12px 0; border-bottom: 1px solid #f2ede3; }
.sd-agree:last-child { border-bottom: 0; }
.sd-agree__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-shop .sd-agree__toggle { flex: none; font-size: 12px; color: #8a8478; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 4px; }
.sd-auth__actions { display: flex; gap: 10px; margin-top: 8px; }
.sd-auth__actions .sd-auth__btn { flex: 1; }

/* 가입 완료 */
.sd-auth__done { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #f2ece4; color: var(--sd-green); }
.sd-auth__info { margin: 0 0 24px; padding: 18px 20px; background: #fbf9f4; border-radius: 12px; text-align: left; font-size: 13px; line-height: 1.7; color: var(--sd-body); }
.sd-auth__info dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; margin: 10px 0 0; }
.sd-auth__info dt { color: #8a8478; }
.sd-auth__info dd { margin: 0; font-weight: 600; color: var(--sd-ink); }

/* 정보 입력 폼 (기존 그누보드 마크업 재스타일) */
.sd-auth .register { margin: 0; padding: 0; width: auto; max-width: none; }
.sd-auth #register_form, .sd-auth .register_form_inner { margin: 0 0 28px; padding: 0; background: none; border: 0; box-shadow: none; }
.sd-auth .register_form_inner h2 {
    margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid #ebe6db;
    font-family: var(--sd-serif); font-weight: 600; font-size: 17px; color: var(--sd-ink); background: none; text-align: left;
}
.sd-auth .register_form_inner ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px 12px; }
.sd-auth .register_form_inner li { width: 100%; margin: 0; padding: 0; float: none; }
.sd-auth .register_form_inner li.half_input { width: calc(50% - 6px); }
.sd-auth .register_form_inner label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #4e493f; }
.sd-auth .register_form_inner label.inline, .sd-auth .register_form_inner .chk_box label { display: inline; margin: 0; font-weight: 400; }
.sd-auth .register_form_inner .frm_input,
.sd-auth .register_form_inner input[type="text"],
.sd-auth .register_form_inner input[type="password"] {
    height: 50px; padding: 0 14px; border: 1px solid var(--sd-line); border-radius: 10px; font-size: 15px; background-color: #fff;
}
.sd-auth .full_input { width: 100%; }
.sd-auth .frm_input.twopart_input { width: calc(100% - 118px); margin-right: 6px; }
.sd-auth .frm_address { margin-top: 8px; }
.sd-auth textarea { width: 100%; min-height: 100px; padding: 12px 14px; border: 1px solid var(--sd-line); border-radius: 10px; }
.sd-auth .frm_info, .sd-auth #msg_certify, .sd-auth .consent-date { font-size: 12px; color: #8a8478; }
.sd-auth .btn_frmline {
    height: 50px; padding: 0 16px; border-radius: 10px !important; vertical-align: top; width: auto;
    background: #fff !important; border: 1px solid var(--sd-green) !important; color: var(--sd-green) !important; font-weight: 600;
}
.sd-auth .tooltip_icon { color: #b4ad9f; background: none; border: 0; }
.sd-auth .js-open-consent { font-size: 12px; color: #8a8478; text-decoration: underline; background: none; border: 0; }
.sd-auth .btn_confirm { display: flex; gap: 10px; margin: 8px 0 0; padding: 0; text-align: center; }
.sd-auth .btn_confirm > * {
    flex: 1; height: 54px; line-height: 54px; border-radius: 10px !important; font-size: 16px; font-weight: 700;
    padding: 0; float: none; width: auto; margin: 0;
}
.sd-auth .btn_confirm .btn_close, .sd-auth .btn_confirm .btn_cancel {
    background: #fff !important; border: 1px solid var(--sd-green) !important; color: var(--sd-green) !important;
}

/* 모바일 */
@media (max-width: 860px) {
    .sd .sd-main .sd-shop--auth #container,
    .sd .sd-main .sd-shop__container:has(.sd-auth) { padding-top: 28px; }
    .sd-auth__card { padding: 32px 20px 28px; border-radius: 14px; box-shadow: none; }
    .sd-auth__card--sub { padding: 24px 20px; }
    .sd-auth__title { font-size: 24px; }
    .sd-auth .register_form_inner li.half_input { width: 100%; }
    .sd-steps-bar li { width: 84px; }
}

/* 보정: 그누보드 필수(*) 배경 아이콘 제거, 상단 여백(#container ID 우선순위 대응) */
.sd-auth .required, .sd-auth .frm_input.required, .sd-auth .sd-input.required { background-image: none !important; }
.sd .sd-main #container.sd-shop__container:has(.sd-auth) { padding-top: 64px; }
@media (max-width: 860px) {
    .sd .sd-main #container.sd-shop__container:has(.sd-auth) { padding-top: 28px; }
}

/* 정보 입력 폼 세부 보정 */
.sd-auth .register_form_inner h2 { padding-left: 0; padding-right: 0; }
.sd-auth #captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; }
.sd-auth #captcha legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sd-auth #captcha #captcha_img { height: 50px; border: 1px solid var(--sd-line); border-radius: 10px; background: #fff; }
.sd-auth #captcha #captcha_key {
    width: 120px; height: 50px; padding: 0 12px; border: 1px solid var(--sd-line); border-radius: 10px;
    font-size: 18px; letter-spacing: 3px; text-align: center; background-image: none !important;
}
.sd-auth #captcha button { width: 50px; height: 50px; border-radius: 10px; border: 1px solid var(--sd-line); background-color: #fff; }
.sd-auth #captcha #captcha_info { width: 100%; font-size: 12px; color: #8a8478; }
.sd-auth .register .register_form_inner h2 { padding: 0 0 10px !important; text-indent: 0; }
.sd-auth #captcha button { background-color: #f8f4eb !important; border-color: #ebe6db !important; }
