// * Authentication
// *******************************************************************************

@use '../_bootstrap-extended/include' as light;
@use '../_bootstrap-extended/include-dark' as dark;
@import '../_custom-variables/pages';

$authentication-1-inner-max-width: 400px !default;

.footer {
  bottom:0;
  padding:20px calc(1.5rem * .5);
  position:absolute;
  right:0;
  left:0;
  height:60px;

 }
 @media (max-width:991.98px) {
  .footer {
   left:0
  }
 }
 
 [data-layout=horizontal] .footer {
  left:0!important
 }
 

 html {
  position:relative;
  min-height: calc(100% - 60px);
 }
 .authentication-wrapper {
  margin-top: 100px;
  padding-bottom:60px;
  position:relative;
  z-index:2;
  width:100%
 }
 .auth-page-wrapper .footer {
  left:0;
  background-color:transparent;
 }
 .auth-one-bg-position {
  position:absolute;
  top:0;
  left:0;
  right:0;
  width:100%;
  height:380px
 }
 @media (max-width:575.98px) {
  .auth-one-bg-position {
   height:280px
  }
 }
 .auth-one-bg {
  background-image: url(/assets/img/pages/bg.jpeg);
  background-position:center;
  background-size:cover
 }
 .auth-one-bg .bg-overlay {
  background:-webkit-gradient(linear,left top,right top,from(#000),to(#000));
  background:linear-gradient(to right,#000,#000);
 }

 .bg-overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  opacity: .7;
 }
 .shape {
  position:absolute;
  bottom:0;
  right:0;
  left:0;
  z-index:1;
  pointer-events:none
 }
 .shape>svg {
  width:100%;
  height:auto;
 }
 
 .particles-js-canvas-el {
  position:relative
 }

.authentication-wrapper {
  display: flex;
  flex-basis: 100%;
  //min-height: 100vh;
  width: 100%;

  .authentication-inner {
    width: 100%;
  }

  &.authentication-basic {
    align-items: center;
    justify-content: center;
    .card-body {
      padding: 2rem;
    }
  }

  &.authentication-cover {
    align-items: flex-start;
    .authentication-inner {
      height: 100%;
      margin: auto 0;

      // authentication cover background styles
      .auth-cover-bg {
        width: 100%;
        margin: 2rem 0 2rem 2rem;
        height: calc(100vh - 4rem);
        border-radius: 1.125rem;
        position: relative;

        // authentication cover illustration height
        .auth-illustration {
          max-height: 65%;
          z-index: 1;
        }
      }

      // authentication cover platform bg styles
      .platform-bg {
        position: absolute;
        width: 100%;
        bottom: 0%;
        left: 0%;
        height: 35%;
      }

      // authentication multisteps styles
      .auth-multisteps-bg-height {
        height: 100vh;

        // z-index for illustration
        & > img:first-child {
          z-index: 1;
        }
      }
    }
  }

  &.authentication-basic .authentication-inner {
    max-width: $authentication-1-inner-max-width;
    position: relative;
  }

  // For two-steps auth
  .auth-input-wrapper .auth-input {
    max-width: 50px;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: light.$large-font-size;
  }
}

// authentication multisteps responsive styles
@media (max-height: 636px) {
  .auth-multisteps-bg-height {
    height: 100% !important;
  }
}

// Two-steps auth responsive style
@include light.media-breakpoint-down(sm) {
  .authentication-wrapper {
    .auth-input-wrapper .auth-input {
      font-size: light.$h5-font-size;
    }
  }
}

// Two Steps Verification
// ? Used for validation specific style as we have validated hidden field
#twoStepsForm {
  .fv-plugins-bootstrap5-row-invalid .form-control {
    border-color: light.$form-feedback-invalid-color;
  }
}

// Light Layout
@if $enable-light-style {
  .light-style {
    .authentication-wrapper.authentication-bg {
      background-color: light.$white;
    }
    .auth-cover-bg-color {
      background-color: light.$body-bg;
    }
  }
}

// Dark Layout
@if $enable-dark-style {
  .dark-style {
    .authentication-wrapper.authentication-bg {
      background-color: dark.$card-bg;
    }
    .auth-cover-bg-color {
      background-color: dark.$body-bg;
    }
  }
}
