@charset "UTF-8";

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #0b1622;
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 82% 38%,
            rgba(28, 53, 75, 0.22) 0%,
            rgba(28, 53, 75, 0.08) 30%,
            transparent 58%
        ),
        linear-gradient(
            135deg,
            #0b1622 0%,
            #0b1622 55%,
            #0d1926 100%
        );
}


/* =========================================================
   LEFT BACKGROUND
========================================================= */

.bg-image {
    position: absolute;

    left: 0;
    top: 0;
    right: auto;

    width: 50%;
    height: 100%;

    overflow: hidden;

    background: #132335;
}

.bg-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transform: scale(1.015);

    filter:
        saturate(0.78)
        contrast(1.03)
        brightness(0.76);
}

/* =========================================================
   좌측 콘텐츠
========================================================= */

.visual-content {
    position: absolute;
    inset: 0 auto 0 0;

    width: 50%;
    height: 100%;

    z-index: 3;

    padding:
        clamp(42px, 5vh, 70px)
        clamp(50px, 5vw, 90px);

    pointer-events: none;
}


/* 좌측 상단 로고 */

.visual-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.visual-logo img {
    
    height: auto;
}

.visual-logo > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.visual-logo strong {
    color: rgba(255, 255, 255, 0.94);

    font-size: 29px;
    line-height: 1;

    font-weight: 600;
    letter-spacing: -0.5px;
}

.visual-logo span {
    color: rgba(255, 255, 255, 0.38);

    font-size: 11px;
}


/* 메인 카피 */

.visual-copy {
    position: absolute;

    left: clamp(50px, 5vw, 90px);
    top: 30%;
}

.visual-copy h2 {
    margin: 0;

    color: rgba(255, 255, 255, 0.91);

    font-size: clamp(38px, 3.1vw, 58px);
    line-height: 1.38;

    font-weight: 300;

    letter-spacing: -2.5px;
}

.copy-line {
    display: block;

    width: 40px;
    height: 2px;

    margin: 32px 0 26px;

    background: #e5293f;
}

.visual-copy p {
    margin: 0;

    color: rgba(255, 255, 255, 0.48);

    font-size: clamp(13px, 0.9vw, 16px);
    line-height: 1.8;

    font-weight: 400;

    letter-spacing: -0.3px;
}


/* 좌측 하단 키워드 */

.visual-keywords {
    position: absolute;

    left: clamp(50px, 5vw, 90px);
    bottom: 15%;

    display: flex;
    flex-direction: column;

    gap: 22px;
}

.visual-keywords > div {
    display: flex;
    align-items: center;

    gap: 15px;
}

.visual-keywords span {
    width: 20px;

    color: rgba(231, 45, 65, 0.75);

    font-size: 10px;
    font-weight: 600;
}

.visual-keywords strong {
    color: rgba(255, 255, 255, 0.45);

    font-size: 10px;
    line-height: 1;

    font-weight: 500;

    letter-spacing: 2px;
}


/* =========================================================
   우측 상단 문구
========================================================= */

.login-message {
    position: absolute;

    top: 68px;
    right: 5vw;

    z-index: 5;

    display: flex;
    align-items: center;

    gap: 17px;

    color: rgba(255, 255, 255, 0.34);
}

.login-message span {
    width: 45px;
    height: 1px;

    background: rgba(255, 255, 255, 0.14);
}

.login-message p {
    margin: 0;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: -0.1px;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.login-copyright {
    position: absolute;

    left: 50%;
    bottom: 55px;

    z-index: 4;

    width: 50%;

    margin: 0;

    text-align: center;

    color: rgba(255, 255, 255, 0.28);

    font-size: 11px;

    pointer-events: none;
}

/* =========================================================
   LEFT OVERLAY
========================================================= */

.bg-overlay {
    position: absolute;

    left: 0;
    top: 0;

    width: 50%;
    height: 100%;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(6, 16, 27, 0.18) 0%,
            rgba(6, 16, 27, 0.12) 35%,
            rgba(6, 16, 27, 0.38) 100%
        ),
        linear-gradient(
            to right,
            rgba(7, 18, 30, 0.32) 0%,
            rgba(7, 18, 30, 0.18) 50%,
            rgba(7, 18, 30, 0.48) 100%
        );
}

/* =========================================================
   RIGHT LOGIN AREA
========================================================= */

.login-panel {
    position: absolute;

    left: 50%;
    top: 0;

    width: 50%;
    height: 100%;

    z-index: 3;

    transform: none;

    max-height: none;

    padding: 0 clamp(70px, 8vw, 150px);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: clamp(48px, 6vh, 68px);

    background: transparent;

    border: none;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
}


/* =========================================================
   LOGO
========================================================= */

.logo-area {
    width: min(100%, 480px);

    display: grid;

    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    
    justify-content: center;

    column-gap: 10px;
    row-gap: 3px;

    align-items: center;

    margin-bottom: 4px;
}


