/* 로그인 */
html, body {
    height: 100%;
    overflow: hidden;
}

main {
    width: 100%;
    height: 100%;
    position: relative;
}

main:before {
    content: "";
    position: absolute;
    left: 30px;
    top: 20px;
    z-index: 1;
    display: inline-block;
    width: 304px;
    height: 23px;
    background: url("../images/logo-black@2x.png") no-repeat center / cover;
}

.is-top-bg:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    width: 100%;
    height: 295px;
    background: url("../images/login-bg@3x.png") no-repeat top / cover;
}

.img-box {
    background-color: var(--m-color-5FC);
    width: 85%;
    max-width: 1165px;
    height: 100%;
    padding: 180px 0 0 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.img-box > p {
    width: 100%;
    white-space: pre-line;
    word-break: keep-all;
    padding-right: 50px;
    color: var(--m-color-050);
    font-size: 40px;
    font-weight: 200;
    margin-bottom: 24px;
}

.img-box > p > strong {
    font-weight: 700;
}

.img-box:after {
    content: "";
    background: url(../images/login-img@2x.png) no-repeat right bottom / cover;
    display: block;
    width: 954px;
    height: 702px;
}

.form-box {
    padding: 0 162px 0 175px;
}

.form-box h1 {
    word-break: keep-all;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-box h1:has(+span) {
    margin-bottom: 50px;
}

.form-box h1 + span {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--m-color-83D);
}

.form-box h1 + span > strong {
    font-weight: 500;
}

.form-box > form {
    width: 100%;
    margin-top: 270px;
    margin-bottom: auto;
}

.form-box > form:nth-child(2) {
    margin: 0;
}

.form-box > form .form-inner {
    margin: auto;
    width: 420px;
}

.form-box > form .form-inner > p {
    font-weight: 300;
    color: var(--m-text-color-600);
    line-height: 25px;
    margin-bottom: 0;
}

.form-box > form .form-inner > p:first-child {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--m-color-83D);
    font-weight: 300;
    word-break: keep-all;
}

.form-box > form .form-inner > p > strong {
    color: var(--m-color-17D);
    font-weight: 500;
}

.form-box > form .form-inner > span:first-child {
    display: block;
    font-size: 15px;
    margin-top: -15px;
    font-weight: 300;
}

.form-box > form .form-inner > span {
    display: block;
    font-size: 18px;
    color: var(--m-color-83D);
    margin-top: 5px;
    font-weight: 300;
}

.form-box > form .form-inner > span.dev-error {
    font-size: 16px;
    color: var(--m-text-color-1000);
}

.form-box > form .form-inner > span > a {
    color: var(--m-text-color-900);
    text-decoration: none;
    padding: 5px;
}

.form-box > form .form-inner > span > a:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--m-text-color-100);
}

.form-box > form .form-inner > span > a:hover {
    color: var(--m-text-color-900);
}

.form-box > form .form-inner > span > a:hover:after {
    background-color: var(--m-text-color-900);
}

.form-box > form .form-inner .m-field {
    position: relative;
}

.form-box > form .form-inner .m-field:has(.count) input {
    padding-right: 80px;
}

.form-box > form .form-inner .m-field .count {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--m-text-color-1000);
}

.form-box > form .form-inner > ul {
    list-style: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.form-box > form .form-inner > ul li {
    flex: 1;
}

.form-box .m-field:first-of-type {
    margin-bottom: 20px;
}

.form-box form button {
    margin: 30px 0 20px 0;
}

.form-box form > p {
    color: var(--m-color-040);
    font-size: 13px;
    line-height: 22px;
}

footer {
    font-size: 9px;
    color: var(--m-color-0B0);
    height: 40px;
    line-height: 40px;
    text-align: center;
}

/* logout */
.m-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 15% 22px 40px 22px;
}

/* 1920 이하 */
@media (max-width: 1920px) {
    .is-top-bg:before {
        height: 226px;
    }

    .img-box {
        padding: 10% 0 0 5%;
    }

    .img-box:after {
        width: 90%;
        height: 100%;
        background-size: contain;
    }

    .img-box > p {
        font-size: 30px;
    }

    .form-box {
        padding: 0 5%;
    }
}

/* 768 이하 */
@media (max-width: 768px) {
    :root {
        --m-logn-header-height: 120px;
        --m-body-background: #FFF;
    }

    main {
        padding-top: var(--m-logn-header-height);
    }

    main:before {
        width: 60%;
        height: 45px;
        background: url(../images/logo-m@3x.png) no-repeat left / contain;
        top: 36px;
        left: 5vw;
    }

    .is-top-bg:before {
        top: var(--m-logn-header-height);
        background-position-x: -101vw;
        background: url(../images/login-bg-m@3x.png) no-repeat top / cover;
    }

    .form-box > form {
        margin-top: 10vh;
    }

    .form-box > form .form-inner {
        width: 100%;
    }

    .form-box > form .form-inner button {
        min-width: auto;
        flex: 1;
    }

    .img-box {
        display: none;
    }
}

/* 576 이하 */
@media (max-width: 576px) {
    :root {
        --m-logn-header-height: 60px;
    }

    main:before {
        top: 2vw;
    }
}