/**=====================
    Log In And Sign up CSS Start
==========================**/
.log-in-section {
  overflow-x: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 0;
  min-height: 100vh;
  overflow: auto;
  padding: calc(25px + (60 - 25) * ((100vw - 320px) / (1920 - 320))) 0;

  .form-floating {
    &.mb-4 {
      margin-bottom: 0 !important;
    }
  }

  .container {
    >.row {
      >* {
        padding-inline: calc(var(--bs-gutter-x)* 0.5);
      }
    }
  }

  &.otp-section {
    display: flex;
    align-items: center;
  }

  .image-contain {
    @include flex_common;
    height: 100%;
  }

  .inputs {
    margin: calc(-2px + (-8 - 2) * ((100vw - 320px) / (1920 - 320)));

    input {
      margin: calc(2px + (8 - 2) * ((100vw - 320px) / (1920 - 320)));
      border: none;
    }
  }

  .log-in-box {
    background-color: $white;
    padding: calc(16px + (50 - 16) * ((100vw - 320px) / (1920 - 320)));

    .logo-img {
      width: 140px;
      margin: 0 auto 20px;
      display: block;
    }

    .row {
      margin-inline: calc(-0.5* var(--bs-gutter-x));

      >* {
        padding-inline: calc(var(--bs-gutter-x)* 0.5);
      }
    }

    .form-floating {
      >label {
        z-index: 0;
      }
    }

    .form-control {
      border: 1px solid #eee;
      border-radius: 0;

      body.dark-only & {
        border-color: $dark-card-border;
        background-color: #0b141d !important;
      }

      &:focus{
        border-color: var(--theme-color);
      }
    }

    input {

      &::-webkit-outer-spin-button,
      &::-webkit-inner-spin-button {
        appearance: none;
        margin: 0;
      }
    }

    .custom-select-box {
      >.form-control {
        background-color: $white !important;
      }
    }

    input[type="number"] {
      appearance: textfield;
    }

    .logo-name {
      margin-bottom: calc(20px + (30 - 20) * ((100vw - 320px) / (1920 - 320)));
      margin-top: -10px;

      a {
        font-size: calc(28px + (35 - 28) * ((100vw - 320px) / (1920 - 320)));
        font-weight: bold;
        color: $title-color;
        font-family: $montserrat;
        display: block;

        img {
          width: calc(150px + (225 - 150) * ((100vw - 320px) / (1920 - 320)));
        }
      }
    }

    .log-in-title {
      margin-bottom: calc(12px + (20 - 12) * ((100vw - 320px) / (1920 - 320)));

      h3 {
        margin-bottom: calc(1px + (6 - 1) * ((100vw - 320px) / (1920 - 320)));
        font-size: calc(18px + (21 - 18) * ((100vw - 320px) / (1920 - 320)));
        color: var(--theme-color);
        font-weight: 600;
      }

      img {
        width: 140px;
        margin: 0 auto 20px;
        display: block;
      }

      h4,
      h5 {
        color: $content-color;
        margin-block: 8px 40px;
      }
    }

    .log-in-button {
      margin-top: 20px;
      padding: 1px 0;

      ul {
        @include flex_wrap($dis: flex, $wrap: wrap, $gap: 15px);
        align-items: center;

        [dir="rtl"] & {
          padding-right: 0;
        }

        li {
          display: block;
          width: 100%;
          background-color: $light-color;

          a {
            @include flex_common;
            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
            color: $title-color;
            border-radius: 0;
            padding: calc(10px + (16 - 10) * ((100vw - 320px) / (1920 - 320))) calc(18px + (30 - 18) * ((100vw - 320px) / (1920 - 320)));
            flex-wrap: wrap;
            gap: calc(8px + (10 - 8) * ((100vw - 320px) / (1920 - 320)));
            background-color: $light-color;

            img {
              width: calc(18px + (24 - 18) * ((100vw - 320px) / (1920 - 320)));
            }
          }
        }
      }
    }

    .forgot-box {
      @include flex_common($dis: flex, $align: center, $justify: space-between);

      @media (max-width: 1366px) {
        display: block;
      }
    }

    .remember-box {
      display: flex;
      align-items: center;

      .check-box {
        display: block;
        margin-top: -6px;
      }

      label {
        font-size: 16px;
        margin-bottom: 0;

        span {
          font-weight: 500;
          color: var(--theme-color);
        }
      }
    }

    .forgot-password {
      font-size: 16px;
      font-weight: 500;
      display: block;

      &:hover {
        color: var(--theme-color);
      }
    }

    .other-log-in {
      margin-top: 15px;
      text-align: center;
      position: relative;

      &::before {
        @include pos;
        @include center(vertical);
        @include pseudowh($width: 100%, $height: 1px);
        left: 0;
        background-color: #ddd;
        z-index: 0;
      }

      h6 {
        color: $content-color;
        position: relative;
        background-color: $white;
        padding: 0 14px;
        display: inline-block;
        text-transform: uppercase;
      }
    }

    .sign-up-box {
      margin-top: 20px;
      text-align: center;

      h4 {
        color: $content-color;
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        margin-bottom: calc(0px + (3 - 0) * ((100vw - 320px) / (1920 - 320)));
      }

      a {
        font-weight: 500;
        font-size: calc(15px + (17 - 15) * ((100vw - 320px) / (1920 - 320)));
        margin-bottom: -4px;
        display: block;

        &:hover {
          color: var(--theme-color);
        }
      }
    }

    .contact-title {
      margin-bottom: 30px;

      h2 {
        margin-bottom: 15px;
      }

      h5 {
        width: 53%;
        font-size: 18px;
        line-height: 1.3;
        color: $content-color;
      }
    }

    .input-box {
      .row {
        margin-inline: calc(-0.5* var(--bs-gutter-x));

        >* {
          padding-inline: calc(var(--bs-gutter-x)* 0.5);
        }
      }

      .form-floating {
        >label {
          [dir="rtl"] & {
            left: unset;
            right: 0;
          }

          &::after {
            content: unset;
          }
        }

        >.form-control {
          &:not(:placeholder-shown) {
            ~label {
              [dir="rtl"] & {
                transform: scale(0.85) translateY(-0.5rem) translateX(0.95rem);
              }
            }
          }
        }
      }
    }

    .country-input {
      .custom-select-box {
        height: calc(100% - 2px);
        left: 1px;
        border-left: unset;
        border-block: unset;
        padding-inline: unset;

        html[dir="rtl"] & {
          left: unset;
          right: 1px;
        }

        .form-select {
          border-left: unset;
          border-block: unset;
          height: 56px;
          background-color: $white;
          padding-inline: 7px 10px;

          body.dark-only & {
            border-color: #404040 !important;
            background-color: $dark-card-background;
          }
        }
      }

      .form-floating {
        >.form-control:not(:placeholder-shown) {
          padding-block: 1rem;
        }
      }
    }
  }
}