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

   [적용 페이지]
   - login.html
   - login_basket.html
   - login_order.html

   [레이아웃]
   - 좌측 480px
   - 가운데 간격 120px
   - 우측 480px
   - 전체 가운데 정렬
======================================== */


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

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

#loginWrap {
    width: 100%;
    padding: 70px 0 110px;
}

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

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


/* 화면에는 숨기고 스크린리더에는 제공 */
.mk-auth-sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
}


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

   480 + 120 + 480 = 1080px

   1400px 기준 좌우 여백 : 160px
   1230px 기준 좌우 여백 : 75px
======================================== */

.mk-auth-layout {
    position: relative;
    display: grid;
    grid-template-columns: 480px 480px;
    justify-content: center;
    align-items: start;
    column-gap: 120px;
    width: 100%;
}


/* 가운데 세로 구분선 */
.mk-auth-layout::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #eeeeee;
    transform: translateX(-50%);
    pointer-events: none;
}

.mk-auth-main {
    min-width: 0;
}


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

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

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

.mk-auth-tabs__item:hover {
    color: #222222;
}

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

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


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

.mk-auth-section-title {
    margin: 0 0 10px;
    padding: 0;
    color: #111111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.7px;
}


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

.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;
}


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

.mk-auth-field {
    position: relative;
    margin-bottom: 10px;
}

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

#loginWrap .mk-auth-field input {
    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:focus {
    border-color: #222222;
}


/* 일반 placeholder */
#loginWrap .mk-auth-field input::placeholder {
    color: #aaaaaa;
}


/* ========================================
   주문자명 안내 label

   주문번호와 동일하게 포커스 시
   안내 문구가 바로 사라지도록
   placeholder 대신 label을 사용함.

   입력값이 없는 상태에서 포커스를 벗어나면
   JS에서 label을 다시 표시함.
======================================== */

.mk-auth-field-label {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    margin: 0;
    padding: 0;
    color: #aaaaaa;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    cursor: text;
    transform: translateY(-50%);
}

.mk-auth-field--label.is-label-hidden .mk-auth-field-label {
    display: none;
}


/* ========================================
   주문번호 안내값

   메이크샵은 주문번호 안내 문구를
   placeholder가 아닌 실제 value로 출력함.

   실제 생성되는 input에는
   name="ordernumid"가 사용됨.
======================================== */

#loginWrap .mk-auth-field input[name="ordernumid"] {
    color: #aaaaaa;
}


/* 실제 주문번호가 입력된 상태 */
#loginWrap .mk-auth-field input[name="ordernumid"].is-user-value {
    color: #222222;
}


/* 비밀번호 우측 눈 아이콘 공간 */
#loginWrap .mk-auth-field--password input {
    padding-right: 52px;
}


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

.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;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #777777;
    cursor: pointer;
    transform: translateY(-50%);
}

.mk-auth-password-toggle:hover {
    color: #222222;
}

.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;
}


/* 비밀번호가 보이는 상태에서는 눈 아이콘에 사선 표시 */
.mk-auth-password-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
}


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

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


/* 로그인 / 주문조회 */
.mk-auth-button--primary {
    margin-top: 16px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff !important;
}

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


/* 비회원으로 주문하기 / 회원가입 */
.mk-auth-button--secondary {
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #222222 !important;
}

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


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

   회원가입 | 아이디 찾기 | 비밀번호 찾기

   별도 구분선 태그 없이
   두 번째 링크부터 ::before 사용
======================================== */

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

.mk-auth-links a {
    position: relative;
    padding: 0 14px;
    color: #555555;
    text-decoration: none !important;
    font-size: 15px;
}

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

.mk-auth-links a:hover {
    color: #111111;
}


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

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

.mk-auth-guest-join .mk-auth-description {
    margin-bottom: 14px;
    font-size: 14px;
}


/* ========================================
   가로 구분선

   별도 장식 태그 없이
   ::before / ::after 사용
======================================== */

.mk-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 32px 0 20px;
    color: #999999;
    font-size: 14px;
    white-space: nowrap;
}

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


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

.mk-auth-sns__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.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: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
}


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

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

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

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


/* SNS 아이콘 */
.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%);
}

.mk-auth-sns__icon img {
    display: block;
    width: 24px;
    height: 24px;
    border: 0;
}


/* SNS 버튼 문구 */
.mk-auth-sns__label {
    display: block;
    width: 100%;
    text-align: center;
    letter-spacing: -0.2px;
}

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

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


/* 최근 로그인 SNS 표시 */
.mk-auth-sns__recent {
    position: absolute;
    top: -10px;
    right: -5px;
    z-index: 2;
}

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

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


/* SNS 연동 전 디자인 확인용 미리보기 */
.mk-auth-sns--preview .mk-auth-sns__button {
    cursor: default;
}


/* ========================================
   우측 프로모션
======================================== */

.mk-auth-promotion {
    align-self: center;
    width: 480px;
}


/* 대통령클럽 배너 */
.mk-auth-promotion__link {
    display: block;
    overflow: hidden;
    width: 100%;
    border-radius: 6px;
    background: #f7f7f7;
    text-decoration: none !important;
}

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


/* ========================================
   대통령클럽 가입 유도
======================================== */

.mk-auth-promotion__cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 15px 0;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
    text-align: center;
    text-decoration: none !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

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

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

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

.mk-auth-promotion__cta:hover {
    border-color: #cbdad8;
    background: #fafcfb;
}
/* BASIC css end */

