/* BASIC css start */
/* ========================================
   문구대통령 모바일 로그인 공통 디자인

   [적용 페이지]
   - 회원로그인
   - 구매시로그인
   - 주문조회로그인

   [유지 기능]
   - 아이디 저장
   - 자동 로그인
   - 파워앱 초대회원
   - SNS 로그인
   - 비회원 구매
   - 비회원 주문조회
   - 중복 주문조회

   [제거 기능]
   - 보안 로그인
   - 한글 자판
======================================== */


/* ========================================
   기본
======================================== */

#loginWrap,
#loginWrap * {
    box-sizing: border-box;
}

#loginWrap {
    width: 100%;
    padding: 30px 15px 60px;
    background: #ffffff;
}

#loginWrap fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#loginWrap form {
    margin: 0;
    padding: 0;
}


/* 스크린리더 전용 */
#loginWrap .mk-auth-sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
}


/* ========================================
   전체 레이아웃
======================================== */

#loginWrap .mk-auth-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

#loginWrap .mk-auth-main {
    width: 100%;
    min-width: 0;
}


/* ========================================
   회원 로그인 / 비회원 주문조회 탭
======================================== */

#loginWrap .mk-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin: 0 0 26px;
    border-bottom: 1px solid #dddddd;
}

#loginWrap .mk-auth-tabs__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    color: #999999;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
}

#loginWrap .mk-auth-tabs__item.is-active {
    color: #111111;
    font-weight: 700;
}

#loginWrap .mk-auth-tabs__item.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #111111;
}


/* ========================================
   구매시로그인 제목
======================================== */

#loginWrap .mk-auth-section-title {
    margin: 0 0 22px;
    padding: 0;
    color: #111111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.6px;
}


/* ========================================
   설명
======================================== */

#loginWrap .mk-auth-description {
    margin: 0 0 20px;
    padding: 0;
    color: #777777;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.3px;
}


/* ========================================
   입력창
======================================== */

#loginWrap .mk-auth-field {
    position: relative;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
}

#loginWrap .mk-auth-field--last {
    margin-bottom: 0;
}

#loginWrap .mk-auth-field input:not([type="checkbox"]):not([type="radio"]) {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    outline: 0;
    background: #ffffff;
    color: #222222;
    caret-color: #222222;
    font-family: inherit;
    font-size: 16px;
    line-height: normal;
}

#loginWrap .mk-auth-field input:not([type="checkbox"]):not([type="radio"]):focus {
    border-color: #222222;
}

#loginWrap .mk-auth-field input::placeholder {
    color: #aaaaaa;
}


/* 비밀번호 버튼 공간 */
#loginWrap .mk-auth-field--password input {
    padding-right: 52px !important;
}


/* 파워앱 초대 입력 */
#loginWrap .mk-auth-field--invite {
    margin-top: 10px;
    margin-bottom: 0;
}


/* ========================================
   비밀번호 보기 / 숨기기
======================================== */

#loginWrap .mk-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #777777;
    cursor: pointer;
    transform: translateY(-50%);
}

#loginWrap .mk-auth-password-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* 비밀번호 표시 상태 */
#loginWrap .mk-auth-password-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}


/* ========================================
   아이디 저장 / 자동 로그인
======================================== */

#loginWrap .mk-auth-login-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    width: 100%;
    margin-top: 14px;
}

#loginWrap .mk-auth-login-options label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

#loginWrap .mk-auth-login-options input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 7px 0 0;
    vertical-align: middle;
    accent-color: #111111;
}


/* ========================================
   공통 버튼
======================================== */

#loginWrap .mk-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    margin: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
}


/* 메인 버튼 */
#loginWrap .mk-auth-button--primary {
    margin-top: 16px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff !important;
}


/* 보조 버튼 */
#loginWrap .mk-auth-button--secondary {
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #222222 !important;
}

#loginWrap .mk-auth-button--primary:active {
    border-color: #333333;
    background: #333333;
}

#loginWrap .mk-auth-button--secondary:active {
    border-color: #999999;
    background: #fafafa;
}


/* ========================================
   회원 메뉴
======================================== */

#loginWrap .mk-auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
}

#loginWrap .mk-auth-links a {
    position: relative;
    padding: 0 10px;
    color: #555555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none !important;
}

#loginWrap .mk-auth-links a + a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 12px;
    background: #dddddd;
    transform: translateY(-50%);
}


/* ========================================
   구분선
======================================== */

#loginWrap .mk-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 30px 0 20px;
    color: #999999;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

#loginWrap .mk-auth-divider::before,
#loginWrap .mk-auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #eeeeee;
}


/* ========================================
   구매시로그인
   비회원 구매
======================================== */

#loginWrap .mk-auth-guest-purchase {
    width: 100%;
}

/* ========================================
   주문조회 패널
======================================== */

#loginWrap .mk-auth-panel {
    display: none;
    width: 100%;
}

#loginWrap .mk-auth-panel.is-active {
    display: block;
}


/* ========================================
   비회원 주문조회
======================================== */

#loginWrap .mk-auth-guest-order {
    width: 100%;
}


/* ========================================
   비회원 주문조회
   회원가입 안내
======================================== */

#loginWrap .mk-auth-guest-join {
    width: 100%;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eeeeee;
}

#loginWrap .mk-auth-guest-join p {
    margin: 0 0 14px;
    padding: 0;
    color: #777777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.3px;
}

