@import url(./_reset.css);

/* css */
.inner {
    width: calc(100% - 80px);
    max-width: 1500px;
    margin: 0 auto;
    height: 100dvb;
    display: flex;
    align-items: center;
    /* 쇼엠 인슈어런스 문구 배치 */
    justify-content: space-between;
    gap: 200px;
}

::placeholder,
.readonly {
    color: #666;
}

.sc_login {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.sc_login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url(../img/login_img2.webp) no-repeat 100% 50%/cover;
    z-index: -2;
}

.sc_login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.bg_area {
    position: relative;
    flex: 1;
    height: calc(100% - 60px);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
}

.bg_area .headline {
    text-align: center;
    font-size: 44px;
    color: #fff;
}



.sc_login .login_area {
    width: 500px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-right: auto;
    padding: 50px 70px 55px;
    background: #fff;
    border-radius: 50px;
}

.sc_login .login_area .login,
.panel {
    width: 100%;
}

.sc_login .headline {
    height: 45px;
    margin-bottom: 20px;
}

.sc_login .headline img {
    height: 100%;
    width: 100%;
}

.sc_login .form_title {
    position: relative;
    margin: 0 auto;
    margin-bottom: 30px;
    /* padding-left: 40px; */
    width: fit-content;
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #3b3b3b;
}

.sc_login .form_title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
}

.sc_login form fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 0;
}

.sc_login form fieldset input {
    padding: 14px 20px;
    font-size: 18px;
    background: #fff;
    border: 1px solid #d4dbe0;
    border-radius: 10px;
}

.sc_login form fieldset input.readonly {
    font-size: 16px;
    background: #e5e9ee;
    color: #8e9499;
}

.sc_login form fieldset .btn_login {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    background: var(--brandColor);
    color: #fff;
}

.sc_login .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc_login .checkbox input {
    padding: 0;
    width: 17px;
    height: 17px;
    accent-color: #4e4e4e;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* 자동완성 배경색 */
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    /* 자동완성 글자색 */
    -webkit-text-fill-color: #000;
    font-size: 18px;
    font-weight: 600;
}

.panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 40px;
    padding: 25px 30px;
    background: #ffffff;
    color: #444;
    text-align: left;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid var(--brandColor);
    box-sizing: border-box;
}

.panel .caution {
    top: calc(0% - 20px);
    left: 20px;
    position: absolute;
    width: fit-content;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: 600;
    background: #fff;
    color: var(--brandColor);
}

.panel li b {
    font-weight: 700;
    color: #486fff;
}


/* 쇼엠인슈어런스 */
/* .company_area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */

.company_title {
    flex: 1;
}

.company_title img {
    width: 500px;
    margin: 0 auto;
    margin-bottom: 20px;
}



/* 알림창 커스텀 */
div:where(.swal2-container) h2:where(.swal2-title) {
    padding: 30px 20px 0;
    /* font-size: 19px; */
}

/* div:where(.swal2-container) .swal2-html-container{
    font-size: 18px;
} */
div:where(.swal2-container) div:where(.swal2-actions) {
    margin: 15px auto 0;
}

div:where(.swal2-container) button:where(.swal2-styled) {
    padding: 8px 25px;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background: var(--brandColor);
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover {
    background: #338073;
}

@media (max-width: 1500px) {
    .inner {
        gap: 100px;
    }
}

@media (max-width: 1300px) {
    .inner {
        gap: 20px;
    }
}

@media (max-width: 1025px) {
    .sc_login {
        min-height: 100vh;
        position: relative;
        overflow-y: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sc_login::after {
        background: url(../img/login_img.webp) no-repeat 80% 50%/cover;
    }

    .inner {
        height: auto;
        flex-direction: column-reverse;
        justify-content: center;
        padding: 20px 0;
        box-sizing: border-box;
    }

    .sc_login .login_area {
        padding: 20px 50px 25px;
        width: 100%;
        box-sizing: border-box;
    }

    .company_title {
        flex: none;
    }

    .company_title img {
        width: 300px;
    }

    .panel {
        margin-top: 40px;
    }

    .sc_login .login_area {
        padding: 20px 50px 25px;
        width: 100%;
        box-sizing: border-box;
    }

    .sc_login .headline {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .sc_login .headline img {
        height: 90%;
        width: 90%;
    }
}

@media (max-width: 767px) {
    .panel {
        text-align-last: left;
    }

    .panel li {
        width: auto;
        margin: 0;
    }

    .company_title {
        width: 100%;
        margin: 0;
    }

    .company_title img {
        width: 280px;
        margin-bottom: 0;
    }

    .sc_login .form_title {
        font-size: 25px;
    }
}

@media (max-width: 586px) {

    .sc_login form fieldset input {
        padding: 12px 20px;
    }

    .sc_login form fieldset .btn_login {
        padding: 12px 30px;
        font-size: 19px;
    }

    .sc_login .checkbox input {
        width: 18px;
        height: 18px;
    }

    .panel {
        margin-top: 50px;
        padding: 30px 20px;
        font-size: 14px;
    }

    .company_title img {
        width: 230px;
    }

}

@media (max-width: 480px) {
    .sc_login .form_title {
        font-size: 22px;
    }

    .company_title img {
        width: 200px;
    }

    .sc_login .headline img {
        height: 80%;
        width: 80%;
    }
}

@media (max-width: 430px) {
    .sc_login .headline img {
        height: 70%;
        width: 70%;
    }

    .sc_login form fieldset .btn_login {
        font-size: 18px;
    }

    .sc_login form fieldset input {
        width: 100%;
        background: #fff;
        border: 1px solid var(--brandColor);
        font-size: 14px;
    }

    br {
        display: none;
    }

    .sc_login .checkbox {
        margin: 10px 0;
        font-size: 14px;
    }

    .sc_login .checkbox input {
        width: 15px;
        height: 15px;
    }

    .panel {
        padding: 15px 10px;
        font-size: 12px;
        margin-top: 30px;
    }

    .panel .caution {
        top: calc(0% - 14px);
        left: 15px;
        padding: 4px 10px;
        font-size: 12px;
        border: 1px solid var(--brandColor);
        border-radius: 50px;
    }

    .company_title img {
        width: 150px;
        margin-bottom: 10px;
    }

    .sc_login .login_area {
        border-radius: 10px;
        padding: 20px 30px;
    }

    .sc_login .form_title {
        font-size: 20px;
    }

    div:where(.swal2-container) h2:where(.swal2-title) {
        padding: 30px 10px 0;
        font-size: 19px;
    }
}