$desktop-l-width: 1440px;
$tablet-l-width: 1024px;
$tablet-s-width: 768px;
$mob-l-width: 640px;
$login-max-height: 800px;
// 태블릿
@mixin tab {
  @media screen and (max-width: #{$tablet-l-width}), (max-height: #{$login-max-height}) {
    @content;
  }
}

// 모바일 large
@mixin mob-large {
  @media screen and (max-width: #{$mob-l-width}) {
    @content;
  }
}

.login-form {
  position: relative;
  transform: scale(1);
  width: 100%;
  min-width: 100%;
  top: 0;
  right: 0;
  padding: 14%;
  text-align: center;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 0px;
  font-size: 14px;

  .mat-title {
    margin: 10px 0 40px 0;
    text-indent: -10000000px;
    width: 140px;
    height: 140px;
    background-repeat: no-repeat;
    display: inline-flex;
    background-size: 100% auto;
    flex: 1 1 auto;
  }

  form {
    width: 100%;
    text-align: left;

    mat-form-field {
      width: 100%;
      &.login-id {
        margin-bottom: 10px;
        @media screen and (max-width: #{$tablet-s-width}) {
          margin-bottom: 0;
        }
      }
    }

    mat-checkbox {
      margin: 0;
    }

    .remember-forgot-password {
      font-size: 13px;

      .remember-me {
      }

      .auto-login {
        font-size: 0.9em;
        font-weight: 600;
        margin-bottom: 2vh;
      }
    }

    .submit-button {
      width: 100%;
      margin: 0 auto;
      margin: 2vh 0 1.6vh;
      display: block;
    }
  }

  .register {
    margin: 32px auto 24px auto;
    font-weight: 600;

    .text {
      margin-right: 8px;
    }
  }

  .separator {
    font-size: 15px;
    font-weight: 600;
    margin: 24px auto;
    position: relative;
    overflow: hidden;
    width: 100px;

    .text {
      display: inline-flex;
      position: relative;
      padding: 0 8px;
      z-index: 9999;

      &:before,
      &:after {
        content: '';
        display: block;
        width: 30px;
        position: absolute;
        top: 10px;
        border-top: 1px solid;
      }

      &:before {
        right: 100%;
      }

      &:after {
        left: 100%;
      }
    }
  }
  .policy {
    position: absolute;
    bottom: 5vh;
    display: block;
    text-align: center;
    opacity: 0.7;
    padding: 6px;
    border-radius: 100px;
    width: 68%;
    color: #2d3a4a;
    &:hover {
      opacity: 1;
    }
  }
  button {
    &.google,
    &.facebook {
      width: 192px;
      text-transform: none;
      color: #ffffff;
      font-size: 13px;
    }
  }
}
// 모바일 large
@include mob-large {
}

@include tab {
  .login-form {
    font-size: 0.9em;
    padding: 12%;
    .mat-title {
      width: 14vh;
      height: 14vh;
      margin: 10px 0 10px 0;
    }
    .mat-form-field .mat-form-field-infix input {
      font-size: 0.9em;
    }
    .policy {
      position: absolute;
      bottom: 0;
      display: block;
      text-align: center;
      opacity: 0.7;
      padding: 0;
      border-radius: 0;
      width: 100%;
      margin-left: -12%;
      font-size: 0.9em;
      padding: 6px;
    }
  }
}