.main-logo {
    grid-column: 1;
    grid-row: 1 / 3;

    width: auto;
    height: 63px;

    margin: 0;

    object-fit: contain;
}


.form-title {
    grid-column: 2;
    grid-row: 1;

    align-self: end;

    margin: 0;

    color: rgba(255, 255, 255, 0.96);

    background: linear-gradient(90deg, rgba(253, 71, 90, 1) 0%, rgba(254, 87, 53, 1) 50%, rgba(255, 150, 101, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: clamp(35px, 3vw, 48px);
    line-height: 1.12;

    font-weight: bold;
    letter-spacing: -1px;
    
    padding-bottom: 2px;
}


.logo-area p {
    grid-column: 2;
    grid-row: 2;

    align-self: start;

    margin: 3px 0 0;

    color: rgba(255, 255, 255, 0.56);

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
}


/* =========================================================
   FORM
========================================================= */

#loginForm {
    width: min(100%, 480px);
}


/* 입력 그룹 */

.input-group {
    width: 100%;
    min-height: 80px;
}


.input-wrapper {
    position: relative;

    width: 100%;
    height: 66px;
}


/* INPUT */

.input-group input {
    width: 100%;
    height: 66px;

    line-height: 66px;

    padding: 0 54px 0 66px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 15px;
    font-weight: 400;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.035)
        );

    border: 1px solid rgba(255, 255, 255, 0.105);

    border-radius: 9px;

    outline: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* 왼쪽 입력 아이콘 */
.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    color: rgba(255, 255, 255, 0.64);

    font-size: 25px;

    pointer-events: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.input-wrapper:focus-within .input-icon {
    color: rgba(255, 255, 255, 0.95);
}

.input-group input:hover {
    border-color: rgba(255, 255, 255, 0.17);
}


.input-group input:focus {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.045)
        );

    border-color: rgba(229, 45, 61, 0.75);

    box-shadow:
        0 0 0 3px rgba(229, 45, 61, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}


.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.34);

    font-size: 14px;
}

.btn-password-toggle {
    position: absolute;

    right: 14px;
    top: 50%;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    background: transparent;
    border: 0;

    color: rgba(255, 255, 255, 0.52);

    font-size: 21px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.btn-password-toggle:hover {
    color: rgba(255, 255, 255, 0.92);
}

.btn-password-toggle:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
    border-radius: 4px;
}

#pwGroup .btn-clear {
    right: 52px;
}

#pwGroup input {
    padding-right: 96px;
}

/* 비밀번호 영역 - 눈 버튼이 있으므로 에러 아이콘 위치 조정 */
#pwGroup.error .btn-password-toggle {
    right: 14px;
}

#pwGroup.error .error-icon {
    right: 50px;
}

#pwGroup.error .btn-clear {
    right: 86px;
}

#pwGroup.error input {
    padding-right: 126px;
}

/* =========================================================
   AUTOFILL
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;

    -webkit-box-shadow:
        0 0 0 1000px #182431 inset !important;

    transition:
        background-color 5000s ease-in-out 0s;

    border: 1px solid rgba(255, 255, 255, 0.105);
}


input:-webkit-autofill:focus {
    border-color: rgba(229, 45, 61, 0.75) !important;
}


/* =========================================================
   CLEAR / ERROR
========================================================= */

.btn-clear,
.error-icon {
    position: absolute;

    top: 50%;

    width: 32px;
    height: 32px;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);
}


.btn-clear {
    right: 14px;

    display: none;

    padding: 0;

    background: none;
    border: none;

    color: rgba(255, 255, 255, 0.34);

    font-size: 17px;

    cursor: pointer;

    transition: color 0.2s ease;
}


.btn-clear:hover {
    color: rgba(255, 255, 255, 0.9);
}


.error-icon {
    right: 14px;

    display: flex;

    visibility: hidden;

    color: #ef6658;

    font-size: 20px;

    pointer-events: none;
}


.error-text {
    height: 18px;

    margin: 3px 0 5px 4px;

    visibility: hidden;
    opacity: 0;

    color: #f06c5e;

    font-size: 12px;
    line-height: 18px;

    font-weight: 500;

    transition: opacity 0.2s ease;
}


.input-group.error input {
    border-color: rgba(240, 93, 79, 0.85);

    box-shadow:
        0 0 0 3px rgba(240, 93, 79, 0.06);
}


.input-group.error .error-text {
    visibility: visible;
    opacity: 1;
}


.input-group.error .error-icon {
    visibility: visible;
}


.input-group.error .btn-clear {
    right: 48px;
}


/* =========================================================
   UTILITY
========================================================= */

.form-utility {
	display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    margin: 15px 0 0;
}


.checkbox-container {
    display: inline-flex;

    align-items: center;

    color: rgba(255, 255, 255, 0.59);

    font-size: 13px;
    line-height: 1;

    cursor: pointer;

    user-select: none;
}


