@import url(./_reset.css);

/* css */
.inner{
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
    
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvb;
}

::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%;
    z-index: -2;
}
.sc_login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, #00000060 0%, #00000000 100%);
    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: 400px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-right: auto;
    padding: 50px 90px 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: 60px;
    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;
}



/* 알림창 커스텀 */
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);
}


@media (max-width: 959px) {
}

@media (max-width: 767px) {
    .sc_login .headline {
        margin-bottom: 20px;
        font-size: 22px;
    }
    .sc_login .login_area{
        width: 370px;
        padding: 50px 80px 55px;
        margin: 0 auto;
    }
    .panel {
        text-align-last: left;
    }
    .panel li {
        width: auto;
        margin: 0;
    }
}

@media (max-width: 586px) {
    .sc_login .login_area {
        width: 80%;
        padding: 50px 50px 55px;
    }
    .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;
    }
}

@media (max-width: 430px) {
    .sc_login{
        position: relative;
        background: url(../img/login_img.webp) no-repeat 70% 100%/cover;
    }
    .sc_login::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #ffffff90;
    }
    .sc_login::after {
        display: none;
    }
    .sc_login .login_area {
        width: 100%;
        padding: 0;
        background: 0;
    }
    .sc_login .headline {
        font-size: 20px;
    }
    .sc_login form fieldset .btn_login {
        font-size: 18px;
    }
    .sc_login form fieldset input{
        width: 100%;
        background: #fff;
        border: 1px solid var(--brandColor);
    }
    .sc_login .checkbox{
        margin-top: 10px;
    }
    .sc_login .checkbox input {
        width: 15px;
        height: 15px;
    }
    .panel {
        padding: 25px 15px;
        font-size: 14px;
    }
    .panel .caution {
        top: calc(0% - 14px);
        left: 15px;
        padding: 4px 10px;
        font-size: 14px;
        border: 1px solid var(--brandColor);
        border-radius: 50px;
    }

}