// 
// authentication.scss
//



.auth-bg{
    background-image: url("../images/bg-auth.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    .bg-overlay{
        opacity: 0.82;
        border-top-left-radius: 40px;
        border-bottom-left-radius: 40px;
    }
    @media (min-width: 768px){
        border-top-left-radius: 40px;
        border-bottom-left-radius: 40px;
        height: 100vh;
    }
}


// Auth Custom input

.input-custom-icon{
    .form-control{
        padding-left: 40px;
        padding-right: 20px;
    }
   span{
    position: absolute;
    z-index: 10;
    line-height: 40px;
    left: 13px;
    top: 50%;
    font-size: 16px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: $gray-500;
   }
}

// auth-pass-inputgroup
.auth-pass-inputgroup{
    input[type="text"] + .btn .mdi-eye-outline{
        &:before{
            content: "\F06D1";
        }
    }
    button{
        line-height: 22px;
    }
}


.form-floating-custom{
    position: relative;
    >label{
        left: 48px;
        margin-top: 2px;
    }
    >.form-control, >.form-select{
        padding-left: 60px;
    }
    .form-floating-icon{
        position: absolute;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        fill: $text-muted;
        svg{
            width: 22px;
            height: 22px;
        }
    }
}

.auth-full-page-content{
    background-color: $card-bg;
}

// authentication home icon
.home-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1;
}

// auth 2

.auth-logo{
    .auth-logo-dark{
        display: $display-block;
        margin: 0px auto;
    }
    .auth-logo-light{
        display: $display-none;
        margin: 0px auto;
    }
}

.authentication-bg{
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url("../images/login-img.png");
    display: flex;
    align-items: center;
    justify-content: center;

    .auth-logo{
        .logo{
            margin: 0px auto;
        }

        .auth-logo-light{
            display: none;
            margin: 0px auto;
        }

        .auth-logo-dark{
            margin: 0px auto;
        }
    }

    .bg-overlay{
        opacity: 0.85;
    }

    .auth-cover-card{
        .authentication-bg{
            align-items: flex-start;
            justify-content: flex-start;
        }
        .bg-overlay{
            opacity: 0.6;
        }

        .form-floating{
            label{
                color: rgba($white, 0.5);
            }
            .form-control{
                background-color: rgba($white, 0.1);
                border-color: rgba($white, 0.1);
                color: $white;
            }

            .form-floating-icon{
                color: rgba($white, 0.5);
            }
        }
    }
}

.form-floating-custom{
    position: relative;
    >label{
        left: 48px;
    }
    >.form-control, >.form-select{
        padding-left: 60px;
    }
    .form-floating-icon{
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        width: 56px;
        color: $text-muted;
    }
}

// error page
.error-font {
    font-size: 9rem;
    text-shadow: 4px 4px 6px rgba($gray-900, 0.26);
}

.mover-animation {
    animation: mover 1s infinite alternate;
}

@keyframes mover {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

// signin card title

.signin-other-title{
    position: relative;
    &:after{
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        left: 0;
        right: 0;
        background-color: $input-border-color;
        top: 18px;
    }
    .title{
        display: inline-block;
        position: relative;
        z-index: 9;
        background-color: $card-bg;
        padding: 2px 16px;
    }
}


// Auth Pages
.auth-img{
  background-image: url("https://images.unsplash.com/photo-1593062096033-9a26b09da705?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1050&q=80");
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  @media (max-width: 991.98px) {
      height: 250px;
  }
}


body[data-bs-theme="dark"]{
    .authentication-bg{
        .auth-logo-light{
            display: block;
        }

        .auth-logo-dark{
            display: none;
        }
    }
}