#loginWrap .mk-auth-guest-join .mk-auth-button {
    margin-top: 0;
}


/* ========================================
   SNS 로그인
======================================== */

#loginWrap .mk-auth-sns {
    width: 100%;
}

#loginWrap .mk-auth-sns__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

#loginWrap .mk-auth-sns__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 6px;
    overflow: visible;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
}


/* 브랜드 색상 */
#loginWrap .mk-auth-sns__button--kakao {
    background: #fee500;
}

#loginWrap .mk-auth-sns__button--naver {
    background: #05ac4f;
}

#loginWrap .mk-auth-sns__button--apple {
    background: #000000;
}

#loginWrap .mk-auth-sns__button--facebook {
    background: #0866ff;
}


/* 아이콘 */
#loginWrap .mk-auth-sns__icon {
    position: absolute;
    top: 50%;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
}

#loginWrap .mk-auth-sns__icon img {
    display: block;
    width: 24px;
    height: 24px;
    border: 0;
    object-fit: contain;
}


/* 문구 */
#loginWrap .mk-auth-sns__label {
    display: block;
    width: 100%;
    padding: 0 52px;
    text-align: center;
    letter-spacing: -0.2px;
}

#loginWrap .mk-auth-sns__button--kakao .mk-auth-sns__label {
    color: #191600;
}

#loginWrap .mk-auth-sns__button--naver .mk-auth-sns__label,
#loginWrap .mk-auth-sns__button--apple .mk-auth-sns__label,
#loginWrap .mk-auth-sns__button--facebook .mk-auth-sns__label {
    color: #ffffff;
}


/* 최근 로그인 */
#loginWrap .mk-auth-sns__recent {
    position: absolute;
    top: -10px;
    right: -5px;
    z-index: 3;
}

#loginWrap .mk-auth-sns__recent:empty {
    display: none;
}

#loginWrap .mk-auth-sns__recent img {
    display: block;
    width: auto !important;
    max-width: 72px !important;
    height: auto !important;
}


/* ========================================
   SNS 임시 미리보기

   실제 SNS section이 앞에 출력되면
   preview 자동 숨김
======================================== */

#loginWrap .mk-auth-sns--preview .mk-auth-sns__button {
    cursor: default;
}

#loginWrap .mk-auth-sns:not(.mk-auth-sns--preview)
    + .mk-auth-sns--preview {
    display: none;
}


/* ========================================
   대통령클럽 프로모션
======================================== */

#loginWrap .mk-auth-promotion {
    width: 100%;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eeeeee;
}

#loginWrap .mk-auth-promotion__link {
    display: block;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
    background: #f7f7f7;
    text-decoration: none !important;
}

#loginWrap .mk-auth-promotion__image {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}


/* 가입 유도 */
#loginWrap .mk-auth-promotion__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    margin-top: 10px;
    padding: 11px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
    text-decoration: none !important;
}

#loginWrap .mk-auth-promotion__cta > span {
    margin-bottom: 5px;
    color: #777777;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

#loginWrap .mk-auth-promotion__cta strong {
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

#loginWrap .mk-auth-promotion__cta em {
    color: #088983;
    font-style: normal;
    font-weight: 700;
}


/* ========================================
   중복 비회원 주문조회 팝업
======================================== */

#loginWrap #inquiryOrder {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
}


/* 배경 */
#loginWrap #inquiryOrder .layer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}


/* 팝업 */
#loginWrap #inquiryOrder .layer-pop {
    position: relative;
    overflow-y: auto;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    padding: 26px 20px 20px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}


/* 제목 */
#loginWrap #inquiryOrder .layer-pop > h3 {
    margin: 0;
    padding: 0 40px 0 0;
    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}


/* 닫기 */
#loginWrap #inquiryOrder .close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #555555;
    text-decoration: none !important;
}


/* 안내 */
#loginWrap #inquiryOrder .txt {
    margin: 18px 0 0;
    padding: 0;
    color: #777777;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.3px;
}


/* 입력 */
#loginWrap #inquiryOrder .frm {
    overflow: visible;
    width: 100%;
    margin: 22px 0 0;
    padding: 0;
}

#loginWrap #inquiryOrder .frm dt,
#loginWrap #inquiryOrder .frm dd {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

#loginWrap #inquiryOrder .frm dt {
    margin: 14px 0 7px;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

#loginWrap #inquiryOrder .frm dt:first-child {
    margin-top: 0;
}

#loginWrap #inquiryOrder .frm input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    outline: 0;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 16px;
    line-height: normal;
}

#loginWrap #inquiryOrder .frm input:focus {
    border-color: #222222;
}

#loginWrap #inquiryOrder .frm input + input {
    margin-top: 8px;
}


/* 버튼 */
#loginWrap #inquiryOrder .btns {
    width: 100%;
    margin: 22px 0 0;
    padding: 0;
}

#loginWrap #inquiryOrder .btns .mk-auth-button {
    margin: 0;
}

#loginWrap #inquiryOrder .btns .mk-auth-button + .mk-auth-button {
    margin-top: 10px;
}


/* ========================================
   작은 화면
======================================== */

@media screen and (max-width: 359px) {

    #loginWrap .mk-auth-links a {
        padding: 0 7px;
        font-size: 13px;
    }

    #loginWrap .mk-auth-sns__button {
        font-size: 14px;
    }

}
/* BASIC css end */

