/* ===============================
   🌐 기본 스타일
   =============================== */
body {
    margin: 0;
    font-size: 12px;
    /*font-family: Nanum Gothic, Malgun Gothic, Arial;*/
    font-family: Pretendard, Malgun Gothic, Arial;
}

span.k-textbox {
    width: 100%;
}

#preview {
    z-index: 10;
    position: absolute;
    bottom: 2px;
    right: 5px;
    width: 24px;
    height: 24px;
    color: gray;
}

/* 로고 & 배너 */
#logo-wrapper {
    width: 270px;
    margin-bottom: 30px;
    text-align: center;
}

#logo {
    height: 186px;
    width: 270px;
}

#banner {
    height: 68px;
    color: #2727BE;
    font-weight: 600;
    font-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

/* 계정 영역 */
#account {
    position: relative;
    height: 20px;
    left: 31.5px;
    margin: 32px 0;
    font-size: 14px;
}

#account > a {
    margin-left: 16px;
    color: #0058E9;
}

/* 전체 레이아웃 */
#sign-in-page {
    position: relative;
    height: 100vh;
    display: flex;
    background: linear-gradient(16.66deg, #070B46 45.27%, #2D2DD3 100%);
    overflow: hidden;
}

#sign-in-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-width: 560px;
    width: 39%;
    background: #fff;
    z-index: 1;
}

#login {
    height: 202px;
    width: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

div.k-form-field:nth-child(3) {
    display: flex;
}

#RememberMe-form-label {
    order: 1;
    padding-left: 0.5em;
}

/* 버튼 */
.k-button,
.k-button:hover {
    height: 30px;
    width: 270px;
    background: #1274AC;
    color: #fff;
}

/* 소셜 아이콘 */
#social-wrapper {
    display: flex;
    width: 194px;
    height: 30px;
}

.facebook, .twitter, .reddit {
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(66, 66, 66, 0.04);
    border-radius: 2px;
}

.facebook { margin-left: 15px; }
.twitter, .reddit { margin-left: 35px; }

/* 이미지 영역 */
#frame-wrapper {
    background: url(/img/login/background01.png) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 61%;
    margin: 0 auto;
}

#frame-wrapper h2 {
    margin: 0;
    padding: 0;
    font-size: 32px;
    color: #fff;
    font-weight: 500;
    text-align: center;
}

#text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#wave {
    width: 100%;
}

/* 로더 */
.mes-custom-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 80px;
    min-height: 80px;
    transform: translate(-50%, -50%);
    z-index: 99997;
}

.mes-custom-loader .k-loader-canvas {
    min-width: 80px;
    min-height: 80px;
    z-index: 99998;
}

.mes-custom-loader .k-loader-canvas .k-loader-segment {
    min-width: 1rem;
    min-height: 1rem;
    z-index: 99999;
    background: #ff6358;
}

/* ===============================
   📱 태블릿 (768px ~ 1024px)
   =============================== */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    #sign-in-page {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background: #fff;
    }

    #frame-wrapper {
        display: none;
    }

    #sign-in-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 90%;
        max-width: 860px;
        min-width: unset;
        height: auto;
        padding: 40px;
        box-shadow: 0 0 20px rgba(0,0,0,0.05);
        border-radius: 8px;
    }

    #logo-wrapper {
        width: 40%;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #logo img {
        width: 220px;
        height: auto;
    }

    #banner {
        font-size: 36px;
        margin-top: 20px;
        text-align: center;
    }

    #inputs-wrapper {
        width: 50%;
        display: flex;
        justify-content: center;
    }

    #login {
        width: 100%;
        max-width: 320px;
    }

    .k-button, .k-button:hover {
        width: 100%;
    }

    #account {
        text-align: right;
        font-size: 14px;
        margin-top: 15px;
    }
}

/* ===============================
   📱 모바일 (최대 767px)
   =============================== */
@media screen and (max-width: 767px) {
    html, body {
        height: 100%;
        overflow-x: hidden;
    }

    #sign-in-page {
        flex-direction: column;
        background: #fff;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #frame-wrapper {
        display: none;
    }

    #sign-in-wrapper {
        width: 100%;
        min-width: unset;
        height: auto;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px 60px;
        background: #fff;
    }

    #logo-wrapper {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #logo img {
        width: clamp(150px, 45vw, 220px);
        height: auto;
        margin: 0 auto;
    }

    #banner {
        font-size: clamp(26px, 6vw, 32px);
        margin-top: 10px;
        text-align: center;
    }

    #login {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .k-button, .k-button:hover {
        width: 100%;
        height: 42px;
        font-size: 15px;
    }

    #account {
        text-align: center;
        font-size: 13px;
        margin-top: 15px;
    }

    #social-wrapper {
        justify-content: center;
        margin-top: 20px;
    }

    /* 내부요소 오버플로 방지 */
    #sign-in-wrapper,
    #logo-wrapper,
    #login,
    #banner,
    #inputs-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
	
	/* 모바일에서 confirm 계열의 길이가 85%, 모깎기(R16) 처리 되어있어서 동일하게 설정? */
	.k-dialog-wrapper > .k-window {
		width			: 85% !important;
		height			: 200px !important;
		min-width		: 0 !important;
		max-width		: none !important;
		min-height		: 0 !important;
		max-height		: none !important;
		
		border-radius	: 16px;
	}
	.k-dialog-wrapper > .k-window > .k-window-titlebar {
		border-radius	: 16px 16px 0 0;
	}

    * {
        box-sizing: border-box;
    }
}