@use '../../utils' as *;

/*----------------------------------------*/
/*  10.2 Login Css
/*----------------------------------------*/


.tp-login{
    &-wrapper{
        padding: 50px 74px 70px;
        background-color: #fff;
        @media #{$xs}{
            padding-left: 20px;
            padding-right: 20px;
        }
    }
    &-title{
        font-weight: 500;
        font-size: 30px;
        margin-bottom: 4px;
        font-family: var(--tp-ff-onest);
        
    }
    &-top{
        & p{
            font-size: 16px;
            font-weight: 400;
            color: #49535B;
            
            & a{
                position: relative;
                display: inline-block;
                color: var(--tp-common-black);

                &::after{
                    position: absolute;
                    content: '';
                    left: auto;
                    right: 0;
                    bottom: 4px;
                    width: 0%;
                    height: 1px;
                    background-color: var(--tp-common-black);
                    transition: .3s;
                }

                &:hover{
                    &::after{
                        left: 0;
                        right: auto;
                        width: 100%;
                    }
                }
            }
        }
    }
    &-option{
        &-item{
            margin-bottom: 10px;
            &:not(:last-child){
                margin-right: 10px;
            }
            &.has-google{
                & a{
                    width: 220px;
                    & img{
                        margin-right: 7px;
                    }
                }
            }
            & a{
                font-size: 16px;
                color: #041226;
                width: 98px;
                height: 56px;
                line-height: 54px;
                text-align: center;
                border-radius: 8px;
                display: inline-block;
                backdrop-filter: blur(10px);
                border: 1px solid rgba($color: #C6C6C6, $alpha: 0.4);
                
                & img{
                    @include tp-transform(translateY(-2px));

                    &.apple{
                        @include tp-transform(translateY(-3px));
                    }
                }

                &:hover{
                    border-color: rgba($color: #4D3D30, $alpha: 0.2);
                }
            }
        }
    }
    &-mail{
        position: relative;
        z-index: 1;
        & p{
            font-size: 15px;
            color: #55585B;
            margin-bottom: 0;
            padding: 0 20px;
            position: relative;
            display: inline-block;
            background-color: #fff;
            
            & a{
                color: var(--tp-common-black);
                &:hover{
                    color: var(--tp-common-black);
                }
            }
        }
        &::after{
            position: absolute;
            content: '';
            left: 0;
            right: 0;
            bottom: 12px;
            width: 100%;
            height: 1px;
            z-index: -1;
            transition: .3s;
            background-color: #C6C6C6;
        }
    }
    &-input{
        &-wrapper{
            margin-bottom: 20px;
        }
        &-box{
            position: relative;
            &:not(:last-child){
                margin-bottom: 15px;
            }
        }
        & input{
            font-size: 14px;
            border: 1px solid transparent;
            color: var(--tp-common-black);
            background-color: #F4F0EA;
            &::placeholder{
                color: rgba($color: #000000, $alpha: 0.4);
            }
            &:focus{
                background-color: transparent;
            }
        }
        &-title{
            & label{
                font-size: 16px;
                padding: 0 5px;
                line-height: 1;
                font-weight: 500;
                margin-bottom: 10px;
                color: var(--tp-common-black);
            }
        }
        &-eye{
            position: absolute;
            right: 26px;
            top: 50%;
            @include tp-transform(translateY(-50%));

            & .open-eye{
                display: none;
            }

            & span{
                transition: .3s;
            }

            &:hover{
                cursor: pointer;

                & span{
                    color: var(--tp-common-black);
                }
            }
        }
    }
    &-remeber{
        & input{
            display: none;
            &:checked{
                & ~ label{
                    &::after{
                        border-color: #4d3d30;
                        background-color: #4d3d30;
                    }
                    &::before{
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }

        & label{
            font-size: 15px;
            position: relative;
            padding-left: 26px;
            z-index: 1;
            color: var(--tp-common-black);
            
            &::after{
                position: absolute;
                content: '';
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                border: 1px solid #C3C7C9;
                z-index: -1;
                transition: .3s;
            }
            &::before{
                position: absolute;
                content: url("../img/login/check.svg");
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                visibility: hidden;
                opacity: 0;
                color: var(--tp-common-white);
                transition: .3s;
            }

            & a{
                &:hover{
                    color: var(--tp-theme-primary);
                }
            }

            &:hover{
                cursor: pointer;
            }
        }
    }
    &-forgot{
        & a{
            font-weight: 400;
            font-size: 15px;
            color: var(--tp-common-black);
            
            position: relative;
            display: inline-block;

            &::after{
                position: absolute;
                content: '';
                left: auto;
                right: 0;
                bottom: 4px;
                width: 0%;
                height: 1px;
                background-color: var(--tp-common-black);
                transition: .3s;
            }

            &:hover{
                &::after{
                    left: 0;
                    right: auto;
                    width: 100%;
                }
            }
        }
    }
    &-btn{
        font-size: 16px;
        font-weight: 500;
        padding: 14px 30px;
        text-align: center;
        border-radius: 8px;
        display: inline-block;
        color: var(--tp-common-white);
        border: 1px solid #4d3d30;
        background-color: #4d3d30;

        &:hover{
            color: #4d3d30;
            background-color: #fff;
        }
    }
}