@charset "utf-8";
@import url(https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css);

/* ========================================
   로그인 화면 로컬 토큰
   ------------------------------------------------------------
   --login-ink 는 업체별 테마(--primary)를 따라간다. custom.css 가
   최하단에서 --primary 를 갈아끼우면 로그인 화면도 같이 바뀐다.
   (CSS 변수는 선언 순서가 아니라 사용 시점에 해석되므로
    login.css 가 custom.css 보다 먼저 로드돼도 정상 동작)
   ======================================== */
:root {
    --login-ink:        var(--primary);        /* 좌측 패널 · 로그인 버튼 · 포커스 */
    --login-ink-hover:  var(--primary-hover);
    --login-accent:     #ffd28a;   /* 태그라인 · 활성 도트 골드 */
    --login-line:       #dcdad0;   /* 입력 테두리 */
    --login-muted:      #8c8b83;   /* 보조 텍스트 */
    --login-faint:      #b4b3aa;   /* 푸터 · placeholder */

    /* 폼 폭 — 와이드 화면에서 같이 늘어난다 (400 → 최대 560) */
    --login-form-w:     clamp(400px, 38vw, 560px);

    /* 슬라이드 사진 위에 얹는 가독성 확보용 음영 (배경 레이어로 합성) */
    --slide-shade: linear-gradient(to top,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.22) 45%,
            rgba(0, 0, 0, 0.12) 100%);
}


/* ========================================
   리셋 & 기본
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: #20232b;
}

body {
    background: #e9e9e4;
}


/* ========================================
   로그인 래퍼 — 카드형에서 전체화면 2단으로
   ======================================== */
.login-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(460px, 1fr);
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}


/* ========================================
   왼쪽 비주얼 영역
   ------------------------------------------------------------
   슬라이드 사진은 .login-slide:nth-child(n) 의 background-image 에 있다.
   교체 시 그 url() 3줄만 바꾸면 된다.
   ======================================== */
.login-visual {
    position: relative;
    background: var(--login-ink);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 52px 46px;
    overflow: hidden;
}

/* 사진 위 가독성 확보용 하단 그라데이션 오버레이.
   브랜드 색을 물들이지 않도록 순수 블랙 기반으로 어둡게만 깐다. */
.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.15) 45%,
            rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 사진 로드 실패 시 드러나는 폴백 텍스처 (평소엔 슬라이드 사진 뒤에 가려짐) */
.login-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
            radial-gradient(circle, rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 80px 80px, 120px 120px;
    background-position: 0 0, 40px 40px;
    pointer-events: none;
}


/* ========================================
   슬라이드 (CSS only, 3슬라이드 · 슬라이드당 7초 유지 · 총 21초 순환 · 크로스페이드)
   ======================================== */
/* 슬라이드 레이어가 좌측 패널 전체를 덮는다 (각 슬라이드가 자기 사진을 가짐).
   텍스트는 슬라이드 내부에서 하단 정렬하고, 도트 자리(하단 78px)를 비워둔다. */
.login-slides {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.login-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 52px 78px;
    opacity: 0;
    animation: slideAnim 21s infinite;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ▼ 슬라이드 사진 — 교체 시 아래 3줄의 url()만 바꾸면 된다 */
.login-slide:nth-child(1) {
    animation-delay: 0s;
    background-image: var(--slide-shade), url('../img/slide1.jpg');
}

.login-slide:nth-child(2) {
    animation-delay: 7s;
    background-image: var(--slide-shade), url('../img/slide2.jpg');
}

.login-slide:nth-child(3) {
    animation-delay: 14s;
    background-image: var(--slide-shade), url('../img/slide3.jpg');
}

/* 21초 중 33.33%(=7초)씩 노출, 앞뒤 0.6초 크로스페이드 */
@keyframes slideAnim {
    0%     { opacity: 0; }
    3%     { opacity: 1; }
    30.4%  { opacity: 1; }
    33.4%  { opacity: 0; }
    100%   { opacity: 0; }
}

.slide-tag {
    display: block;
    color: var(--login-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.login-slide h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.35;
    margin-bottom: 0;
}

.login-slide p {
    color: #c4c9da;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 12px;
}


/* ========================================
   도트 인디케이터 — 활성 시 골드 알약
   ======================================== */
.login-visual-dots {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.login-visual-dots .dot {
    width: 10px;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    animation: dotAnim 21s infinite;
}

.login-visual-dots .dot:nth-child(1) { animation-delay: 0s; }
.login-visual-dots .dot:nth-child(2) { animation-delay: 7s; }
.login-visual-dots .dot:nth-child(3) { animation-delay: 14s; }

@keyframes dotAnim {
    0%     { width: 10px; background: rgba(255, 255, 255, 0.35); }
    3%     { width: 26px; background: var(--login-accent); }
    30.4%  { width: 26px; background: var(--login-accent); }
    33.4%  { width: 10px; background: rgba(255, 255, 255, 0.35); }
    100%   { width: 10px; background: rgba(255, 255, 255, 0.35); }
}


/* ========================================
   오른쪽 로그인 폼 영역
   ======================================== */
.login-form-area {
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
}

.login-form-header,
.login-subtitle,
.login-form-content {
    width: 100%;
    max-width: var(--login-form-w);
}

.login-form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 5px;
}

/* 로고는 4:1 — 높이 기준으로 잡고 폭은 비율대로 따라오게 한다 */
.login-form-header img {
    display: block;
    float: none;
    width: auto;
    height: 40px;
    margin: 0;
}

.login-subtitle {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #2b3240;
    text-align: center;
    margin-bottom: 24px;
}

.dp_none {
    display: none;
}

.danger_txt {
    text-align: center;
    color: #f00;
    font-size: 13px;
}


/* ========================================
   폼 그룹
   ======================================== */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    color: #6b6f78;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.input-wrap {
    display: flex;
    align-items: center;
    height: 48px;
    background: #fff;
    border: 1px solid var(--login-line);
    border-radius: 11px;
    padding: 0 15px;
    transition: border-color .12s, box-shadow .12s;
}

.input-wrap:focus-within {
    outline: none;
    border-color: var(--login-ink);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--login-ink) 14%, transparent);
}

