@import '../variables.less';
@import '../mixins.less';
@item-width: calc((74.67vw - 80px) / 6);
@box-width: calc(74.67vw - 80px);

.wm-modal {
  z-index: 100;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;

  &-active {
    visibility: visible;
  }

  .mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 200;
  }

  .body {
    position: absolute;
    z-index: 300;
    background-color: #fff;
    top: 50%;
    transform: translate(0px, -50%);
    left: calc((100% - 560px) / 2);
    border-radius: @border-radius-8;
    width: 560px;
    min-height: 308px;

    .header {
      display: flex;
      position: relative;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-weight: 500;
      padding-top: 48px;
      padding-bottom: 24px;

      .icon {
        width: 48px;
        height: 48px;
      }

      .title {
        flex: 1;
        font-size: @font-size-16;
        text-align: center;
        color: rgba(0, 0, 0, 0.8);
      }
    }

    .content {
      font-size: @font-size-14;
      color: rgba(0, 0, 0, 0.8);
      font-weight: 400;
      margin-bottom: 56px;
      text-align: center;
      padding: 0 40px;

      .theReason {
        color: #ff0022;
      }

      .tips {
        justify-content: space-between;
        display: flex;
        margin-top: 32px;
        flex-direction: row;

        .error {
          font-size: @font-size-12;
          color: #ff0022;
        }

        .forget {
          font-size: @font-size-12;
          color: rgba(0, 0, 0, 0.8);
        }
      }
    }

    .footer {
      display: flex;
      text-align: center;
      height: 88px;
      border-top: 1px #ebebeb solid;
      align-items: center;
      flex-direction: row;

      .cancel {
        flex: 1;
        font-size: @font-size-16;
        color: rgba(0, 0, 0, 0.8);
        font-weight: 500;
        border-right: 1px #ebebeb solid;
        height: 100%;
        line-height: 88px;
      }

      .confirm {
        flex: 1;
        font-size: @font-size-16;
        font-weight: 500;
        color: @color-brand;
        height: 100%;
        line-height: 88px;
      }

      .confirm-disabled {
        color: rgba(0, 0, 0, 0.4);
      }
    }
  }

  &-warning {
    .title {
      padding-top: 24px;
    }
  }

  &-password {
    .content {
      .password-input {
        height: @item-width;
        width: @box-width;
        position: relative;

        .number-box {
          position: absolute;
          width: @box-width;
          top: 0;
          left: 0;
          display: flex;
          flex-direction: row;
          justify-content: flex-start;

          .item-box {
            width: @item-width;
            height: @item-width;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: @font-size-12;
            border: 2px solid #ebebeb;
            border-right: 0;
            background-color: #fafafa;

            &:first-child {
              border-top-left-radius: @border-radius-6;
              border-bottom-left-radius: @border-radius-6;
            }

            &:last-child {
              border-top-right-radius: @border-radius-6;
              border-bottom-right-radius: @border-radius-6;
              border-right: 2px solid #ebebeb;
            }
          }

          &.real-box {
            .item-box {
              border: 2px solid transparent;
              background-color: transparent;
            }
          }
        }

        .input-hidden {
          position: absolute;
          height: @item-width;
          width: 2000px;
          top: 0;
          left: -1500px;
          color: transparent;

          .weui-input {
            text-indent: -999em;
          }
        }
      }
    }
  }

  &-email {
    .content {
      .input-normal {
        height: 80px;
        background: rgba(250, 250, 250, 1);
        border-radius: @border-radius-6;
        border: 1px solid rgba(230, 230, 230, 1);
        padding: 0 32px;
        font-size: @font-size-14;
        text-align: left;

        .weui-input {
          height: inherit;
        }
      }
    }
  }
}
