/* login */
.login-home {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8;
  overflow: auto;
  background-image: url(assets/images/login-back.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.login-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  color: var(--color-text-gray);
  text-align: center;

  a {
    margin: 0 5px;

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

.login-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 500px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 30px;
  background-color: #fff;
  backdrop-filter: blur(10px);
}
.login-theme {
  width: 400px;
  height: 100%;
  border-radius: 30px 0 0 30px;
  background-image: url(assets/images/login-theme.jpg);
  background-size: 100% 100%;
  float: left;
  position: relative;

  > h2 {
    position: absolute;
    top: 192px;
    left: 48px;
    font-weight: bold;
    font-size: 42px;
    color: #ffffff;
    line-height: 56px;
    font-style: normal;
  }

  .login-webinfo {
    position: absolute;
    bottom: 48px;
    left: 48px;

    font-weight: 400;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 22px;

    a:hover {
      opacity: 0.8;
    }
  }
}
.login-body {
  margin-left: 400px;
  height: 100%;
  overflow: hidden;
  padding: 126px 40px;
}
.login-title {
  margin-bottom: 24px;

  h1 {
    height: 32px;
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 4px;
  }
  p {
    height: 28px;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text-gray);
    line-height: 28px;
  }

  img {
    display: block;
    max-width: 160px;
    height: 40px;
    margin: 0 auto;
  }
}
.login-form {
  .login-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    font-size: 18px;
  }
}

/* page */
.page {
  display: block;
}

// privilege-set
.privilege-set {
  overflow: auto;
  .table {
    td,
    th {
      padding: 8px 10px;
    }

    th:nth-of-type(4),
    td:nth-of-type(4) {
      text-align: center;
    }
  }
  .cell-check-list {
    text-align: left;
  }
}

// label-edit
.label-edit {
  min-height: 60px;
  .label-item {
    display: inline-block;
    vertical-align: top;
    border: 1px solid var(--color-text-gray-4);
    border-radius: 3px;
    padding: 4px 40px 5px 10px;
    position: relative;
    margin: 0 10px 10px 0;
    line-height: 20px;
  }
  .label-item-content {
    margin: 0;
    line-height: 20px;
    vertical-align: middle;
  }
  .label-item-delete {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    font-size: 16px;
    color: var(--color-text-gray-3);
    cursor: pointer;
    &:hover {
      color: var(--color-danger);
    }
  }
  .label-add {
    display: inline-block;
    vertical-align: top;
    border: 1px solid var(--color-text-gray-4);
    border-radius: 3px;
    padding: 0 10px;
    color: var(--color-text-gray);
    line-height: 31px;
    cursor: pointer;
    &:hover {
      border-color: var(--color-primary);
      color: var(--color-primary);
    }
  }
}
// field-transfer
.field-transfer {
  display: flex;
  align-items: stretch;
  .field-part-source {
    width: 200px;
    border-radius: 10px;
    border: 1px solid var(--color-border-bold);
    overflow: hidden;
  }
  .field-part-action {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;

    .action-body {
      width: 80px;
      height: 100px;
      line-height: 50px;
      text-align: center;
    }

    .arco-btn {
      margin: 0;
    }
  }
  .field-title {
    background-color: var(--color-background);
    padding: 10px 15px;
    line-height: 20px;
    border-bottom: 1px solid var(--color-border-bold);
  }
  .field-body {
    padding: 6px 15px;
    overflow-x: hidden;
    overflow-y: auto;
    height: 246px;
  }
  .field-item {
    position: relative;
    padding: 5px 0;
    line-height: 20px;

    &.after-drop {
      &::after {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        border-bottom: 2px solid var(--color-primary);
        bottom: -2px;
        left: 0;
        z-index: 9;
      }
    }
    &.before-drop {
      &::before {
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        border-top: 2px solid var(--color-primary);
        top: -2px;
        left: 0;
        z-index: 9;
      }
    }
  }
}

// card-title-rule-edit
.card-title-rule-edit {
  .field-item {
    display: inline-block;
    vertical-align: top;
    margin: 0 10px 10px 0;
    padding: 8px 10px;
    border-radius: 4px;
    line-height: 1;
    background-color: var(--color-background);
    cursor: pointer;

    &:hover {
      color: var(--color-primary);
    }
    &.is-act {
      background-color: var(--color-primary);
      color: #fff !important;
    }
    &.is-disabled {
      cursor: not-allowed;

      &:hover {
        color: var(--color-text-dark);
      }
    }
  }
  .field-textarea {
    border-radius: var(--border-radius);
    border: 1px solid var(--color-text-gray-2);
    min-height: 60px;
    padding: 2px;
    overflow: hidden;

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

    span.var-field {
      display: inline-block;
      vertical-align: middle;
      padding: 3px 5px;
      background-color: var(--color-primary);
      color: var(--color-white);
      line-height: 1;
      border-radius: 3px;
    }
  }
}