.checkbox-container input {
    display: none;
}


.custom-checkbox {
    position: relative;

    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-right: 8px;

    border: 1px solid rgba(255, 255, 255, 0.48);

    border-radius: 2px;

    background: rgba(255, 255, 255, 0.015);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.checkbox-container:hover .custom-checkbox {
    border-color: rgba(255, 255, 255, 0.72);
}


.checkbox-container input:checked + .custom-checkbox {
    background-color: #df2939;

    border-color: #df2939;

    box-shadow:
        0 0 0 3px rgba(223, 41, 57, 0.08);
}


.checkbox-container input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.l_btn {
    position: relative;

    width: 100%;
    height: 67px;

    overflow: hidden;

    border: none;
    border-radius: 8px;

 /*    background:
        linear-gradient(
            100deg,
            #e52e43 0%,
            #e2253b 58%,
            #e72e43 100%
        ); */
        
    background: linear-gradient(90deg, rgba(253, 71, 90, 1) 0%, rgba(254, 87, 53, 1) 50%, rgba(255, 150, 101, 1) 100%);

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 28px rgba(216, 35, 55, 0.15);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


/* 우측 화살표 */

.l_btn::after {
    /* content: "→"; */

    position: absolute;

    right: 25px;
    top: 50%;

    transform: translateY(-52%);

    color: rgba(255, 255, 255, 0.92);

    font-size: 28px;
    line-height: 1;

    font-weight: 300;

    transition:
        transform 0.25s ease;
}


.l_btn:hover {
    transform: translateY(-1px);

    filter: brightness(1.07);

    box-shadow:
        0 14px 34px rgba(216, 35, 55, 0.24);
}


.l_btn:hover::after {
    transform: translate(4px, -52%);
}


.l_btn:active {
    transform: translateY(0);

    box-shadow:
        0 8px 18px rgba(216, 35, 55, 0.17);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    body {
        overflow: auto;
    }
    
    .login-page {
        min-height: 100dvh;
        height: auto;

        padding: 30px 22px;

        display: flex;

        align-items: center;
        justify-content: center;
    }

    .bg-image {
        position: fixed;

        width: 100%;
        height: 100%;

        inset: 0;
    }

    .bg-image img {
        width: 100%;
        height: 100%;

        object-fit: cover;

        filter:
            saturate(0.72)
            brightness(1.3);
    }

    .bg-overlay {
        position: fixed;

        inset: 0;

        width: 100%;
        height: 100%;

        background:
            linear-gradient(
                to bottom,
                rgba(6, 15, 25, 0.58),
                rgba(6, 15, 25, 0.86)
            );
    }

    .login-panel {
        position: relative;

        left: auto;
        top: auto;

        width: min(100%, 500px);
        height: auto;

        padding: 50px 38px;

        gap: 44px;

        /* border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 18px;

        background: rgba(10, 22, 34, 0.82);

        box-shadow:
            0 24px 80px rgba(0, 0, 0, 0.38);

        backdrop-filter: blur(14px); */
    }


	.input-group input {
	    background:
	        linear-gradient(
	            135deg,
	            rgba(255, 255, 255, 0.135),
	            rgba(255, 255, 255, 0.195)
	        );
	}

    .logo-area,
    #loginForm {
        width: 100%;
    }
    
    .visual-content{
    	display: none;
    }
    .login-copyright{
    	width: 100%;
    	left: 0;
    	bottom: 30px;
    }
}


/* =========================================================
   낮은 화면
========================================================= */

@media (max-height: 760px) {

    .login-panel {
        gap: 34px;

        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logo-area {
        width: min(100%, 430px);
    }

    .main-logo {
        height: 52px;
    }

    .form-title {
        font-size: 38px;
    }

    #loginForm {
        width: min(100%, 430px);
    }

    .input-group {
        min-height: 70px;
    }

    .input-wrapper,
    .input-group input {
        height: 57px;
    }

    .input-group input {
        line-height: 57px;
    }

    .l_btn {
        height: 58px;
    }

    .form-utility {
        margin-bottom: 22px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 480px) {

	    
    .input-icon{
    	left: 17px;
    }
    
    .login-page {
        padding: 20px 14px;
    }

    .login-panel {
        width: 100%;

        padding: 40px 22px;

        gap: 38px;

        border-radius: 15px;
    }

     .logo-area {
        width: 100%;

        column-gap: 5px;

        margin-left: auto;
        margin-right: auto;
    }

    .main-logo {
        height: 50px;
    }

    .form-title {
        font-size: 35px;
        line-height: 1.12;
        padding-bottom: 2px;
    }

    .logo-area p {
        font-size: 11px;
    }

    .input-wrapper,
    .input-group input {
        height: 58px;
    }

    .input-group input {
        line-height: 58px;

        padding-left: 52px;
    }

    .l_btn {
        height: 59px;
    }
    
    .visual-content,
    .login-message{
    	display: none;
    }
}