@import "../../../style/CommonStyle.module.less";
@import "../../../style/utils.module.less";

.pinCodeContainer {
  width: 100%;
  height: 100%;
  padding: 120px 0;

  .headerContainer {
    position: relative;

    .backBtn {
      position: absolute;
      left: 120px;
      font-size: 38px;
      height: 60px;
      color: @COLOR_GRAY04;
      display: flex;
      align-items: center;

      .arrowBtn {
        width: 50px;
        height: 50px;
        margin-right: 30px;
        background: url(../../../../assets/images/btn/ic_wizard_prev_f.png);
        background-repeat: no-repeat;
        background-size: cover;
      }

      &:focus {
        color: #e6e6e6;

        .arrowBtn {
          background: url(../../../../assets/images/btn/ic_wizard_prev_n.png);
          background-repeat: no-repeat;
          background-size: cover;
        }
      }
    }

    .pinCodeTitle {
      text-align: center;
      font-size: 72px;
      color: #e6e6e6;
    }
  }

  .pinCodeBoxes {
    margin-top: 162px;
    display: flex;
    justify-content: center;

    .pinCodeBoxWrapper {
      width: 120px;
      height: 144px;
      margin-right: 18px;
      position: relative;
      border-radius: 6px;
      overflow: hidden;

      &:last-child {
        margin-right: 0;
      }

      .pinCodeBoxBackground {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #e6e6e6;
        opacity: 0.15;
      }

      .pinCodeContent {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 48px;
        color: #e6e6e6;
      }

      &.focused {
        .pinCodeBoxBackground {
          background-color: #fff;
          opacity: 1;
        }
      }
    }
  }

  .errMsg {
    width: 1000px;
    margin: 27px auto 0;
    height: 32px;
    text-align: center;
    color: @PRIMARY_COLOR_RED;
    font-size: 30px;
    line-height: 1.07;
  }

  .pinCodeDigits {
    margin: 63px auto 0;
    display: flex;
    justify-content: center;

    .pinCodeDigit {
      width: 84px;
      height: 84px;
      line-height: 84px;
      text-align: center;
      color: #e6e6e6;
      font-size: 42px;
      font-weight: bold;

      &:focus {
        background-color: #fff;
        color: #4c5059;
        border-radius: 6px;
        font-weight: bold;
      }
    }

    .deleteKey {
      background: url("../../../../assets/images/icons/ic-delete-nor@3x.png");
      background-size: contain;

      &:focus {
        background: url("../../../../assets/images/icons/ic-delete-foc@3x.png");
        background-size: contain;
      }
    }
  }

  .buttonContainer {
    display: flex;
    justify-content: center;
    margin-top: 168px;

    > div {
      width: 270px;
      height: 72px;
      line-height: 72px;
      font-weight: 600;
      margin: 0 10px;
      background: #7d848c;
      color: #e6e6e6;

      &:focus {
        box-shadow: 0px 18px 28.2px 1.8px rgba(62, 59, 59, 0.4);
        background-color: #e6e6e6;
        color: #4c5059;
        transform: translateY(3%) translateX(-3%) scale(1.1);
      }
      &:last-child {
        &:focus {
          box-shadow: 0px 18px 28.2px 1.8px rgba(62, 59, 59, 0.4);
          background-color: #e6e6e6;
          color: #4c5059;
          transform: translateY(3%) translateX(3%) scale(1.1);
        }
      }
    }
  }
}

.popupContainer {
  .header {
    .size(@w: 780px , @h: 102px);
    .flex(@display: flex, @justifyCenter: center, @alignCenter: center, @direction: row);
    background-color: #e7ebef;

    > h3 {
      font-size: 36px;
      color: #222222;
      font-weight: bold;
    }
  }

  .qrcodeContainer {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;

    .qrcode {
      .size(@w: 360px , @h: 360px);
      background-color: #ffffff;
      border-radius: 12px;
      box-shadow: 0 0 0 1px #dadada inset;
      margin-bottom: 41px;
    }

    > h3 {
      display: flex;
      text-align: center;
      word-break: break-word;
      line-height: 1.27;
    }

    .popupBtn {
      .size(@w: 300px , @h: 78px);
      margin-top: 38px;
    }
  }
}
