﻿:root {
    --vh: 1vh;
    --overlay-title-size: 22px; /* 타이틀 크게 */
    --overlay-input-size: 15px; /* 입력 약간 크게 */
    --overlay-btn-size: 14px; /* 버튼은 유지 */
    --btn-width: 96px;
    --btn-gap:12px;
}

/* 입력, 버튼만 이벤트 허용 */
.overlay-card {
/*.slide-overlay input,
.slide-overlay button {*/
    pointer-events: auto;
}

.overlay-inner {
    width: 80%; /* 🔥 기존 대비 30% 축소 */
    max-width: 1200px; /* (선택) 너무 커지는 것 방지 */
    margin: 0 auto; /* 가운데 정렬 */

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /*display: flex;
    align-items: stretch;*/
    /*    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);*/
    /*border-radius: 0;*/ /*24px;*/ /* 🔥 전체 둥근 테두리 */
    /*overflow: hidden;*/ /* 🔥 안쪽 분리선 처리용 */
    /*box-shadow: 0 12px 32px rgba(0,0,0,0.3);*/
}

@media (max-width: 768px) {
    .overlay-inner {
        width: 100%;
    }
}

.overlay-card {
    padding: 24px;
    border-radius: 20px;
}

.overlay-card.navy {
    background: #0f1e3a;
    color: #fff;
    border-radius: 20px 0 0 20px;
}

.overlay-card.white {
    background: #fff;
    color: #111;
    border-radius: 0 20px 20px 0;
}

.overlay-title {
/*    margin-top: 10px;*/
    margin-left: 25px;
    text-align: center;
    font-size: var(--overlay-title-size);
    font-weight: 700;
    margin-bottom: 20px;
}

.form-block {
/*    display: flex;
    flex-direction: column;
    height: 100%;*/
    display: grid;
    grid-template-columns: 1fr 96px;  🔥 입력 | 버튼 
    column-gap: 12px;
    align-items: stretch;
}

/* 입력 영역 전체를 같은 높이로 */
/*.form-fields {
    flex: 1;*/ /* 버튼을 아래로 밀어주는 핵심 */
    /*display: flex;
    flex-direction: column;
    justify-content: flex-start;
}*/

.form-inputs {
/*    display: flex;
    flex-direction: column;
    gap: 10px;*/
    display: grid;
    grid-template-rows: repeat(2, 44px);
    row-gap: 12px;
}

.form-extra {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-left: 28%;
    white-space: nowrap;
}
/*.form-extra {
    min-height: 32px;*/ /* 좌우 동일 높이 */
    /*display: flex;
    align-items: center;
    margin-top: 6px;
}*/

.form-extra .checkbox {
    display: inline-flex; /* inline-flex가 더 정확 */
    align-items: center;
}

/* 브라우저 기본 margin 제거 */
    .form-extra .checkbox input[type="checkbox"] {
        transform: scale(1.2); /* 1 = 기본, 1.1 ~ 1.4 적당 */
        transform-origin: left center;
        margin: 0;
    }

.form-extra .checkbox span {
    margin-left: 4px; /* ⭐ 여기서 간격 직접 제어 */
    line-height: 1;
    font-size: 1.1em;
}


/* 버튼은 항상 동일 위치 */
/*.form-btn {
    margin-top: 16px;
}*/

.overlay-card {
/*    min-height: 320px;*/
}


.checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #fff;
}

.overlay-card.white .checkbox {
    color: #333;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
/*    color: #888;*/
    pointer-events: none; /* 클릭 방해 X */
}

.overlay-card.navy .input-icon {
    color: #0f1e3a; /* ⭐ 안 보이던 원인 해결 */
    opacity: 0.85;
    z-index: 2;
}

.input-field {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 16px;
    border: 1px solid #ccc;

}

.input-with-icon .input-field {
    position: relative;
    z-index: 1;
}

.overlay-card.navy .input-field {
    padding-left: 40px;
}

/* 포커스 시 더 선명하게 */
.overlay-card.navy .input-with-icon:focus-within .input-icon {
    opacity: 1;
}

.form-btn {
    display: flex;
    flex-direction: column; /* ⭐ 세로 정렬 */
    align-items: center;
    justify-content: center;
    /*    display: block;*/

    height: 100%;
    width: 70%; /* 🔥 가로 크기 30% 감소 */
    margin: 0 auto; /* 가운데 정렬 */

    border-radius: 4px; /* 🔥 더 둥글게 */
    /*font-size: 15px;*/ /* 🔥 폰트 크게 */
    font-weight: 600;
    cursor: pointer;
    /*    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;*/
}
/*.form-btn {
    transition: 
        background-color 0.25s ease, 
        color 0.25s ease, 
        box-shadow 0.25s ease, 
        transform 0.15s ease;
}*/
/*.form-btn {
    height: 100%;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}*/

.form-btn span {
    font-size: 16px; /* 원하는 크기로 */
    font-weight: 500; /* 선택 */
}

    .form-btn .btn-icon {
        width: 24px; /* 아이콘 */
        height: 24px;
        margin-bottom: 2px;
        /*    display: block;*/
    }

.form-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/*.btn {
    height: 44px;
    padding: 0 18px;
    font-size: var(--overlay-btn-size);
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}*/

.btn-navy {
    background-color: #fff;
    color: #0f1e3a;
    border: none; /*2px solid #0f1e3a;*/
}

    .btn-navy:hover {
        border: 2px solid #ccc;
        /*border-color: #4da3ff;*/ /* 🔥 hover 시 테두리 컬러 */
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        transform: translateY(-2px);
    }

.btn-white {
    background-color: #0f1e3a;
    color: #fff;    
    border: none; /*2px solid #0f1e3a;*/
}

    .btn-white:hover {
        border: 2px solid #ccc;
/*        background-color: #f5f7fa;*/
        box-shadow: 0 6px 14px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }



@media (max-width: 768px) {
    .overlay-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-block {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .form-btn {
        height: 48px;
    }
}

/*인트로 오버레이*/
.intro-cover {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
}

/**/
#after-login-box .overlay-title {
    font-size: 1.4em;
}

/* 로그인 후 버튼 영역 */
.after-actions {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.action-btn {
    flex: 1;
    padding: 5px;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    height: 40px;
}

    .action-btn:hover {
        background: rgba(255,255,255,0.2);
    }

/* 정보 영역 */
.after-info {
    font-size: 14px;
    margin: 10px 50px;
    line-height: 1.2;
    opacity: 0.95;
}

/* 구분선 */
.divider {
    border: none;
    border-top: 1px solid white;
    /*    border-top: 1px solid rgba(255,255,255,0.3);*/
    margin: 15px 0;
}

/* 하단 메뉴 */
.after-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
/*    margin-bottom: 0px;*/
}

    .after-footer a {
        font-size: 1.0em;
        color: #fff;
        text-decoration: none;
    }

        .after-footer a:hover {
            text-decoration: underline;
        }

.btn-logout {
    color: white;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* 기존 hidden 재사용 */
.hidden {
    display: none;
}

/**/
.login-box-title-row {
    display: flex;
    height: 30px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.login-box-title-row > .overlay-title {
    margin-top: 20px;
}

.oldsite-button {
    /*    display: flex;*/
    margin-top: 5px;
    display: flex;
    align-items: center;
    height: 10px;
}

/* 이전 홈페이지 버튼 */
.go-oldsite-btn.back {
    padding: 5px 18px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 15px;
    border: 1px solid #888;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: all 0.25s ease;
}

    /* hover */
    .go-oldsite-btn.back:hover {
        background: #333;
        color: #fff;
        border-color: #333;
    }