/* 시안에는 입력 아이콘이 없다 */
.input-icon {
    display: none;
}

.input-wrap input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #20232b;
    font-size: 14.5px;
    padding: 0;
    font-family: inherit;
}

.input-wrap input::placeholder {
    color: var(--login-faint);
}

.input-wrap input:focus {
    outline: none !important;
}

/* 비밀번호 표시/숨김 — 아이콘에서 텍스트 버튼으로 */
.input-toggle {
    background: none;
    border: none;
    color: #9a998f;
    cursor: pointer;
    padding: 0 0 0 10px;
    flex-shrink: 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    user-select: none;
}

.input-toggle:hover {
    color: var(--login-ink);
}


/* ========================================
   Remember / Forgot
   ======================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.form-options .remember {
    color: #5c6068;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

/* ⚠ vendor-custom.css 의
   input[type="checkbox"]:not(.custom-checkbox):not(.menu-group-toggle) { width:15px; height:15px }
   와 명시도가 (0,3,1) 로 정확히 동점이라, 나중에 로드되는 vendor 쪽이 이겨서 15px 로 찌그러졌다.
   .login-form-area 를 앞에 붙여 (0,4,1) 로 올려서 무력화한다. */
.login-form-area .form-options .remember input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #cfcdc3;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    transition: all .12s;
}

.login-form-area .form-options .remember input[type="checkbox"]:checked {
    background: var(--login-ink);
    border-color: var(--login-ink);
}

.login-form-area .form-options .remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 3px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2.4px 2.4px 0;
    transform: rotate(45deg);
}

/* ========================================
   로그인 버튼
   ======================================== */
.form-options + .form-group {
    margin-top: 24px;
    margin-bottom: 0;
    padding-bottom: 50px;
}

.btn-signin {
    width: 100%;
    height: 52px;
    padding: 0;
    background: var(--login-ink);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background .12s;
}

.btn-signin:hover {
    background: var(--login-ink-hover);
}


/* ========================================
   에러 박스
   ======================================== */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 11px;
    padding: 12px 15px;
    margin-bottom: 16px;
    color: #DC2626;
    font-size: 13px;
    line-height: 1.5;
}

.login-error svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #DC2626;
}


/* ========================================
   하단 푸터
   ======================================== */
.login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    text-align: center;
    font-size: 11.5px;
    color: var(--login-faint);
    line-height: 1.7;
}

.login-footer .footer-sep {
    margin: 0 5px;
    color: #d5d3cb;
}

.login-footer .footer-link {
    color: #8c8b83;
    text-decoration: none;
    cursor: pointer;
}

.login-footer .footer-link:hover {
    color: var(--login-ink);
    text-decoration: underline;
}

.login-footer .footer-link.is-strong {
    color: #5c6068;
    font-weight: 800;
}


/* ========================================
   반응형
   ======================================== */
@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-visual {
        display: none;
    }

    .login-form-area {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-form-area {
        padding: 28px 20px;
    }

    .login-footer {
        bottom: 18px;
    }
}
