// $login-font-family:Helvetica,Noto Sans TC,Roboto,Arial,sans-serif!important;
$login-font-family:Helvetica,Noto Sans TC,Roboto,'Microsoft JhengHei', Arial,sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

//switcher
.h-swicher-wrapper{
    font-family: $login-font-family;
    .h-swicher{
        display: inline-block;
        height: 45px;
        padding: 4px;
        background: #fff;
        width: 300px;
        // width: 50%;
        border-radius: 30px;
        border: 1px solid rgba(170, 170, 170, 0.75);
        position: relative;
    }

    .swicher-input {
        display: none;
    }

    .swicher-label {
        float: left;
        width: 50%;
        font-size: 1rem;
        line-height: 33px;
        color: #000;
        text-align: center;
        cursor: pointer;
        position: inherit;
        z-index: 10;
        margin-bottom: 0;
        transition: color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform;
    }

    .switcher-toggle{
        position: absolute;
        float: left;
        height: 44px;
        width: 50%;
        line-height: 30px;
        cursor: pointer;
        border:1px solid #EE7800;
        border-radius: 30px;
        left: 0px;
        top: 0px;
        box-shadow: 1px 1px 2px #ee7800;
        transition: left 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform;
    }

    .swicher-input:checked + .swicher-label {
        color: #EE7800;
        font-weight: bold;
    }

    .swicher-input-joinLogin:checked ~ .switcher-toggle {
        left: 150px;
    }
}

//login 區塊
//login 左側區塊

.login-wrapper{
    font-size: 14px;
    background-color:#FFF ;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    .form-control{
        border-width: 1px;
        height: calc(1.5em + 1.75rem + 4px);
    }

    //取消IE edge & IE 瀏覽器帳號輸入框輸入會有x的圖示
    .login-wrapper-email input::-ms-clear, .login-wrapper-password input::-ms-clear{
        display: none;
    }

    //取消IE edge & IE 瀏覽器密碼輸入框輸入會有眼睛的圖示
    .login-wrapper-email input::-ms-reveal, .login-wrapper-password input::-ms-reveal{
        display: none;
    }
    .focus-status{
        &:focus{
            border-color:#ced4da;
            box-shadow: none;
        }
    }
    .login-wrapper-aware{
        margin-left: 1rem;
        margin-right: 1rem;

    }
    .login-wrapper-aware-v2{
        margin-left: 1rem;
    }
    .custom-control-input:checked ~.custom-control-label::before {
        color: #fff;
        background-color: rgb(0, 119, 192);
        border-color: rgb(0, 119, 192);
    }
    .login-wrapper-aware-forgetPass, .login-wrapper-aware-v2{
        a:hover{
            text-decoration: none;
        }
    }
    label{
        color: rgba(0,0,0,.54);
    }
    .login-wrapper-password{
        position: relative;
        .login-wrapper-password-eye{
            color: rgba(0,0,0,.54);
            position: absolute;
            right: 5%;
            bottom: 23%;
            &:hover{
                cursor: pointer;
            }
        }
    }
}

//login 中間區塊

.divider-wrapper{
    
    .divider{
        width: 1px;
        height: 100%;
        border-left: 1px solid rgba(0, 0, 0, 0.12);
        position: relative;
    }
    .divider:after{
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        color: rgba(0, 0, 0, 0.12);
        padding: 6px;

    }
}

//右側區塊
.login-media-wrapper{
    width: 100%;

    &:nth-child(1){
        border: 1px solid #4267b2;
        &:hover{
            background-color: #4267b2;
            .login-media-img-item.before{
                display: none;
            }
            .login-media-img-item.after{
                display: block;
            }
            .login-media-context{
                color: #fff;
            }
        }
    }
    &:nth-child(2){
        border: 1px solid #f34a38;
        &:hover{
            background-color: #f34a38;
            .login-media-img-item.before{
                display: none;
            }
            .login-media-img-item.after{
                display: block;
            }
            .login-media-context{
                color: #fff;
            }
        }
    }


    .login-media-content{

        .login-media-img{
            width: 25%;
            height: 36px;
            border-right: 1px solid rgba(0, 0, 0, 0.12);
            display: flex;
            justify-content: center;
            align-items: center;

        }
        .login-media-img-item{
            display: block;
            &.after{
                display: none;
            }
        }

        .login-media-context{
            color: rgba(67, 72, 76, 0.75);
            width: 75%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

    }
}

//忘記密碼區塊
.forget-password-wrapper{
    font-family: $login-font-family;
    background-color: #fff;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    .form-control{
        border-width: 1px;
        height: calc(1.5em + 1.75rem + 4px);
    }
    //取消IE edge & IE 瀏覽器帳號輸入框輸入會有x的圖示
    .login-wrapper-email input::-ms-clear{
        display: none;
    }
    .forget-password-context{
        h5{
            font-size: 1.17rem;
            font-weight: 500;
            line-height: 0.9;
        }
    }
    .focus-status{
        &:focus{
            border-color:#ced4da;
            box-shadow: none;
        }
    }
}

@media screen and (max-width: 768px){

    .login-wrapper{
        background-color: transparent;
        box-shadow: none;

        .login-wrapper-email input, .login-wrapper-password input{
            background-color: #fafafa;
        }
    }

    .divider-wrapper{
        
        .divider{
            width: 100%;
            height: 1px;
            border-left: none;
            margin: 32px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        }

        .divider:after{
            content: "";
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #FFF;
            color: rgba(0, 0, 0, 0.12);
            padding: 6px;
            
        }
    }

}

